Commit Graph

5539 Commits

Author SHA1 Message Date
xiaodemen
2dda81d0f1 fix: Translate responseBody and responseCode.code 2025-07-09 14:43:15 +08:00
Curry Yang
62b50b7545 Merge branch 'release/11.3.0-beta.1' into develop 2025-07-08 10:06:09 +00:00
Curry Yang
cc8ff00f23 Bump app version to 11.3.0-beta.1 core@11.3.0-beta.1 2025-07-08 09:41:40 +00:00
James Gatz
1f7a82a5e5 Move zod to dev deps to be bundled by vite (#8840) 2025-07-07 12:53:24 +02:00
James Gatz
c01f8a0d2f fix(Duplicate): Ensure id's match the request ids in the unit tests (#8833)
* fix issue of request id matching when duplicating a workspace.

When duplicating a workspace we now use the same functionality as import/export to have consistency on matching request ids and resources needed to be created

* remove unused import
2025-07-07 12:01:48 +02:00
James Gatz
d9dab8a2f4 chore(Bump zod): Upgrade zod to latest (#8835)
* Upgrade zod to latest

* Consistent names and parameters in schema
2025-07-04 08:22:06 +02:00
Morgan Davison
205040429c fix: fix typo in upgrade notice message (#8829) 2025-07-03 11:38:50 +08:00
James Gatz
3d3d371368 fix issue where folder headers were not imported correctly (#8821) 2025-07-02 10:03:59 +00:00
Jay Wu
bf1433d136 Merge branch 'release/11.3.0-beta.0' into develop 2025-07-01 12:34:08 +00:00
Jay Wu
3b05ea17f8 Bump app version to 11.3.0-beta.0 2025-07-01 20:13:50 +08:00
Pavlos Koutoglou
ee94938b40 feat: Add segment events [INS-5807] (#8802)
* fix: update segment event tracking for export completion

* fix: include platform information in segment event tracking properties

* feat: track segment events for import and export actions in workspace dropdown

* feat: track segment events for import and export actions in workspace dropdown

* feat: track segment event for export requests selection in modal

* feat: track segment event for import completion with workspace and request counts

* feat: include selected role in invitation tracking properties

* feat: track segment events for invite resent and revoked actions

* feat: track segment event for import action in project empty view

* feat: track segment event for scanned import source

* feat: track segment events for VCS pull and push actions with error handling

* feat: track segment event for import action initiation

* feat: track segment events for project creation and update actions with storage details

* feat: track segment event for import action initiation in project route

* fix: standardize storage property values to lowercase in project actions

* fix: remove unnecessary console log in ExportRequestsModal

* fix: replace alias import of database with direct import in actions file

* fix: update segment event source for import and export actions to include 'scratchpad'

* fix: restore import of showAlert in InviteModal component
2025-07-01 11:14:48 +02:00
Kent Wang
2dd3dbe137 fix environment not update issue when switch tab (#8823) 2025-07-01 14:23:11 +08:00
George
228f1b25d9 chore(analytics): capture abnormal run test events - INS-5623 (#8765)
* chore: capture abnormal run test events

* fix: lint

* fix: lint

* chore: enable sentry in main

* fix: lint

* fix: remove duplicated sentry init

* fix: lint
2025-06-30 14:37:15 +08:00
Kent Wang
d476b25515 Add a ref to ensure invalid ref returns the latest value (#8816) 2025-06-30 10:01:18 +08:00
Jack Kavanagh
0bef406035 address joiner and tags in set-cookies (#8808)
* patch out jnunjucks oiner global

* sanitize set cookie input

* remove interpolation symbols
2025-06-27 15:32:10 +02:00
Ryan Willis
e9b75c02bc feat: allow choosing install dir with NSIS - [INS-5109] (#8456)
* feat: allow choosing install dir with NSIS

* inject file

* write file to package

* read nsis flag file

* add publish config

* add publish config

* comment wrapper

* nsis auto-update

* auto update

* update

* fix nsh

* update nsh script

* update config

* fix: lint error

* fix lint

* fix: can not read or write file

* fix: did not generate app-update.yml

* use different wrapper logic

* modify comment

* fix: simplify code

* feat: add version into origin exe name

---------

Co-authored-by: Curry Yang <1019yanglu@gmail.com>
2025-06-23 16:31:13 +08:00
Curry Yang
e2ce77d713 fix: tab disappear when discard changes (#8804) 2025-06-19 17:21:13 +08:00
Kent Wang
2c65178d7b fix(script): Insomnia.global.set is not updating environment when only global base environment is activated[INS-5795] (#8790)
* Fix insomnia.global script issue
* Fix environment name issue
2025-06-19 15:25:44 +08:00
Curry Yang
ef5235ab98 fix: unknow sync in sync (#8703) 2025-06-19 06:17:53 +00:00
James Gatz
3357fd888c fix(Git Sync): Importing a resource without a workspace prevents it from being shown in the git diff (#8806)
* make sure all required entities are created when importing to a new workspace

* improve handling of git repository state in new workspace modal

* prevent initialization of local backend project for git projects

* fix issue for duplicate filepaths
2025-06-18 09:58:34 +02:00
Kent Wang
403218cda5 test: Add smoke test check for templating tags (#8759)
* Add test collection file yaml
* Add template tag test
* Fix lint issue
2025-06-16 09:55:33 +08:00
Bingbing
14ce962070 fix: apply specific environment when sending requests in the template (#8780) 2025-06-06 09:50:24 +00:00
Vivek Thuravupala
092651e4a8 Merge branch 'release/11.2.0' into develop 2025-06-05 20:07:20 +00:00
Jay Wu
fa553a620c Bump app version to 11.2.0 core@11.2.0 2025-06-05 05:11:01 +00:00
Jack Kavanagh
93556bb88b patch out range global (#8771)
* patch out range global

* cycler
2025-06-04 08:36:38 +00:00
yaoweiprc
152a113a3d Move dependency decompress to packages/insomnia (#8764) 2025-06-03 10:03:32 +08:00
James Gatz
7bd37e223e fix(GitHub Repository Select): Display any errors inline in the GitHub repository select component (#8776)
* Display any errors inline in the github repository select component

* fix index key
2025-06-02 13:36:38 +00:00
Jay Wu
c91846897d Merge branch 'release/11.2.0-beta.0' into develop 2025-05-30 14:00:06 +00:00
Jay Wu
3f1004dde4 Bump app version to 11.2.0-beta.0 core@11.2.0-beta.0 2025-05-30 13:05:49 +00:00
xdm
a965f57924 test: wait pet 2 tab to become visible (#8770) 2025-05-30 09:13:25 +00:00
Pavlos Koutoglou
090ed3db7f fix: Insomnia application showing incorrect warnings about Git Projects when Storage Controls set for Git Storage only [INS-5602]] (#8762)
* fix: improve local project inconsistency check in ProjectDropdown

* fix: adjust styling and icon usage in ProjectSettingsForm

* fix: enhance local project inconsistency check to include Git project validation

* fix: remove debug console log for Git sync status in ProjectRoute
2025-05-30 09:50:21 +02:00
yaoweiprc
6cff4d2773 Fix the issue that SSE connection can not be disconnected in some cases [INS-5464] (#8722)
* fix the issue that SSE connection can not be disconnected in some cases
* follow system proxy by default for SSE request
2025-05-29 00:59:00 +00:00
James Gatz
2f5d7014b4 fix(Git Project migration): fix issue with matching the filepath with the document id (#8761)
* fix issue with id check against filepath

* disable the 'migrate' button when loading
2025-05-28 15:38:49 +00:00
Bingbing
6120a7381a fix: preserve empty strings during export (#8727) 2025-05-28 10:31:00 +00:00
James Gatz
3145b57aa8 feat(Tests): Add require interceptor in tests (#8758)
* block requiring arbitary modules in test scripts

* cleanup log

* fix require/chai issues

* update tests
2025-05-28 08:59:45 +00:00
Kent Wang
8de4a9b30a fix get request folder name issue when render in webworker (#8756) 2025-05-28 02:21:42 +00:00
Jack Kavanagh
5543a6e08f tooling: unicorn eslint (#8743)
* set a few unicorn rules

* autofixes

* fix types

* more minor fixes

* more autofixes

* more normalisation

* prettier run
2025-05-27 09:47:46 +00: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