Commit Graph

5506 Commits

Author SHA1 Message Date
George He
6e8256e4b4 fix: script timeout should be displayed 2025-05-27 16:46:12 +08:00
George He
d9b07686f7 chore: use meaningful condition 2025-05-27 16:46:12 +08:00
George He
61a65612bf chore: improve message 2025-05-27 16:46:12 +08:00
George He
e99b48d7ef chore: change the script error displaying behavior 2025-05-27 16:46:12 +08:00
Kent Wang
3a49afbe6f Add global base environment support in script[INS-5544] (#8734)
* Add unit test and modify network
* Fix variable mapping
2025-05-27 07:48:21 +00:00
George
0cf460c37b docs(script-sdk): add docs for test, variable, variableList and utils - INS-5589 (#8755)
* chores: add docs for test, utils, variables

* docs: add description for the class

* docs: add docs for varList
2025-05-27 02:02:55 +00:00
Kent Wang
3072a279d9 Chore(E2E): Remove arbitrary waits in e2e test (#8746)
* remove arbitrary wait for debounce
2025-05-26 02:16:59 +00:00
Bingbing
ce74f305fc feat(Inso): add an overall run collection test result summary (#8739) 2025-05-22 09:55:25 +00:00
James Gatz
2ae73ecab2 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-21 14:42:02 +00:00
Jack Kavanagh
ee2794653d update legacy mode messages (#8718)
* update error messages

* fix error message
2025-05-21 15:31:57 +02:00
James Gatz
69e87871ed Wait for navigation to happen before sending a request (#8744) 2025-05-21 15:29:46 +02:00
James Gatz
f4276b9021 fix unit test (#8742) 2025-05-21 12:42:48 +02:00
James Gatz
d856104e24 fix mock test (#8741) 2025-05-21 12:22:13 +02:00
Pavlos Koutoglou
010c7e7968 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-21 08:23:18 +02:00
jackkav
84f7c2ab2c bump lock 2025-05-20 09:20:39 +02:00
Jack Kavanagh
043e0514f1 fix CI (#8737) 2025-05-20 09:18:42 +02:00
Kent Wang
83ee4dcdca 1.Fix typo (#8735) 2025-05-20 10:32:16 +08:00
Ryan Willis
77b8ca4dc2 feat: improve design doc samples [INS-5526] (#8719)
* feat: improve design doc samples [INS-5526]

* update to latest petstore, fixing lint errors
2025-05-19 11:45:01 -07:00
Jack Kavanagh
a0524841cc bump jsonpath and spectrals (#8690) 2025-05-17 08:01:37 +00:00
James Gatz
ecb1ca7e0f 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-17 09:46:48 +02:00
Pavlos Koutoglou
c4b3e60fba 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-16 20:41:01 +02:00
James Gatz
ae6db0dd06 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-15 20:06:56 +00:00
yaoweiprc
d22abe80f1 unescape forward slash in json response when previewing (#8698) 2025-05-15 13:06:12 +00:00
George
accdd0bbf8 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-15 07:59:49 +00:00
George
33982606a5 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-15 02:50:13 +00:00
Mark Kim
83b3661694 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-14 12:03:36 -04:00
Jack Kavanagh
8927168f2f remove override (#8716) 2025-05-14 16:14:17 +02:00
Kent Wang
8f91ddab79 Fix: rendering in worker error bug [INS-5482] (#8695)
* Fix render error bug in template
2025-05-13 09:55:28 +00:00
Bingbing
69c08ec0ad fix: specify bash as shell to ensure INSO_VERSION can be read on Windows (#8704) 2025-05-13 03:13:18 +00:00
Mark Kim
df86a477fb refactor: rename the copy for example (#8661)
* refactor: rename the copy for example

* fix: test
2025-05-12 12:21:39 -04:00
James Gatz
b229956097 fix overflow issue on key-value editor (#8688) 2025-05-09 13:08:52 +00:00
Bingbing
1a6fe12561 feat: support to set cookie hostOnly property (#8677) 2025-05-09 09:04:01 +08:00
Bingbing
e62917a54d fix: domain in cookie list not update when be set to empty (#8683) 2025-05-08 02:14:19 +00:00
George
fb6e894044 docs(script-sdk): add docs for console - INS-5475 (#8685)
* docs(script-sdk): add docs for console

* fix: export console
2025-05-07 07:13:52 +00:00
Kent Wang
794f83e2fe Fix search bar disappear when no match collection found in project view (#8684) 2025-05-07 14:57:41 +08:00
Jack Kavanagh
8388040113 use stable nixpkgs (#8641) 2025-05-07 06:32:57 +02:00
yaoweiprc
8faa3c8148 fix the problem that the multiline editor button and file button in key-value editor are not aligned (#8678) 2025-05-06 15:36:54 +02:00
Jay Wu
0026acaa9c Merge branch 'release/11.1.0' into develop 2025-05-06 08:14:00 +00:00
Jay Wu
0dd38ba87b Bump app version to 11.1.0 core@11.1.0 2025-05-06 05:41:09 +00:00
James Gatz
87107113fa add e2e test for inso cli export spec for insomnia v5 (#8670) 2025-04-30 16:02:30 +00:00
Jay Wu
45401ebf70 Merge branch 'release/11.1.0-beta.4' into develop 2025-04-30 12:53:00 +00:00
Jay Wu
96cc096511 Bump app version to 11.1.0-beta.4 core@11.1.0-beta.4 2025-04-30 11:17:33 +00:00
George
20b735bf5d docs(script-sdk): add docs for headers - INS-5438 (#8666)
* docs(script-sdk): add docs for headers

* fix: smoke test
2025-04-30 07:05:07 +00:00
Kent Wang
04256e2bba Fix smoke test flaky cases in slower runners (#8665)
* fix flaky cases
2025-04-30 13:38:37 +08:00
Jay Wu
4608067c11 Bump app version to 11.1.0-beta.3 (#8664) 2025-04-30 10:57:39 +08:00
George
502c880ab5 docs(script-sdk): add docs for the folder entity (#8657) 2025-04-29 08:31:28 +00:00
Kent Wang
733c05afb1 Fix secret values are not revealed in OAuth2 auth tab[INS-5425] (#8658)
Fix OAuth secrets not revealed issue
2025-04-29 08:17:24 +00:00
Jay Wu
1c7958dfcd chore(release): create the draft release in the release-start workflow (#8656) 2025-04-29 15:56:45 +08:00
Bingbing
1f9be6b01f fix: update cookieJar methods to keep the name and params consistent (#8654) 2025-04-29 14:44:33 +08:00
George
14b569dbac docs(sdk): add docs for proxy-config (#8647) 2025-04-28 09:35:11 +00:00