Commit Graph

3673 Commits

Author SHA1 Message Date
Balu George
9d1bd1cf11 Upgrade node-libcurl version to 2.36.12 and electron to 36.4.0 2025-08-12 11:50:20 +05:30
James Gatz
93e64c5fc1 Use correct JSON encoding type in actions (#8965) 2025-08-11 14:40:04 +02:00
James Gatz
f1a0179abc feat(Inso CLI): Improve error messages when Inso cannot find Insomnia data or global environments (#8942)
* improve inso error messages for no insomnia data or missing global environment

* Update nesting in log message
2025-08-11 10:00:45 +00:00
Jack Kavanagh
4d42160f3c fix: router warnings (#8958)
* fixes some warnings

* Fix theme issues

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2025-08-11 11:34:36 +02:00
George
f62d1b2bff fix: introduce data folder as one constraint of file accessing (#8960)
* fix: introduce data folder as one constraint of file accessing

* fix: mistake from rebase
2025-08-11 16:16:14 +08:00
James Gatz
aa838bf39c chore(Architecture): react router spa mode (#8902)
* first pass

fix tests

move all react things in dev

try-package

build stuff

use http protocol instead of file

handle refresh

fix tests and routeloaderdata apths

fix npm run dev

fix sorts

fix hidden browser window

cleanup files

Typesafe /auth/* routes

typesafe commands route

git-credentials typesafe routes

import typesafe routes

fix types

fix hidden browser window

invite and collaborators typesafe routes

fix types

remove workarounds

fix dashboard test

more types

git typesafe routes

fix runner test

typesafe scratchpad navigation

fix remove unused project route

fix test routes

add space

request typesafe routes

git credentials typescript conspiracy

git typesafe routes

typecheck

debug bundles for inso

fix test

fix request group tab

workspace typesafe routes

feedback

All routes use generated types

Add typed fetchers to actions and loader

Use typed fetchers in the app

move git actions to the root

* fix react-use usage

update import source field

Spawning npm fails the build

Add ~ module resolution to vitest

add initialEntry functionality

fix update environment name requirement

fix settings patch

use loader for fetching the vault key and fix process.env.PLAYWRIGHT issue

fix missing type

Centralize useRouteLoaderData to routes

Use environment for vitest tests that run browser code

Update remaining fetchers to typesafe versions

remove unused fetcher and add callback to sync

Wrap load/submit in useCallback to keep them stable between re-renders

Update deps lists with stable submit functions

fix lint issue

* fix ts issues

* Add toaster to root

* Use shell for running scripts with spawn on Windows

* Move renderer bundling out of the build script

* Fix request-pane test flakiness

* update the url we use for internal purposes

* Increase timeout for release workflow

* fix flaky bundling test

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-08-08 11:10:28 +02:00
Kent Wang
2eca4de150 feat: External vault separation and bundle plugin support for Insomnia & Inso (#8864)
* Move vault related UI code
* Support bundle plugin for app & inso and backend integration (#8857)
* Update Github actions
* spike: bundle plugin installation alternatives (#8899)
* installation alternative by optional dependency
* Refine plugins api
* feat: Execute vault plugin tag in web worker (#8934)
* update bundle test
* fix issues from comment

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-08-07 14:06:41 +00:00
xdm
ab68d5c045 fix: hide the disabled queries in url.getQueryString()[NS-1073] (#8949) 2025-08-07 18:18:55 +08:00
Fabian Rodriguez
ce8e542b45 feat: generate insomnia-inso docs from source (#8099)
* feat: WIP generate insomnia-inso docs from source

Add a script that generates the reference docs for insomnia-inso from
the source code. Commander exposes commands, options and descriptions
which we can use to generate the markdown files.

This is a WIP to start a convo and an initial implementation, the script
doesn't work as it is because `cli.ts` doesn't export `program` and
`version`.

* wire up program

* simplify

* normalise line endings in each function

* Add page.release to relative links

* Use major.minor when generating the docs

* Add frontmatter to generated docs

* Use /inso-cli/reference/<path>/<version>/ as the url segment in generated docs

* Use `title` and not h1s for titles

* Fix linting issues

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-08-07 09:15:58 +00:00
Bingbing
91b3844c29 fix: hide invalid import and export button when no active project (#8937) 2025-08-07 03:38:48 +00:00
yaoweiprc
c65b766803 Fix the bug that it can not fetch oauth token for a folder (#8911) 2025-08-07 03:09:44 +00:00
Curry Yang
df9cec1c84 chore: add vite optimizeDeps (#8945) 2025-08-07 10:39:09 +08:00
yaoweiprc
2f746f3e60 OAuth authorize using system browser [INS-817] (#8863)
Use default browser for authorization.
2025-08-06 18:19:06 +08:00
James Gatz
d439abea1f fix fields being disabled when the uri gets a value (#8940) 2025-08-05 15:22:28 +02:00
xdm
28e6d85528 fix: fix environment popover style & Optimize the performance of smartEncodeUrl (#8898)
* fix: fix environment popover style

* fix: Optimize the performance of `smartEncodeUrl`
2025-08-05 17:33:47 +08:00
Curry Yang
b04a7dd1bd perf: improve expand all performance (#8935) 2025-08-05 06:42:21 +00:00
Bingbing
39d948c02f fix: add a NoSelectedProjectView and ensure it doesn't error when project not found (#8931) 2025-08-05 05:14:12 +00:00
Noritaka Kobayashi
9e568ac36b chore: fix typos (#8929) 2025-08-05 11:22:04 +08:00
Pavlos Koutoglou
f74114f8b6 refactor: remove unused useEffect for setting storage type in ProjectSettingsForm (#8922) 2025-08-01 21:44:41 +03:00
Pavlos Koutoglou
28c78cd560 feat: enhance undo changes confirmation with file count details (#8921) 2025-08-01 15:22:58 +03:00
Pavlos Koutoglou
1734b93ae8 feat: Keep user within the Create Project workflow even if remote git repo doesn't exist [INS-810] (#8906)
* feat: Add option to connect repository later in project settings

* feat: Add option to connect repository later when updating project

* feat(Git Sync): Implement option to create project without connecting to a Git repository

* feat: Update message for connecting repository later in project settings

* feat(Project Settings): Add option to connect repository later with updated UI feedback

* feat(Git Sync): Allow project creation with empty git repository when connecting later
2025-08-01 15:22:37 +03:00
Bingbing
54c15cba15 feat: support bulk project import (#8901) 2025-08-01 17:23:48 +08:00
Jack Kavanagh
b6c7467810 replace lodash with es-toolkit (#8909) 2025-07-31 06:40:26 +00:00
Curry Yang
0293b71eaf fix: session exposure (#8916) 2025-07-31 14:23:57 +08:00
Jay Wu
6137ff6cf9 Bump app version to 11.4.0 2025-07-30 09:06:55 +00:00
Bingbing
8c4e32b861 optimize: add a descendant map to speed up v5 export performance (#8805) 2025-07-30 07:52:25 +00:00
Curry Yang
25c66a6fce Bump app version to 11.4.0-beta.1 2025-07-29 10:15:28 +00:00
Curry Yang
d597f68c7d Socket.io improvements-[INS-1027] (#8913)
* fix: import&export socket.io

* feat: socket.io improvements

* add smoke test

* del trim
2025-07-29 15:29:17 +08:00
George
09e7a5ed1d fix: auto complete response in script editor (#8910) 2025-07-28 17:01:16 +08:00
James Gatz
f220e2ef51 fix(GitRemoteBranchSelect): update fetcher key to use deferred URL value (#8905) 2025-07-24 13:20:06 +00:00
Pavlos Koutoglou
322b91561e fix: handle 'empty' gitRepositoryId in project validation (#8903) 2025-07-24 15:19:03 +03:00
Curry Yang
d46b9a1e2a Bump app version to 11.4.0-beta.0 2025-07-24 10:58:09 +00:00
James Gatz
2dae9ef76f feat(Git Sync): Introduce the option to select a branch when cloning a repository (#8883)
* Allow users to pick a branch when cloning a repo

* save

* cleanup

* add ref option to git clone action

* cleanup UI

* fix ts in credentials

* fix ts issues from rebase

* fix lint issue

* add ref option to git actions and update credentials handling in UI components

* fix: include credentials in dependency array for useEffect in GitRemoteBranchSelect
2025-07-24 09:23:24 +00:00
Pavlos Koutoglou
17540a940d feat: Clean up Git notifications and status [INS-911] (#8891)
* feat: add new animation keyframes for up-loop and down-loop

* fix(git): handle errors when checking for unpushed changes and improve permission error messages

* fix(git): improve error handling and user feedback in Git sync dropdown

* feat: add ProjectBranchName component with syncing status and pending changes indicators

* feat: enhance SyncDropdown with ProjectBranchName component and improved sync status indicators

* fix(git): add error handling to checkoutGitBranchAction for improved user feedback

* fix(git): add error handling to checkoutGitBranchAction for improved user feedback

* fix: reset initial state of ProjectBranchName to 'default' for correct sync status handling

* refactor: remove showAlert calls for pull failure in GitProjectSyncDropdown

* fix: replace showError with operationError state for improved error handling in SyncDropdown

* fix: add success indicators to various Git actions for improved feedback

* fix: update action return values to include success indicators for improved feedback

* refactor: remove ProjectBranchName component to streamline dropdown functionality

* feat: add Toaster component for improved toast notifications in Root

* feat: add view transition animations for toast notifications

* feat: enhance sync dropdown with toast notifications for Git actions

* feat: add toast notifications for Git actions in sync dropdown

* feat: implement Toast notification system with customizable content and styles

* update notification styles

* feat: improve error handling in Git actions with a centralized error message function

* feat: update Git sync dropdown to display connection status and connect button when not synced

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2025-07-24 09:06:44 +00:00
George
6b884632a1 refactor: relax the contraint by removing http message checking (#8896) 2025-07-24 10:22:47 +08:00
George
54c8bde1f3 fix: extend insomnia.response.to assertion with chai plugin utilities (#8875) 2025-07-23 16:16:20 +08:00
Jack Kavanagh
1fe9e61fac More-routes (#8893)
* move workspace

* prettier

* lint fix

* fix paths

* move project route

* move remote-collections

* runner

* move git-actions

* git-creds

* git org

* move git workspace and project actions

* move invite

* rename invites

* split collaborator actions

* fix members

* fix route ids
2025-07-22 15:00:43 +00:00
Jack Kavanagh
90bd4d47ab Refactor plugin structure to avoid inso bundling UI logic (#8892)
* extracting template functions to src

* move all ui export logic into ui

* remove modal from plugin init

* remove har from plugin api

* remove alert and prompt model shortcuts

* replace renderPurpose with renderer check

* split plugin barrel

* fix test

* use window to work around renderer imports

* restore har api

* fix test
2025-07-22 11:58:46 +02:00
Curry Yang
6ae901bb28 Feature: support socket.io - [INS-5024] (#8405)
* init socket.io model

* socket.io request panel UI

* init socket.io response pane(use RealtimeResponsePane)

* adaptive for new socketio tab type

* payload panel ui

* socketIO event tab UI

* fix event switch style

* feat: socketIO payload persist

* feat: event panel

* feat: socketIO IPC

* update ui

* feat: add query

* build response

* fix: add db type

* add useFetcherWithPromise hook

* fix todo

* prettier format

* attach cert to request

* fix minor bugs

* fix lint

* fix unit test

* feat: add proxy for socket.io

* Adapt to multiple tabs

* disable proxy

* fix enable proxy

* support git&cloud sync

* fix: ci

* del console

* chore: adapt to react-router v7

* fix bugs

* fix: lint

* feat: reuse websocket component (#8828)

* del unuse field

* fix: conflict

* fix: lint

* fix: type check
2025-07-22 12:02:06 +08:00
Curry Yang
b7a161dd63 chore: add remote files log (#8865) 2025-07-22 11:37:22 +08:00
Curry Yang
10a79baa20 fix: Incorrect handling of events (#8876) 2025-07-22 11:23:22 +08:00
James Gatz
3bcf4f7f32 chore(Routes): Move import and organization to flat routes (#8888)
* Move environment to flat route

* Move import to flat routes

* Move organization to flat routes

* move insomnia fetch and vcs to dynamic import

* refactor: consolidate defaultSendActionRuntime import to network module

* refactor: migrate organization-related imports to organization-utils module

* fix import order
2025-07-21 18:14:53 +02:00
Curry Yang
28c88e6d9f fix: squirrel windows can not start the new version after update - [INS-856] (#8846)
* fix: squirrel can not start the new version after update

* fix: lint
2025-07-21 17:04:51 +08:00
Ryan Willis
58a42fa890 fix: closest folder auth determination logic [INS-638] (#8884)
* fix: reverse folder priority when inheriting auth [INS-638]

* fix: don't alter arrays in-place
2025-07-17 13:30:04 -07:00
Ryan Willis
c37706bf2a fix: ensure oauth2 pkce method is send when enabled [INS-837] (#8869) 2025-07-17 15:44:27 +00:00
Ryan Willis
1eb0cbe905 fix: prioritize oauth token association with request [INS-918] (#8882) 2025-07-17 08:30:52 -07:00
Jack Kavanagh
4936109879 chore(routes): move request and more (#8881)
* debug and design

* mocks

* request and request group

* unit test

* tests

* fix lint issue for import order

* exclude routes from unit tests

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2025-07-17 13:54:57 +00:00
James Gatz
b0a6c837c5 chore(Routes): move remote-files to dedicated route (#8879)
* feat: Refactor remote files loading logic and move to dedicated route

* fix type import
2025-07-17 15:32:37 +02:00
James Gatz
daa39d3a80 chore(VaultKey Routes): Move vault routes to flat files (#8878)
* refactor: standardize vault key API endpoints and actions

* fix renderer issue
2025-07-17 15:31:26 +02:00
James Gatz
5bd8612681 chore(Routing): Move action routes in flat file structure (#8871)
* move new project action to file module

* move update/delete project action in separate modules

* move project action to dedicated route file

* move workspace new/delete actions to dedicated route files

* move workspace move/update actions to dedicated route files

* move workspace move-workspace/update-meta actions to dedicated route files

* refactor: move createNewTestSuiteAction to dedicated route file

* refactor: move test suite actions to dedicated route files

* refactor: move unit test actions to dedicated route files

* deprecate Insomnia AI and move spec actions to file route

* refactor: move environment actions to dedicated route files

* refactor: rename update cookie jar route and move action to dedicated file

* refactor: move CA certificate actions to dedicated route files

* refactor: move client certificate actions to dedicated route files

* refactor: move update settings action and reorder collection action to dedicated route files

* refactor: move mock route actions to dedicated route files

* remove unused mock-server update action

* refactor: move toggle expand all action to dedicated route file

* refactor: relocate safeToUseInsomniaFileName functions to sync/git/insomnia-filename
2025-07-17 13:42:40 +02:00