Commit Graph

5481 Commits

Author SHA1 Message Date
yaoweiprc
82416396f5 Render no-standard content-encoding response [INS-4910] (#8341)
* Support no-standard content-encoding response

* Change VS Code format option to bypass the indent bug. Add the check of noCompress to avoid infinite retries.
2025-03-12 03:38:32 +00:00
James Gatz
07782a5b5e feat(Git Projects): Insomnia files can be anywhere inside the repository (#8432)
* heuristics

* save

* allow for using insomnia files from anywhere in the repo

* save

* fix ts errors and rm unused modal

* cleanup insane try catch

* cleanup logs

* cleanup logs

* fix ts

* Update packages/insomnia/src/main/git-service.ts

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>

* Allow any filename for insomnia files

* add filename input field when creating a new workspace

* add validation for new workspace filenames

* validation and setting to rename the fileName of a workspace

* auto name files on import and migration

* remove default git repository on local vault

* remove legacy git sync copy on project modal

* update test and handle diff status for legacy git

* rename fetch to fetch and checkout

* read git author from db

* fix tests

* use color to display local changes in git dropdown

* cleanup recursive logic in file discovery

* rename to git file path

* add some clarifiacation comments and cleanup project.tsx

* update e2e tests to use the new workspace modal

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2025-03-11 16:07:21 +00:00
George He
369b7c5b69 refactor(sdk): improve url parsing for valid or invalid url cases (#8439)
* refactor(sdk): improve url parsing for valid or invalid url cases

* fix: building error
2025-03-11 08:42:19 +00:00
Vivek Thuravupala
5c14d9b6d4 Adjust alignment & copy in Organization empty state (#8443) 2025-03-10 23:50:38 -07:00
Kent Wang
bbf2934879 chore: Try to improve smoke test tracing to figure failure/flaky case causes [INS-5056] (#8431)
* improve the tracing
2025-03-07 02:44:02 +00:00
Pavlos Koutoglou
6a6483bca4 fix: Deprecate Git Workspaces [INS-5070] (#8436) 2025-03-06 17:15:07 +01:00
Kent Wang
114071a7a6 Fix: Auto detect updated file encoding and read file with encoding[INS-5017] (#8428)
* Add a read file method in process with file encoding detection
* Add a file encoding picker
* Fix the unnecessary try-catch
2025-03-06 02:03:07 +00:00
yaoweiprc
da2645db9a Support another postman schema url when importing (#8434) 2025-03-05 10:19:26 +00:00
Kent Wang
eb774a28f4 Test: Add vault key related smoke test [INS-5052] (#8438)
* remove clipboard test cases from comment
* Disable srp validation in playwright test
* fix test failures
2025-03-05 13:53:21 +08:00
Curry Yang
870710a801 fix: back to login page after close all tabs (#8437) 2025-03-05 02:42:15 +00:00
Kent Wang
d1811e08e5 1.fix issue from rebase (#8425) 2025-03-04 17:44:22 +08:00
yaoweiprc
bc6d755d5f Fix overflow issue in import modal (#8418) 2025-02-27 13:35:47 +00:00
Jay Wu
4d65587770 chore: update the publish workflow (#8407)
* chore: new workflow

* Chore: update the publish workflow

* inso use the same version as app

* fix(ci): verify artifact and image provenance and signature before uploading gh assets

* fix bug and typo

* fix bug

---------

Co-authored-by: saisatishkarra <saisatish.karra@konghq.com>
2025-02-27 21:07:59 +08:00
Insomnia
95cf0d9e44 Bump app version to 11.0.0-beta.3 (#8429)
Co-authored-by: Jay Wu <130019718+notjaywu@users.noreply.github.com>
2025-02-27 19:03:01 +08:00
Filipe Freire
f7f8c4751a fix: disable arch for linux on electron-builder [INS-5053] (#8427) 2025-02-27 17:49:22 +08:00
Curry Yang
46a5924515 fix: disable sentry anr (#8426) 2025-02-27 16:04:10 +08:00
Curry Yang
838b6122d5 fix: unable to use unix socket with grpc - [INS-5036] (#8410)
* fix: unable to use unix socket with grpc

* use startWith
2025-02-27 14:18:12 +08:00
Jay Wu
523ae975b8 Merge branch 'release/11.0.0-beta.2' into develop 2025-02-26 06:31:11 +00:00
Jay Wu
498c2eac82 Bump app version to 11.0.0-beta.2 core@11.0.0-beta.2 2025-02-26 04:57:05 +00:00
George He
d7105ddec7 chore: comment out flaky action (#8416) 2025-02-26 12:48:44 +08:00
Pavlos Koutoglou
fa38f6b94d fix: update upgrade plan messaging from Team to Pro plan (#8404) 2025-02-26 12:31:12 +08:00
George He
5194212fa7 fix(sdk): change insomnia.test mechanism to improve the nested test cases (#8388)
* fix: change insomnia.test mechanism to improve the nested test cases

* fix: support await tests and add auto-complete .test and .expect
2025-02-26 11:47:32 +08:00
Pavlos Koutoglou
fb6c8fe086 fix: enable text wrapping for cookie domain and string in cookies modal (#8413) 2025-02-26 11:30:21 +08:00
Kent Wang
acd1a09215 Fix Insomnia Vault issue (#8409)
* Fix vault related UI issues
2025-02-26 11:11:39 +08:00
James Gatz
83e9374f9b feat(Git Projects): Update storage type (#8411)
* add init clone action that returns the list of insomnia files found

* fix issue with mock server parent ids

* narrow type on repo settings form

* project modal

* update project

* show warning when updating a project storage type

* close modal when the action is completed

* fix ts error

* display error if update/create fails

* selected format yaml

* import.meta for inso type-check
2025-02-25 16:34:59 +00:00
Kent Wang
070c83a838 Fix session update issue
Fix session update issue
2025-02-25 12:52:46 +08:00
Jay Wu
b8186c81ea Merge branch 'release/11.0.0-beta.1' into develop 2025-02-25 04:37:07 +00:00
Jay Wu
b8eab91406 Bump app version to 11.0.0-beta.1 core@11.0.0-beta.1 2025-02-25 03:26:00 +00:00
Ryan Willis
858f0d00a2 fix: github repo list scroll issue (#8403) 2025-02-24 15:35:32 -07:00
Ryan Willis
e7edec59a1 fix: handle GH app error cases and add read/write warnings (#8373)
* fix: handle GH app error cases and add read/write warnings
2025-02-24 10:06:22 -07:00
George He
b80f68a4bd feat: support folder-env for replaceIn method in rendering (#8392) core@11.0.0-alpha.3 2025-02-24 10:56:52 +08:00
Pavlos Koutoglou
f9a2911076 fix: update confirmation button text in invite tests (#8396) 2025-02-21 16:43:06 +02:00
James Gatz
38dd44863c feat(Diff View): use monaco-editor for the diff views in the app (#8394)
* Add monaco-editor and use it as a diff view for git

* Add diff editor to Insomnia Sync

* add diff viewer in insomnia sync merge modal

* remove json-diff-kit
2025-02-21 14:47:32 +01:00
Pavlos Koutoglou
314dbb5db4 fix: Manage Cookie Modal [INS-5007] (#8385)
* refactor: remove CookieList component

* refactor: remove unused defaultPerPage export from Invite modal

* refactor: remove unused styles for CookieList component

* refactor: clean up unused code in the cookie modal

* refactor: update CookiesModal props for better state management

* refactor: update CookiesModal props for improved state handling

* refactor: streamline state management in CookiesModal component

* refactor: update cookie editor test selectors for improved stability

* refactor: fix cookie editor test selector for accurate interaction

* refactor: update cookie editor test to use getByText for improved selector accuracy

* refactor: enhance cookie editor test to assert visibility of cookie entries

* refactor: update cookie editor test to assert visibility of specific cookie entries

* refactor: remove isOpen prop from CookiesModal for simplified usage
2025-02-21 12:58:02 +02:00
Filipe Freire
5203ce5bbc Merge branch 'release/11.0.0-beta.0' into develop core@11.0.1-alpha.0 2025-02-19 17:03:12 +00:00
Filipe Freire
ecf115258d Bump app version to 11.0.0-beta.0 core@11.0.0-beta.0 2025-02-19 16:09:02 +00:00
Kent Wang
2458638a60 chore: skip the flaky vault test (#8384) 2025-02-19 16:06:53 +00:00
James Gatz
ea31598f42 feat(Git Sync): Introduce Git Projects (#8382)
* add git projects

* git clone from project view

* move storage rule type to project
2025-02-19 16:05:35 +00:00
James Gatz
58580edbf9 feat(Git Sync): move git logic in git-service (#8377)
* move git logic in main

* fix ts issue

* fix playwright check for tests

* fix masking subenvironments
2025-02-19 13:08:50 +01:00
Kent Wang
ea6ca108c9 Chore: Fix vault case failure and add one more test for vault key (#8378)
* 1.try to fix vault test case failure

* 1.add one more test

* 1.keep the same logic for one-line-editor & code-editor

* 1.fix  test failure
2025-02-19 12:24:15 +01:00
Ryan Willis
f431a4ef6e feat: preference for key map with one-line text fields (#8335)
* feat: allow users to disable key map for one-line text fields

* invert feature to default off
2025-02-18 10:03:02 -07:00
Ryan Willis
7d6a016145 feat: plugin install support for proxy and custom ca cert bundle (#8337)
* feat: add plugin install setting for custom trusted ca cert chain

* allow clearing

* allow other extensions

* respect proxy settings when installing plugins

* include root CA bundling instructions link

* force use of npm registry for plugin installations
2025-02-18 09:36:58 -07:00
James Gatz
755c02f321 Insomnia Format v5 (#8209)
* schema

* working imports

* exports

* cleanup

* Move sortKey and description to meta and define request settings schema

* request docs

* export: cleanup empty fields

* improve request settings

* update types and cleanup

* fix falsy value error

* cleanup todo file

* cleanup zod-to-json-schema

* fix export ordering to imrpove readability

* cleanup schema

* update fixtures to v5

* fix tests

* clean up types and fix e2e tests

* importer in inso-cli

* update inso-cli e2e tests

* update optional collection and spec meta

* throw if no import found in inso

* update inso error

* add docs for debugging inso

* clarify name and comment

* comment

* fix lint

* bring fixture collection back to prev version

* update pre-request-collection fixture to v5

* fix after-response-collection

* after-response v5

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-02-18 15:47:15 +01:00
James Gatz
e9f08b6519 feat(Git Sync): Git Credentials storage (#8376)
* move git credential storage in db

* update e2e tests
2025-02-18 12:54:36 +01:00
Curry Yang
f09f88e88d fix: reduce sse (#8375) 2025-02-18 16:19:00 +08:00
Pavlos Koutoglou
38f832de6c refactor: Invite modal - Being able to invite a team from the Organization and from Electron [INS-4684] (#8319)
* feat: Add routes for collaborators, invites, and member roles management

* fix: Correct capitalization of state setter for showConfirmation in CopyButton component

* feat: Implement invite modal encryption and team management functionality

* feat: Add collaborator management functionality with loaders and actions

* chore: Remove unused default avatar SVG file

* fix: Adjust layout of button and text alignment in OrganizationMemberRolesSelector

* No code changes made.

* Change invite modal

* Change invite form input

* feat: Replace delete button with PromptButton for improved user confirmation in MemberListItem

* fix: invite flow

* refactor: add ratelimiter setting logic

* refactor: rename rlKey to rateLimitKey for clarity in fetch configuration

* fix: remove commented autoLinked property and clean up data assignment in startInvite function

* refactor: enhance MemberListItem component with improved invitation status display and cleanup of delete confirmation logic

* refactor: add className prop to OrganizationMemberRolesSelector and filter out 'owner' role from available roles

* refactor: adjust styles in OrganizationMemberRolesSelector for improved layout and hover effects

* refactor: update InviteModal and MemberListItem styles for improved layout and visual consistency

* Clean up code

* refactor: update layout of Manage collaborators button in InviteModal for improved alignment and styling

* refactor: adjust button styles and update doneMessage logic in MemberListItem for improved functionality and consistency

* refactor: implement reconcile keys logic in startInvite function for improved key management

* refactor: update icon logic in MemberListItem for improved conditional rendering

* refactor: streamline invite handling logic and improve tracking event properties in InviteForm

* refactor: enhance error handling and user feedback in InviteModal and MemberListItem components

* refactor: adjust Popover component width for improved layout consistency in InviteForm

* refactor: add permission check and alert in MemberListItem for restricted actions

* refactor: add optional chaining to searchResult for safer access in InviteForm

* test: add utility function for generating random user emails and update invite test to use it

* refactor: simplify role management logic and unify props interface in InviteModal components

* refactor: enhance checkIfAllow function with destructured props and optional chaining for safer role checks

* refactor: streamline session ID retrieval in startInvite function for improved clarity and error handling

* refactor: add utility functions for generating random IDs and team names in test-utils

* test: update invite test to iterate through options and improve invitation flow

* feat: implement collaborator email generation and API endpoints for invites and search

* refactor: simplify invite handling by renaming groupIds to teamIds and updating related logic

* refactor: enhance invite modal by adding index to collaborator list items and improving data fetching types

* refactor: reduce default limit for collaborators list from 25 to 15

* refactor: update key structures for encryption and decryption in smoke test

* Add new endpoints

* refactor: update invite test to reflect changes in collaborator management and count

* refactor: add optional chaining to collaborators mapping in invite modal

* refactor: update collaborators list loader to return Error type on failure

* refactor: enhance error handling and data retrieval in invite modal

* refactor: remove rate limiting logic from insomniaFetch function

* refactor: remove unnecessary whitespace in insomniaFetch function

* refactor: clean up code structure and improve type definitions in collaborator interfaces

* refactor: consolidate collaborator types and interfaces for improved consistency

---------

Co-authored-by: Mark Kim <mark.kim@konghq.com>
2025-02-17 19:53:50 +02:00
Kent Wang
3abe124e27 feat: Using global private environment to save secrets[INS-4715] (#8233)
* add logic to handle vault secret items(vault environment)
* add modal to confirm export private environment when user exports global environment*
* mask all secret items value when export
* add logic to handle vault key reset and input request
* add encrypt/decrypt and remove secret function
* move removeAllSecrets function to modal
* basic integration with srp api
* api and encrypt/decrypt integration
* add modal for secrets environment variable without vault key hint
* integration with sse event of reset vault key
* add enableVaultInScripts settings to allow using vault in script
* add insomnia.vault to insomnia script
* Modify rendering logic to expose decrypted secrets to script
* remove keytar and use electron safestorage instead
* Do not allow set method in vault script
* add support for legacy environment with vault as environment key
* remove duplicate file due to rebase
2025-02-17 18:32:20 +08:00
George He
3ac16abe93 fix(sdk): get response size from bytesRead value (#8313)
* fix: get response size from bytesRead value

* fix: lint error
2025-02-17 18:13:59 +08:00
Curry Yang
5e4714780c fix: runner select all (#8256) 2025-02-17 17:38:26 +08:00
Curry Yang
3f01125b52 feat: multiple tabs - [INS-4225] (#8151)
* feat: multiple tabs

* fix: lint error

* fix: type error

* fix: ui border align

* feat: sync with db

* feat: sync with database

* ui improvement

* fix: mock route display

* add dropdown

* + button

* move search box to center

* fix: cannot del request tab

* fix ui

* tab background improvement

* change tab background

* feat: add list scroll

* ui improvement

* feat: add tab contextmenu

* modify menu text

* fix(ui): tab disappear in panelgroup

* feat: optimize tablist scroll button

* add context menu enum

* del log

* fix: rename workspace

* feat: scroll into view if needed

* fix: runner request list not update after switch tab

* fix: runner not update

* feat: use different tab if for collection runner and folder runner

* fix: update tab data after move request or folder

* fix: database test

* feat: support drag and drop

* fix: ui

* cr feedback

* fix tab update

* runner improvements (multiple tabs)-[INS-4779] (#8244)

* runner improvements

* runner improvement

* maintain runner state in context

* fix lint

* save file object to context

* add request list to runner context to keep order

* fix ts error

* add eventbus & clear runner context state

* also delete folder runner tab when delete a folder

* clean

* change runner context data structure

* clean up

* remove debugger

* use own debounce instead lodash

* feat: move runner keep log to context

* convert eventbus type enum to union

* reduce duplicate useInsomniaTabContext

* covert enum to union

* del log

* feat(tabs): keep connection for tabs-[INS-4778] (#8266)

* fix: runner not update

* also delete folder runner tab when delete a folder

* fix: keep websocket connection

* feat: keep grpc&websocket connection

* unify close connection after tab closed

* del repeat func

* close graphql subscription

* resolve conflict

* feat: close connections when active environment change

* add desc for hooks

* close connections when organization change

* fix: tab icon

* uppercase

* test: multiple tab (#8304)

* test: multiple tab

* fix: dashboard test

* rename tabList to tab-list

* fix test
2025-02-17 16:37:44 +08:00