Commit Graph

3605 Commits

Author SHA1 Message Date
Kent Wang
0102f586e4 Chore(E2E): Remove arbitrary waits in e2e test (#8746)
* remove arbitrary wait for debounce
2025-05-30 14:46:32 +08:00
Bingbing
b532b98b50 feat(Inso): add an overall run collection test result summary (#8739) 2025-05-30 14:46:32 +08:00
James Gatz
9793581c8b feat(Git Sync): Introduce UX for migrating legacy Git workspaces to a Git Project (#8720)
* import and detect legacy insomnia folders

* expose the legacy files through the existing API

* save

* save

* Better error handling on legacy file discovery

* UI for warning for the legacy migration on clone

* Prompt users when a legacy file has been found to migrate it

* save

* initial clone migration

* remove console warning

* cleanup for loop
2025-05-30 14:46:32 +08:00
Jack Kavanagh
d95baa7773 update legacy mode messages (#8718)
* update error messages

* fix error message
2025-05-30 14:46:32 +08:00
James Gatz
ab4f723485 Wait for navigation to happen before sending a request (#8744) 2025-05-30 14:46:32 +08:00
James Gatz
a5f2669d38 fix unit test (#8742) 2025-05-30 14:46:32 +08:00
James Gatz
99aa806118 fix mock test (#8741) 2025-05-30 14:46:32 +08:00
Pavlos Koutoglou
d75f31c5e5 fix: Enforce stricter validation rules for the plugin name. [INS-5310 & INS-5408 & INS-5333] (#8639)
* feat: Add CreatePluginModal component for plugin creation

* feat: Integrate CreatePluginModal for streamlined plugin creation

* feat: Enhance plugin creation with path validation and error handling

* feat: Add comprehensive validation tests for plugin name generation

* feat: Improve path validation for plugin directory to prevent traversal attacks

* feat: Add checks to prevent overwriting existing plugin files during creation

* feat: Add plugin name validation and sanitization to prevent path traversal

* fix: Correct import order in create-plugin-modal component

* fix: Correct import order in plugins interactions test

* feat: Enhance plugin name validation to prevent invalid formats and add test ID for button

* test: Refactor plugin interactions tests for improved readability and maintainability

* fix: Improve code readability by adding comments and removing unnecessary whitespace in create plugin directory function

* fix: Correct import order in plugins interactions test

* Imports

* refactor: Improve import order and enhance code readability in CreatePluginModal component

* test: Update plugin interactions tests to use soft assertions for improved error handling

* fix: Remove version parameter from createPlugin function call in Root component

* refactor: Enhance plugin name validation and remove version parameter from createPlugin function

* refactor: Remove plugin name validation logic from CreatePluginModal component

* refactor: Simplify destructuring and improve button class order in Plugins component

* test: Update plugin name validation messages and add additional rejection cases

* refactor: Enhance plugin name validation to prevent OS command injection and disallow path traversal

* refactor: Simplify error handling in CreatePluginModal component

* test: Add validation for plugin name restrictions including path traversal and length

* refactor: Rename moduleName to pluginName in createPlugin function for clarity

* refactor: Add path traversal validation in getSafePluginDir function

* test: Add comprehensive validation for plugin name restrictions in smoke tests

* feat: Implement comprehensive validation for plugin names and directory safety

* fix: Adjust modal content height to auto for better responsiveness

* Modify the plugins tab

* feat: Enhance CreatePluginModal with accessibility attributes for plugin name input

* refactor: Rename _traversePluginPath to traversePluginPath and enhance path resolution for security

* refactor: Simplify plugin directory validation by extracting getSafePluginDir and improving path handling

* Modify the install plugin functionality

* Improvements

* feat: Export containsOnlyDeprecationWarnings function for broader usage

* refactor: Remove isDeprecatedDependencies tests to streamline install.js test suite

* feat: Export utility functions for broader access in the plugin system

* fix: Validate plugin metadata by checking for missing tarball URL

* Improve plugin system by enhancing metadata validation and exporting additional utility functions

* fix: Set modal content height to 100% for consistent display

* refactor: Rename isInsomniaPlugin to getPluginInfo and streamline plugin installation logic

* test: Add comprehensive tests for plugin installation and utility functions

* delete: Remove obsolete test file for plugin installation

* refactor: Update elevated access warning display and improve layout in plugin settings

* feat: Add support for scoped package names in plugin installation functions

* refactor: Improve layout and error handling in plugin settings component

* feat: Add validation for plugin name input during installation

* feat: Enhance plugin name validation to support scoped package names

* test: Update error messages for invalid scoped package names in plugin interactions tests

* feat: Pass allowScopedPackageNames parameter to getPluginInfo for improved plugin validation

* feat: Add support for scoped package names in plugin validation regex

* feat: Update installPlugin to accept allowScopedPackageNames parameter and rename webUtils import

* feat: Update installPlugin handler to accept allowScopedPackageNames parameter

* refactor: Simplify mock implementations in install-plugin tests by removing unnecessary properties

* fix: Correct plugin name length validation to enforce a maximum of 214 characters

* refactor: Simplify state management in Plugins component and update plugin reload logic
2025-05-30 14:46:32 +08:00
Jack Kavanagh
c5a68bdb2c fix CI (#8737) 2025-05-30 14:46:32 +08:00
Kent Wang
1ff8209935 1.Fix typo (#8735) 2025-05-30 14:46:32 +08:00
Ryan Willis
0705b42d09 feat: improve design doc samples [INS-5526] (#8719)
* feat: improve design doc samples [INS-5526]

* update to latest petstore, fixing lint errors
2025-05-30 14:46:32 +08:00
Jack Kavanagh
8661da1cd3 bump jsonpath and spectrals (#8690) 2025-05-30 14:46:32 +08:00
James Gatz
60ad5b0ab9 Upgrade to react router v7 (#8702)
* [Relative splat path](https://reactrouter.com/upgrading/v6#v7_relativesplatpath)

* [Start Transition](https://reactrouter.com/upgrading/v6#v7_starttransition)

* [Persist Fetcher](https://reactrouter.com/upgrading/v6#v7_fetcherpersist)

* [Normalize Form method](https://reactrouter.com/upgrading/v6#v7_normalizeformmethod)

* [Partial Hydration](https://reactrouter.com/upgrading/v6#v7_partialhydration)

* [Skip Action error revalidation](https://reactrouter.com/upgrading/v6#v7_skipactionerrorrevalidation)

* [Deprecations](https://reactrouter.com/upgrading/v6#deprecations)

* react-router v7.6

* Update imports to new package name

* Cleanup flags

* Add loading indicator to command-palette

* fix ts error

* Remove debounce from environment updates

* fix flaky test on key-value environment update

* Use .destroy to close the hidden browser window if we want to stop it

* Use aria labels for invite test instead of data-test-ids

* remove timeout awaits

* update send request button selector

* force click on button click in invite modal

* make sure renames in sidebar happen correctly in tab test

* remove flaky prompt button test for now

* make sure hiddenWindowIsBusy is reflecting the actual state of the hidden window

* verify that navigation is flaky

* Make sure request navigation happened before sending the request
2025-05-30 14:46:32 +08:00
Pavlos Koutoglou
852972c360 fix: Git project creation form issues [INS-5414] (#8725)
* fix: correct author input fields to use email instead of name

* fix: remove unnecessary min-width from Git repository settings tab
2025-05-30 14:46:31 +08:00
James Gatz
605425187f feat(Git-Sync): Use custom HTTP Client to enable system Certificates and Proxy settings (#8710)
* Use net.fetch on isomorphic-git to support custom Certificates and proxy settings

* type import

* move electron net to dynamic import to avoid pre-bundling
2025-05-30 14:46:31 +08:00
yaoweiprc
35885a99c3 unescape forward slash in json response when previewing (#8698) 2025-05-30 14:46:31 +08:00
George
a5ee674721 doc: add docs for interface, interpolator and request info module - INS-5540 (#8713)
* docs(script-sdk): add docs for interfaces, interpolator and request info

* fix: ignore unexposed methods

* chore: add docs
2025-05-30 14:46:31 +08:00
George
0088381546 fix(cli): proxy options do not work and stop loading settings and cookies from exports - INS-5429 (#8700)
* fix(cli): proxy option do not work and stop loading settings and cookies from exports

* fix: test

* fix: still enable loading cookies

* test: add a proxy test

* chore: remove comment
2025-05-30 14:46:31 +08:00
Mark Kim
cf6b19ac24 refactor: default hide the swagger preview (#8660)
* refactor: default hide the swagger preview

* Update packages/insomnia/src/ui/routes/design.tsx

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2025-05-30 14:45:51 +08:00
Jack Kavanagh
4212d33819 remove override (#8716) 2025-05-30 14:45:51 +08:00
Kent Wang
1d9100ce1c Fix: rendering in worker error bug [INS-5482] (#8695)
* Fix render error bug in template
2025-05-30 14:45:51 +08:00
Mark Kim
67f4facda7 refactor: rename the copy for example (#8661)
* refactor: rename the copy for example

* fix: test
2025-05-30 14:41:08 +08:00
James Gatz
4b07334781 fix overflow issue on key-value editor (#8688) 2025-05-30 14:40:57 +08:00
Bingbing
93c67cdaee feat: support to set cookie hostOnly property (#8677) 2025-05-30 14:40:47 +08:00
Bingbing
278bacfacc fix: domain in cookie list not update when be set to empty (#8683) 2025-05-30 14:40:41 +08:00
George
ad807cb4bd docs(script-sdk): add docs for console - INS-5475 (#8685)
* docs(script-sdk): add docs for console

* fix: export console
2025-05-30 14:31:54 +08:00
Kent Wang
b78d6c81e5 Fix search bar disappear when no match collection found in project view (#8684) 2025-05-30 14:31:48 +08:00
yaoweiprc
eb07231d69 fix the problem that the multiline editor button and file button in key-value editor are not aligned (#8678) 2025-05-30 14:30:49 +08:00
Kent Wang
a9b1a39c89 Improve Azure oAuth workflow[INS-5479] (#107)
* Fix hashicorp in Inso CLI issue
* Modify Azure open url logic
2025-05-15 22:51:29 +08:00
Kent Wang
a255ce6dc8 Use base64 encoded string to save external vault config[INS-5311] (#75)
* Refine to use base64 encoded string to replace json string in external vault config
2025-05-09 10:51:18 +08:00
Kent Wang
1887c1b618 prettier run for ee code (#106) 2025-05-08 09:37:02 +01:00
Jay Wu
4176888de3 Bump app version to 11.1.0 2025-05-06 05:46:42 +00:00
James Gatz
59e6f3e1a8 add e2e test for inso cli export spec for insomnia v5 (#8670) 2025-05-06 10:58:32 +08:00
Jay Wu
86ad24da93 Bump app version to 11.1.0-beta.4 2025-04-30 11:17:45 +00:00
George
ac5d6ffcc5 docs(script-sdk): add docs for headers - INS-5438 (#8666)
* docs(script-sdk): add docs for headers

* fix: smoke test
2025-04-30 17:11:10 +08:00
Kent Wang
ed05061dba Fix smoke test flaky cases in slower runners (#8665)
* fix flaky cases
2025-04-30 17:11:04 +08:00
Kent Wang
53fdd5d009 Fix no error message when executed in worker (#100)
* Fix no error message when executed in worker
* Throw error directly
2025-04-30 16:13:22 +08:00
Jay Wu
81830b79bb Bump app version to 11.1.0-beta.3 2025-04-30 00:55:07 +00:00
George
cceaeaec30 docs(script-sdk): add docs for the folder entity (#8657) 2025-04-29 19:18:07 +08:00
Kent Wang
541301e5ad Fix secret values are not revealed in OAuth2 auth tab[INS-5425] (#8658)
Fix OAuth secrets not revealed issue
2025-04-29 16:21:17 +08:00
Bingbing
acb23d1752 fix: update cookieJar methods to keep the name and params consistent (#8654) 2025-04-29 15:33:19 +08:00
George
ca52fd9b79 docs(sdk): add docs for proxy-config (#8647) 2025-04-29 11:59:26 +08:00
Kent Wang
d82236e3dd Revert "Fix secret values are not revealed in OAuth credential tab"
This reverts commit 8cefbd19ec.
2025-04-29 10:38:00 +08:00
Kent Wang
8cefbd19ec Fix secret values are not revealed in OAuth credential tab 2025-04-29 10:36:29 +08:00
Kent Wang
f955e21814 Support load from local credential file and SSO credential for AWS [INS-4944] (#27)
* Initial check-in for load AWS config from credential file
* initial check-in for SSO support
* Add an option to allow user to set cache credential or not
* Fix indent issue
2025-04-28 17:48:10 +08:00
Jay Wu
fef510bee5 Bump app version to 11.1.0-beta.2 2025-04-28 08:23:08 +00:00
Bingbing
3c8f0c8732 fix: update action bar value after users click import from url (#8643)
- Add setValue to the one line editor
- Add setUrl to the request pane and websocket-request-pane
- Add smoke tests for Import from URL
2025-04-28 16:19:59 +08:00
Kent Wang
10c9c6c36d Fix template error (#91)
Fix template typescript error
2025-04-28 16:17:54 +08:00
Kent Wang
938abcd6a9 merge test to reduce execution time (#8625) 2025-04-28 15:23:13 +08:00
Kent Wang
22c2be7b17 Support running inso collection with external vault integration locally[INS-5112] (#35)
* Support running in inso-cli locally
* Use builtIn Libcurl to send request instead of node-fetch
* Change GCP credential type from string to object
* Load config from environment variable when executing from external vault in Inso under CICD environment
* Fix backward compatibility issue
* Type change
---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-04-28 15:10:43 +08:00