Commit Graph

5298 Commits

Author SHA1 Message Date
Kent Wang
1802f2f275 External Vault AWS: Add new settings page for cloud service credentials[INS-4623] (#2)
* Initial check-in for smaller part of AWS change, only including setting modal for add cloud service provider credentials.
* fix issue from comment
2025-02-20 20:53:41 +08: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
Ryan Willis
d3513eed67 fix: do not append headers with empty names (#8372)
* fix: do not append headers with empty names

* trim name
2025-02-17 15:52:55 +08:00
Curry Yang
a3589d9307 feat: minimal bar-[INS-4420] (#8293)
* feat: minimal bar

* feat: extract the network status component

* fix: isMinimal boolean

* fix style

* extract header user and invite button

* fix invite button theme color
2025-02-17 15:36:17 +08:00
Kent Wang
eddeb4758f feat: Insomnia vault key management UI[INS-4715] (#8296)
* initial check-in for separate vault key ui changes
* refine localstorage instance
* use better method for file saving
* remove ref
* fix issue from rebase
2025-02-17 06:40:40 +00:00
George He
3e9ead3b9c feat(sdk): enable folder env interfaces for manipulation in script (#8348)
* feat: enable folder env interfaces for manipulation in script

* fix: lint

* Fix table view environment not updated issue[INS-4875] (#8360)

* Fix table view environment not updated issue

* fix: fix comments and improve the test

---------

Co-authored-by: Kent Wang <kent.wang@konghq.com>
2025-02-17 14:20:31 +08:00
Pavlos Koutoglou
ded7047d3a fix: Improve request drop-down menu [INS-4983] (#8364)
* fix: update request actions dropdown button visibility

* fix: change request actions dropdown button visibility to flex on hover and focus

* fix: adjust padding for CollectionGridListItem component

* fix: add triggerRef prop to RequestActionsDropdown and RequestGroupActionsDropdown components

* Update debug.tsx

* fix: update GraphQL test to include new request and validate response
2025-02-14 15:46:26 +00:00
Pavlos Koutoglou
d20f4e0ff5 fix: update react-resizable-panels to version 2.1.7 and adjust peer dependencies (#8366) 2025-02-14 15:26:35 +00:00
Pavlos Koutoglou
c618688a4a feat: add keyboard shortcut to select all in CSV viewer (#8349) 2025-02-14 15:13:27 +00:00
Pavlos Koutoglou
1ea0cee03c fix: prevent CodeMirror from capturing escape key and shortcuts based on keymap settings (#8368) 2025-02-14 14:03:28 +00:00
yaoweiprc
01b80896fe Use native way to prettify json in response viewer (#8354) 2025-02-14 15:06:21 +08:00
Ryan Willis
1e15091d50 Merge branch 'release/10.3.2-beta.0' into develop 2025-02-13 20:31:44 +00:00
Ryan Willis
0bcbd3cbc1 Bump app version to 10.3.2-beta.0 core@10.3.2-beta.0 2025-02-13 19:42:19 +00:00
George He
c814d98e02 Fix/sdk/tagged url (#8361)
* fix: handle several different template syntaxes in url

* inso -> es2021

* fix: init certs in script

---------

Co-authored-by: Ryan Willis <ryan.willis@konghq.com>
2025-02-13 23:52:16 +08:00
Kent Wang
eab3c6d8cc fix: Table view environment variables are not updated when changed in pre-request/after-response scripts [INS-4875] (#8353)
* Fix environment variables not updated in table view issue
2025-02-13 03:14:59 +00:00
Ryan Willis
56f37ccd10 fix: consolidate request+codegen headers+authorization [INS-4925] (#8345)
* fix: consolidate request+codegen headers+authorization
2025-02-12 09:56:02 -07:00
Pavlos Koutoglou
6373c68226 fix: mask client secret input in OAuth 2.0 authentication (#8351) 2025-02-12 14:06:50 +01:00
Jack Kavanagh
54915fbc0d add warning (#8350) 2025-02-12 14:06:16 +01:00
Vivek Thuravupala
dd9453fdff Short-ciruit string rendering if require invocation is detected (#8358)
* Short-ciruit string rendering if require invocation is detected [SEC-1323] [INS-4963]

* add sentry exception

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-02-12 14:03:10 +01:00
Curry Yang
700f2b0404 fix: request render error not display (#8277) 2025-02-12 03:34:28 +00:00
Filipe Freire
99a8c395cf Merge branch 'release/10.3.1' into develop 2025-02-11 10:05:33 +00:00
Filipe Freire
f473bad2f3 arm64 linux build targets core@10.3.1 2025-02-07 15:54:22 +00:00
James Gatz
196c395039 Bump app version to 10.3.1 2025-02-07 11:23:32 +00:00
Techdoodle
cf42d46219 fix: prevent yarn directory traversal on plugin installation (#6829)
* fix: prevent yarn directory traversal on plugin installation
fixes #4041

* fix: fix code formatting in `install-plugin.ts`
2025-02-07 12:21:05 +01:00
Filipe Freire
d8803b8d0b fix: inso README.md [no-ticket] (#8342) 2025-02-07 11:54:10 +01:00
James Gatz
01124fce18 update cli options docs (#8343) 2025-02-07 11:53:24 +01:00
Filipe Freire
c09b020c20 Merge branch 'release/10.3.1-beta.4' into develop 2025-02-07 09:41:41 +00:00
Filipe Freire
c86d0c2c87 Bump app version to 10.3.1-beta.4 core@10.3.1-beta.4 2025-02-06 16:17:08 +00:00
Filipe Freire
62a21d367c fix: template render error [INS-4962] (#8338)
* fix: template render error [INS-4962]

* fix test

* improvements

* improvement

* improve tests
2025-02-06 16:01:19 +00:00
hexchain
b7e959758b chore: also build appimage for arm64 linux (#8331) 2025-01-30 00:00:35 +01:00
Filipe Freire
7a50829a83 Merge branch 'release/10.3.1-beta.3' into develop 2025-01-29 17:00:20 +00:00
Filipe Freire
4b140d40f2 Bump app version to 10.3.1-beta.3 core@10.3.1-beta.3 2025-01-29 16:29:39 +00:00
Filipe Freire
df0570764d fix: .deb and .snap upload on publish [no-ticket] (#8332)
* fix: .deb and .snap upload on publish [no-ticket]

* remove the arm64 snap that we are not producing
2025-01-29 14:20:21 +00:00
Filipe Freire
add6eb4f7a Merge branch 'release/10.3.1-beta.2' into develop 2025-01-29 13:46:56 +00:00
Filipe Freire
717707faaf Bump app version to 10.3.1-beta.2 core@10.3.1-beta.2 2025-01-29 12:33:47 +00:00