Commit Graph

3119 Commits

Author SHA1 Message Date
James Gatz
7087a4932a
fix clicking on the workspace card title should navigate to the workspace (#7631) 2024-07-01 15:29:51 +00:00
James Gatz
136db3e74b
chore(Tailwind): RenderedQueryString to tailwind (#7627) 2024-07-01 14:19:03 +00:00
James Gatz
473b9afb62
fix(UI Improvements) (#7626)
* Display selected environments in environment picker

* display the number of active cookies/certificates

* persist the position of the graphql variables panels

* gray out disabled items in the key-value editor
2024-07-01 15:15:10 +02:00
James Gatz
950d0d3f04 Bump app version to 9.3.1 2024-06-28 16:38:09 +02:00
Mark Kim
cb25910198
chore: add request id (#7610) 2024-06-28 10:32:11 -04:00
Filipe Freire
eab0e9c675
chore: add event for workspace environment type [no-ticket] (#7602)
* chore: add event for workspace environment type [no-ticket]

* fix lint
2024-06-28 16:07:41 +02:00
James Gatz
3ab6165f52
fix(Cookie expires): Invalid date on cookie expires (#7614)
* Fix always running after-response script

* Fix invalid date in cookies
2024-06-28 16:06:05 +02:00
Hexxa
cb4ec74a2a
fix: help to handle @ when it is not encoded in url (#7609)
* fix: help to handle @ when it is not escaped in url

* test: add tests and comments
2024-06-28 21:02:59 +08:00
James Gatz
8d027a73be Bump app version to 9.3.0 2024-06-27 13:15:37 +02:00
Jack Kavanagh
c21698decf
upgrade inso pkgs (#7592)
* upgrade cosmiconfig

* remove one layer of indirection

* more indirection

* upgrade commander

* fix tests

* remove unusedExitoverride

* flatten

* inline

* flatten config

* fix test

* docs

* flatten logging

* dont default to script

* fix test docs and config search

* refactor exportSpec

* fixed test
2024-06-27 12:53:35 +02:00
James Gatz
1a80b25ce5
fix(key-value editor): Fix locked focus when the autocomplete is open and improve styling (#7597)
* Fix locked focus when the autocomplete is open and improve styling

* add await to delay snippet

* display the workspace name on global environments
2024-06-27 10:12:34 +00:00
gatzjames
6fd8a1e69c Merge remote-tracking branch 'upstream/release/9.3.0-beta.7' into develop 2024-06-26 13:21:30 +02:00
jackkav
272c25a605 add note about notorize fail 2024-06-26 12:36:08 +02:00
James Gatz
c345277d72 Bump app version to 9.3.0-beta.7 2024-06-26 09:58:57 +00:00
Jack Kavanagh
72edb6a0a6
Inso-third-pass (#7588)
* inline utils and clean outputs

* improving the log output

* dx

* fix tests abstract path

* return early

* flatten options and utils

* flatten logger

* add export file and git examples

* flatten cli.ts

* use await api and flatten

* flatten cli

* fix test
2024-06-26 11:52:20 +02:00
James Gatz
aaabdfdd79
fix empty value and close combobox input on select (#7590) 2024-06-26 09:03:18 +00:00
Hexxa
e410998552
refactor: enable active global environment and map it to the sdk (#7533)
* feat: refactor the environment mapping between inso and script sdk

* feat: enable global environment in the sdk

* fix: disable global cases

* refactor: pass select global env to script execution and persist it after execution

* fix: lint error

* fix: some minor fixes

* fix: undefined is persisted as globals

* chore: add some comments about the mapping rule

* refactor: enable menu items for global environment manipulation (#7589)
2024-06-26 08:41:02 +00:00
Jack Kavanagh
75dcdcc96e
9-3-quick-fixes (#7586)
* collapse init

* fix markdown icons and nunjucks

* fix context menu

* fix lint
2024-06-25 22:35:36 +02:00
James Gatz
8320c4c626
Update workpsace settings modal for environment settings (#7585) 2024-06-25 14:56:19 +00:00
James Gatz
b9883fdd14
fix(KeyValue Editor): Pressing enter on an input should update the value (#7580)
* fix onKeydown using the previous value

* use keybindingHandler for improved keyboard support
2024-06-25 16:42:36 +02:00
Hexxa
c92707b292
fix: can not undo changes after switching between requests (#7583) 2024-06-25 16:53:29 +08:00
Jack Kavanagh
b301c633f1
remove appDataDir and fix tests (#7579) 2024-06-24 13:21:21 +02:00
Jack Kavanagh
536fbcb27e
inso clean up (#7578)
* re-enable test and update snapshots

* completely remove generate config

* fix tests
2024-06-24 12:02:22 +02:00
James Gatz
fbf2b5d827
feat(Environment Picker): Simplify the UI (#7574)
* update environment picker ui

* remove write from test

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-06-21 11:09:55 +00:00
Jack Kavanagh
c7385f00be
normalise json path (#7575)
* normalise json path

* fix tests
2024-06-21 12:36:31 +02:00
Jack Kavanagh
3fec8698d1
Markdown-inlined (#7554)
* markdown

* add inline docs

* can save

* default preview mode

* simplify

* fix tests

* fix types

* full panel layout

* fix e2e test
2024-06-21 12:17:00 +02:00
Jack Kavanagh
4e333940ec
export should show on scratchpad (#7571)
* export should show on scratchpad

* flatten dropdown

* fix lint
2024-06-21 12:13:14 +02:00
Jack Kavanagh
6c35b1681c
Replace export data and more with Preferences (#7570) 2024-06-21 08:19:01 +00:00
jackkav
b7a6becb0b fix develop 2024-06-20 16:41:52 +02:00
jackkav
a4d8c5b18e fix scratchpad dropdown 2024-06-20 14:42:27 +02:00
Jack Kavanagh
43f0cafcf6 Bump app version to 9.3.0-beta.6 2024-06-20 10:43:20 +00:00
James Gatz
e2759d5ea3
use fetcher key to reset the fetcher result on different organizations (#7544) 2024-06-20 12:36:38 +02:00
Jack Kavanagh
8bb6b470d2
transform hyphens to underscores on import (#7564)
* make hyphens underscores

* add test

* add env test

* fix type

* only transform value not key
2024-06-20 12:36:16 +02:00
Jack Kavanagh
f10ec3167a
warnings (#7566) 2024-06-20 10:48:31 +02:00
Hexxa
9dd5bdc71a
fix: add missing methods depending on the interpolator (#7560) 2024-06-20 09:50:08 +02:00
James Gatz
42bda02eb5
fix(Sync): Do not show conflicts for empty keys (#7556)
* Remove keys that have empty values and can be undefined in a model

* only scripts can be undefined for now

* New fields are now initialized as undefined

* update tests
2024-06-19 15:59:45 +02:00
gatzjames
cd3a355594 Revert "Revert "feat(Global Environments): Introduce a new top level file type called global environments. (#7511)""
This reverts commit 8a0f455397.
2024-06-19 11:38:47 +02:00
gatzjames
8a0f455397 Revert "feat(Global Environments): Introduce a new top level file type called global environments. (#7511)"
This reverts commit f86e00b644.
2024-06-18 16:49:18 +02:00
James Gatz
f86e00b644
feat(Global Environments): Introduce a new top level file type called global environments. (#7511)
* add new workspace type 'environment'

* new route for environments and set/get for them

* update environment picker UI

* update workspace environment modal ui to match env view

* global environment request rendering

* type checks

* ui overflow fix

* update e2e

* auto-lint issue

* type-checks

* Update aria label

* create env from project view

* changes

* save

* environment picker component

* update e2e
2024-06-18 18:05:28 +08:00
Hexxa
740d9a8cf7
fix: always take the latest operation name instead of prev state's (#7553) 2024-06-18 08:13:09 +00:00
Hexxa
b8089ced6e
feat: display status of sending request steps - INS-3635 (#7382)
* feat: display status of sending request steps

* fix: activeRequest id is necessary for different cases

* chore: rephrase step name and improve its typing

* feat: show sending status for mock routes

* fix: make text vertically aligned and reformat code

* fix: spinner line height

* feat: add after-response script step to the progress

* fix: add useEffect deps

* refactor: add a function for finish last timing record and compact logic a bit

* simplify

* add tooltip

* fix timer

* use duration

* improve time tag

* refactor: replace callback with hook

* fix: add the missing hook

* rename isExecuting

* delay snippet

* works

* rename bridge methods

* remove undefined initial state

* force stop execution before cancel

* fix time tag layout

* fix hang

* simplify api

* tidy up

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-06-18 08:58:09 +02:00
Filipe Freire
fd8f12e408
spike: proxy error on login [INS-4009] (#7546)
* fix: proxy error on login [INS-4009]

* add preferences button

* change data-testid for settings in auth authorize

* Update packages/insomnia/src/ui/routes/auth.authorize.tsx

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>

* Update auth.authorize.tsx

* Update auth.authorize.tsx

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-06-17 12:04:36 +00:00
Jack Kavanagh
35f320e26b
consistent dropdown layout (#7536)
* folder actions

* request sections

* workspace sections

* readd icon

* default font error

* add section to create new request dropdown

* rearrange auth options

* add file import to create menu

* hints
2024-06-17 11:45:41 +00:00
Jack Kavanagh
16d19760c2
improve plugin install ux (#7542) 2024-06-17 05:59:49 +00:00
Hexxa
55e7bb1a1e Bump app version to 9.3.0-beta.5 2024-06-14 10:37:51 +00:00
James Gatz
71a41d17f0
fix loading state for logout button in error page (#7545) 2024-06-14 10:13:45 +02:00
James Gatz
a79dc36450
key value editor improvements (#7541) 2024-06-13 14:03:45 +02:00
Lucas Machado
57cbdcb7c1
fix: onboarding typo (#7537)
Fixes onboarding typo in "global search" feature
2024-06-13 10:41:33 +01:00
Jack Kavanagh
21be84981e
can create local mocks in enterprise plan (#7538)
* add contact sales

* enterprise can create local mocks

* control mock server selection
2024-06-12 14:45:17 +00:00
Jack Kavanagh
4a8199f007
folder sections (#7488)
* folder section headers

* add icons
2024-06-12 10:39:20 +02:00
Jack Kavanagh
8648f49d4d
move env editor to folder tab (#7534)
* move env editor to folder tab

* remove old unused test
2024-06-12 10:05:42 +02:00
James Gatz
94ed3c1782 Bump app version to 9.3.0-beta.4 2024-06-11 16:57:57 +00:00
James Gatz
cc6d669299
ui imrpovements (#7528) 2024-06-11 18:05:33 +02:00
Filipe Freire
1c66fccfa1 Bump app version to 9.3.0-beta.3 2024-06-11 11:41:27 +00:00
jackkav
49f774c11d fix prerelease test 2024-06-11 12:59:56 +02:00
Jack Kavanagh
e13c169dcd Bump app version to 9.3.0-alpha.11 2024-06-11 10:47:17 +00:00
Jack Kavanagh
2ff059f7a2
remove oas 2 kong (#7503)
* remove oas 2 kong

* remove old test
2024-06-11 10:38:09 +01:00
Jack Kavanagh
6cb619285f
include read only in headers count (#7521) 2024-06-11 10:08:04 +02:00
Hexxa
b60b78ff4c
fix: url preview should contain auth params (#7509)
* fix: url preview should contain auth params

* fix: lint error

* fix auth inheritance

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-06-10 10:41:52 +00:00
Jack Kavanagh
fbb6f59304
import scripts (#7518) 2024-06-10 11:44:55 +02:00
Jack Kavanagh
e0b62caf87 Bump app version to 9.3.0-beta.2 2024-06-07 13:13:51 +00:00
Jack Kavanagh
adf2e20ba4 Bump app version to 9.3.0-alpha.9 2024-06-07 11:29:36 +00:00
Jack Kavanagh
fab8397a15 Bump app version to 9.3.0-beta.1 2024-06-07 10:39:58 +00:00
James Gatz
48eea153bd
improve database types to allow for querying per model fields (#7512) 2024-06-07 12:32:50 +02:00
Jack Kavanagh
9ac9e620c5
disable nunjucks (#7510) 2024-06-07 12:27:23 +02:00
Filipe Freire
b9c5ea4451
chore: new segment event (invite) [INS-3938] (#7506) 2024-06-06 22:49:44 +02:00
Jack Kavanagh
eac1e63f00
feat: Import/folder-auth (#7505)
* console logs

* import auth from folders

* just in case

* restore inheritance behaviour

* add auth node to snapshot
2024-06-06 12:11:11 +00:00
Hexxa
482eb7911e
feat: enable importing folder-level scripts (#7504)
* feat: enable importing folder-level scripts

* fix snapshot

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-06-06 13:54:06 +02:00
Jack Kavanagh
9bad611d5f Bump app version to 9.3.0-alpha.8 2024-06-05 16:34:35 +00:00
Jack Kavanagh
2e81c5a331 Bump app version to 9.3.0-alpha.7 2024-06-05 15:09:53 +00:00
Filipe Freire
b2aef286ac
chore: add analytics test [INS-3919] (#7478)
* chore: addd analytics test [INS-3919]

* minor fix analytics

* use net.fetch and use network log to check if segment gets called

* better way to capture request logs and body

* fix test

* move it to smoke

* refactor: Improve analytics event tracking in smoke test

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-06-05 15:04:31 +00:00
Filipe Freire
0e0806d25d
chore: new analytics events [INS-3938] (#7495) 2024-06-05 14:40:48 +00:00
Jack Kavanagh
50965a4483
Bump/electron-30 (#7354)
* bump node

* bump electron

* pin node v

* bump libcurl

* fix lock

* use stable

* types

* latest electron
2024-06-05 16:20:56 +02:00
Jack Kavanagh
80ab8b065b
feat: folder inheritance scripts (#7430)
* proof of concept

* remove test case

* support pre and after

* fix typo

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-06-05 15:51:36 +02:00
Jack Kavanagh
ff17ff826c Bump app version to 9.3.0-alpha.5 2024-06-05 11:14:22 +00:00
James Gatz
79cc2ef3ef
fix(Response Tabs): Tabs with a menu inside are not accessible - Response Panes (#7477)
* use thing scrollbars in the app

* fix menu/toast overflow content shift

* update content and auth dropdowns

* Update auth wrapper styles

* update body editors

* Request/request-group panes

* update request script editor

* update e2e tests

* remove log
2024-06-05 12:05:21 +02:00
Hexxa
57e9898bf0
chore: rename variable properties to improve readability (#7480)
* chore: rename variable properties to improve readability

* fix: type check issue
2024-06-05 09:18:12 +00:00
Hexxa
c9b0f3cf8b
fix: add jsonSchema assertion chain (#7481) 2024-06-05 09:02:34 +00:00
James Gatz
978fbcf8f1
feat(Key-Value Editor): Improve accessibility and make the items re-orderable (#7465)
* remove unused components

* make read-only editors display nunjucks

* graphql toolbar css

* re-orderable key value editor

* move onChange to event handlers

* remove unused test

* fix delete all/add updates

* clean up logs

* remove callbacks
2024-06-05 08:30:44 +00:00
Curry Yang
eee71334a7
feat: add fetch timeout [INS-3911] (#7467)
* remove exponential backoff

* feat: improve err message when time out

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-06-05 07:41:00 +00:00
Jack Kavanagh
7923f8e70d Bump app version to 9.3.0-alpha.4 2024-06-05 05:29:02 +00:00
Jack Kavanagh
a92ae53208 Bump app version to 9.3.0-alpha.3 2024-06-04 16:15:07 +00:00
Jack Kavanagh
e369528db4 Bump app version to 9.3.0-alpha.2 2024-06-04 15:03:04 +00:00
Curry Yang
1b5723a01b
fix: Application Error when login failed (#7475) 2024-06-03 09:47:54 +00:00
Hexxa
42cd078b87
fix: add a missing assertion chain for the response entity (#7474) 2024-06-03 09:08:26 +00:00
André Ricardo
11524580d6
fix: websocket subprotocols (#7472) 2024-06-03 08:14:53 +00:00
pimothyxd
109258db41
fix: minor typo in interpolator (#7473) 2024-06-03 10:10:22 +08:00
Curry Yang
41911f00b0
perf: io-parallelization (#7458) 2024-05-30 13:35:13 +00:00
Hexxa
2898c2fb8d
fix: avoid rendering script by temporarily disable it (#7466) 2024-05-30 16:20:08 +08:00
Curry Yang
41c79a13b4
fix: project with null remoteId don't need to be updated (#7464)
* fix: project with null remoteId don't need to be updated

* fix: add detailed comments
2024-05-29 11:30:43 +02:00
Hexxa
55440c77ae
fix: unify after-response script property name for folders (#7460) 2024-05-29 10:28:17 +08:00
Filipe Freire
09d7ca96b2
feat: mock create segment event [INS-3924] (#7461) 2024-05-28 13:07:11 +00:00
Filipe Freire
09adb58c40
chore: investigate login error [INS-3851] (#7438)
* chore: investigate login error [INS-3851]

* another pass at error we show

* Update packages/insomnia/src/ui/auth-session-provider.ts
2024-05-28 13:45:13 +01:00
Hexxa
5d08381be5
fix: support generating values with faker.js in scripting (#7454)
* fix: support generating values with faker.js in scripting

* fix: relax timeout for one case and remove a duplicated case

* fix: test is flaky because of timeout

* fix: incorrect test selector

* fix: waiting before checking

* fix: replace clicking with assertion

* fix: relax the external timeout a bit
2024-05-28 15:28:49 +08:00
James Gatz
9f0bd8b0fe
feat(Accessibility): Update request lists to anounce the request name of a request on voice over (#7449) 2024-05-27 09:54:37 +02:00
Curry Yang
437460a4c3 Bump app version to 9.3.0-beta.0 2024-05-23 08:11:42 +00:00
Hexxa
46b6ea811e
feat: enable major features of the after-response script (#7411)
* feat: update data model and request-pane to support post-req-script

* fix: unit test failed

* feat: integrate post-request script to the engine - INS-3785,INS-3786 (#7329)

* feat: integrate post-request script to the engine

* refactor: some minor improvements

* fix: lint error

* chore: clean up typings

* refactor: separate transforming into sync and async parts

* use named args

* fix: renaming pre-req vars, functions and 2 minor fixes

* fix: the error message is updated

* feat: add snippets for post-request scripting (#7395)

* feat: enable extended assertion chains on `insomnia.response` (#7396)

* feat: add snippets for post-request scripting

* feat(sdk): support response.to.have assertion for verifying response

* chore: fix lint error

---------

Co-authored-by: jackkav <jackkav@gmail.com>

* test: add tests for post-request scripts and post-request scripts - INS-3786 (#7331)

* test: add some tests for post-req script and script engine

* fix: incorrect script type

* chore: refresh package-lock after merging

* chore: clean up package-lock.json

* fix: failed tests after rebasing

* feat: support importing post-req script from Postman (#7423)

* feat: support importing post-req script from Postman

* fix: introduce post-req script property for merged changes

* test: add a test case for importing scripts

* fix: add missing fixture

* chore: remove row after merging

* chore: rename to after-response-script

* fix test

* refresh lock

* update snapshot

* extract pre request logic to function

* refresh lock again

* throw on base env

* fix: revert the logic which rejects the case of unselected environment

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-05-23 15:25:35 +08:00
Jack Kavanagh
2d872ab881
bump (#7443) 2024-05-22 16:59:43 +02:00
Filipe Freire
e6e1cb0299
fix: unhandled typerror [no-ticket] (#7444)
* fix: unhandled typerror [no-ticket]

* Update packages/insomnia/src/main/analytics.ts

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

* Update packages/insomnia/src/main/analytics.ts

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

* fix

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2024-05-22 16:39:31 +02:00
Jack Kavanagh
491ae241c8
feat: folder inheritance headers (#7437)
* add headers

* support groups

* assign headers

* clairfy duplication rule

* type check

* add warning
2024-05-22 13:34:11 +00:00
Jack Kavanagh
0073992efb
disable find (#7442) 2024-05-22 15:19:56 +02:00
Hexxa
e5ce4cd390
fix: init the hidden window when renderers are reloaded (#7428)
* fix: init the hidden window when renderers are reloaded

* fix: missing some smoke test stuff after merging

* feedback

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-05-22 09:29:49 +02:00
Jack Kavanagh
7abe25c3f2
disable context menu override (#7431) 2024-05-21 17:14:52 +00:00
James Gatz
cb7e5896c4
fix(CodeEditor): UI alignment in toolbar/filter dialog (#7436)
* fix alignment on code editor filter toolbar

* fix alignment on code editor filter dialog
2024-05-21 09:04:44 +02:00
James Gatz
3d79efb31f
fix initialization logic of mock-server (#7434) 2024-05-20 10:42:24 +00:00
James Gatz
258810eb9d
display errors on sync modal (#7433) 2024-05-20 12:29:00 +02:00
James Gatz
8a7b34d6e2
feat(Auth screen): Improve copy and add animation (#7429)
* sign up to sign up for free

* login page animation and copy
2024-05-17 13:16:13 +02:00
Jack Kavanagh
5e673767ae
can navigate to folder and inherit auth (#7353)
* can navigate to folder

* add docs tab

* can edit pre request script

* refactor authdropdown to support groups

* can input auth in folders

* can concat scripts

* ensure scripts are scoped

* inherit auth from parent folder

* extract to function

* support inherit

* remove console log

* fix inheritance

* fix types

* remove console.log

* skip pre request for now

* hide response pane

* reload on env modified

* fix oauth1 and support undefined auth

* add auth test

* watch sync for updates

* collapse folder only on icon click

* review feedback

* remove pre-req logic
2024-05-17 12:37:39 +02:00
Jack Kavanagh
6eb2c953dc Bump app version to 9.2.0 2024-05-15 13:43:57 +00:00
Filipe Freire
9743874db2
fix(UI): add titles to some elements in Test view [no-ticket] (#7416) 2024-05-15 15:36:20 +02:00
James Gatz
39817586e6
fix(CloudSync Pull): Fix issue where workspaces could change parentId on pull (#7414)
* fix parentId update on pull

* move the solution to vcs so that it works everywhere we use pull

* cleanup code

* fix test
2024-05-15 09:57:45 +00:00
James Gatz
78a9f31ff6
fix(Spec): Expand lint errors and hide the preview pane appropriately (#7413)
* hide the preview panel when the spec is not open

* show lint errors
2024-05-15 11:44:17 +02:00
James Gatz
4ca6c211a4
better errors when something goes wrong updating projects (#7412) 2024-05-15 11:43:53 +02:00
Jack Kavanagh
75d09b67f1
only prompt with private envs (#7407)
* only prompt with privates

* fix both

* fix env lookup
2024-05-15 09:20:56 +02:00
gatzjames
4008de4152 Merge branch 'release/9.2.0-beta.0' into develop 2024-05-14 17:19:43 +02:00
jackkav
20253ac02d remove console log 2024-05-14 17:12:16 +02:00
James Gatz
3057e7c5ee Bump app version to 9.2.0-beta.0 2024-05-14 14:27:42 +00:00
James Gatz
aae0a9c542
feat(command-palette): Add global search for unsynced files (#7405)
* use the user/files api to fetch the unsynced files in global search

* naming

* fix e2e test

* fail gracefully if pulling a remote project doesn't work out

* fix popover error

* clean up loading and error states ui

* fix e2e test
2024-05-14 14:09:10 +00:00
James Gatz
1f49c3f080
fix error when there is no active project in the preferences data tab (#7406) 2024-05-14 11:56:13 +02:00
Jack Kavanagh
22475d8470
Feat: add-faker (#7390)
* install package

* first pass

* wip

* use pm names

* pin isomorphic-git

* can import tags

* add test

* add unit test

* renaming

* extract to file

* remove desc

* transform body form value

* rename to faker
2024-05-14 11:49:26 +02:00
Jack Kavanagh
2a6737ee98
improve VCS api (#7404)
* clearer names

* add gql types

* remove paths helper

* fix tests
2024-05-14 11:01:19 +02:00
Curry Yang
03afa4d452
perf: improve performance when spec lint [INS-3724] (#7374)
* perf: spec lint

* Move ruleset loading to main

* fix: solve todo

* fix: solve todo

* feat: open nodeIntegrationInWorker option

* fix: need save spectralRun ipc

* feat: add worker plugin

* put the default ruleset handling in loadSpectralRuleset

* make sure we check for latest id

* fix: postMessage and ipc can not transfer special objects

* move logic to new place and clean up main

* fix race condition and cleanup code

* fix: worker build

* add necessary worker ternminate and more logs

* use fs require in worker

* rename file and add reject

* fix typo

* remove unused console log in loader

* leave note about GC

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: jackkav <jackkav@gmail.com>
2024-05-14 14:56:53 +08:00
oahmed-OS
bb7916c399
fix: environment edit modal save (#7371)
* fix: environment edit modal save

* add onBlur

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-05-14 06:39:50 +00:00
James Gatz
9b068f642e
fix(ui): Misalignments in the UI (#7400)
* code editor pane height

* sync dropdown height

* request pane height

* debug design height

* unit test pane height

* use line height instead

* fix annoying auto-format

* git sync alignment

* unit test ui
2024-05-13 12:58:24 +02:00
Curry Yang
b3db2aeef7
fix: extract correct position through err message (#7398) 2024-05-13 09:40:51 +02:00
Jack Kavanagh
219158fb18
fixes codemirror measure issue (#7391) 2024-05-10 10:50:20 +00:00
Jack Kavanagh
ab02192849
point changelog url at releases (#7387)
* point at releases

* remove changelogUrl

* fix lint
2024-05-09 09:40:41 +00:00
James Gatz
40db09191b
fix missing session id (#7389) 2024-05-08 13:06:37 +02:00
Jack Kavanagh
cc421d1a3c
Types/ipc-channels (#7379)
* type ipc channels pass 1

* type checked
2024-05-07 16:10:13 +02:00
Jack Kavanagh
0e49f08850 Bump app version to 9.1.1 2024-05-07 11:20:21 +00:00
James Gatz
74fdf4e540
fix(project-data): Move remote file fetching outside the main path (#7378)
* move project fetches outside the projectId loader

* update types

* use a separate loader for listing files

* feedback

* close the palette when the env changes

* cleanup and comments

* clean up naming

* filter our mock server as move target

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-05-07 12:56:14 +02:00
Jack Kavanagh
5f08604ca7
fix: should not refetch as much [INS-3817] (#7377)
* should not refetch a much

* remove graphql revalidate

* drill prop
2024-05-06 18:45:03 +02:00
jackkav
bcf5504f2a fix 2024-05-02 19:29:31 +02:00
Jack Kavanagh
5bb720f177
network-cleanup (#7355)
* tidy up

* lock
2024-05-02 13:29:16 +02:00
Jack Kavanagh
5fb3fc685d
remove read only pairs from all kvp editors (#7351)
* remove read only pairs from all kvp edits

* move const
2024-05-01 16:07:23 +00:00
Jack Kavanagh
f7b9302e1b
reduce reload noise coming from learning feature (#7346)
* quick hack

* only refetch once a day
2024-05-01 17:50:24 +02:00
Jack Kavanagh
0aaa36d0c2
unify all app requests behind a common api convention (#7338)
* spike

* cleanup

* remove axios

* remove file

* proxy settings

* actual proxy

* proxy and net.fetch

* refresh lock

* layout

* use vscode style content security protocol

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-05-01 17:49:58 +02:00
Jack Kavanagh
b4642d9b73 Bump app version to 9.1.0 2024-04-30 14:06:20 +00:00
Jack Kavanagh
964557ccee
Refactor/move insomnia fetch (#7344)
* remove double slash

* move to ui

* use insomniaFetch where possible

* fix lint
2024-04-30 16:04:00 +02:00
jackkav
df36b21d59 fix deep links 2024-04-30 15:44:03 +02:00
James Gatz
733f4e3c6c
Add schema to hintOptions (#7342) 2024-04-30 09:56:19 +00:00
Jack Kavanagh
2cac8a2b58
Fix/filter out content length (#7341)
* filter out

* comment
2024-04-30 09:34:18 +00:00
Hexxa
fcc8bee4c7
fix: subEnvironment's id should be real id instead of n/a (#7339) 2024-04-30 08:47:41 +00:00
Jack Kavanagh
c90b82c863
remove expiry (#7340) 2024-04-30 10:31:00 +02:00
Jack Kavanagh
28d224b73d
add clear test (#7336) 2024-04-30 09:07:42 +02:00
Jack Kavanagh
11322f5890
show read only headers (#7337) 2024-04-30 09:07:17 +02:00
Jack Kavanagh
70bcd75437
expose internal requests in network tab (#7319)
* first pass

* fix deep link

* remove comments

* support changing origins

* fix backup

* remove console log

* remove unused

* remove srp-js

* fix route

* fix tests

* fix tests

* deal with env trip hazard
2024-04-29 15:58:16 +02:00
Jack Kavanagh
c62decc0b5
fix pm import order (#7332)
* fix postman import order

* update snapshots

* remove all the console errors from the tests

* stub
2024-04-29 11:21:17 +02:00
Jack Kavanagh
27922a8518
Fix: non blocking fetch on navigate (#7321)
* non-blocking action loader

* fix types

* improve plugin logging

* use keys to make org change refetch

* Update packages/insomnia/src/ui/components/panes/project-empty-state-pane.tsx
2024-04-29 11:19:55 +02:00
Hexxa
69fb149274
fix(sdk): some of external modules are missing (#7315)
* fix: some external modules are missing

* chore: update @types/tv4

* chore: use map instead of switch-case statement

* test(scripting): check using external libs in the critical test suite
2024-04-26 19:44:01 +08:00