Commit Graph

488 Commits

Author SHA1 Message Date
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
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
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
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
Jack Kavanagh
0e49f08850 Bump app version to 9.1.1 2024-05-07 11:20:21 +00:00
Jack Kavanagh
b4642d9b73 Bump app version to 9.1.0 2024-04-30 14:06:20 +00: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
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
James Gatz
f1a26dd5f2 Bump app version to 9.0.0 2024-04-24 10:07:39 +00:00
Hexxa
8e00a2e27e
fix: persist script's changes on environment and baseEnvironment (#7306)
* fix: persist script's changes on environment and baseEnvironment

* fix: avoid persisting effect when no environment is activated

* fix: comparing mutated env with baseEnvironment

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

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-04-24 12:04:37 +02:00
Insomnia
dde3fc2c0b
Bump app version to 9.0.0-beta.5 (#7304)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2024-04-24 11:21:07 +02:00
Hexxa
ba610daca3
fix: insomnia.environment.name is missing (#7289) 2024-04-22 16:57:36 +08:00
Hexxa
03c74532c0
feat(hidden-win): try to simulate the existing behavior of handling async tasks (#7281) 2024-04-19 12:23:33 +02:00
Jack Kavanagh
883f907ac0
Fix/mock-feedback-4 (#7277)
* ignore .node files

* add header count

* add status bar

* copy in full url

* placeholder and language

* validate url

* validate path

* fix possible dupe route bug

* clean up language

* layout

* fix submit

* error messages

* fix test
2024-04-18 08:48:36 +00:00
Filipe Freire
040ed4e800 Bump app version to 9.0.0-beta.4 2024-04-17 16:02:22 +00:00
James Gatz
2ed4069e7d
feat(resizable-sidebar): replace custom sidebar with resizable-panels (#7274)
* replace custom sidebar with resizable-panels

* set direction when reading the media query for the first time

* handle toggle-sidebar command and keyboard shortcut

* Remove unused constants and refactor keyboard shortcuts hook

* 1200 to 880

* fix env e2e test
2024-04-17 15:51:38 +02:00
Hexxa
6c63b0d8d3
feat: enable external modules in pre-request script (#7257) 2024-04-15 10:14:00 +02:00
Hexxa
7f767a8341
feat: translate pm object handler into insomnia object instead of supporting alias - INS-3702 (#7253)
* feat: translate pm object handler into insomnia object instead of supporting alias

* chore: remove comment

* simplify implementation

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-04-09 13:13:51 +00:00
Hexxa
aaf76f755e
fix: some minor fixes for pre-request script sdk - INS-3379 (#7225)
* fix: try to make sendRequest compatible with the existing behavior by adding await

* fix: add _index for making method behavior (such as upsert) consistent with existing ones
2024-04-09 13:00:09 +00:00
Jack Kavanagh
4c82c8ce75
minor bumps (#7243) 2024-04-05 17:42:41 +02:00
Jack Kavanagh
13fddd3822
bump oidc (#7242) 2024-04-05 17:22:10 +02:00
Jack Kavanagh
6fa06b3a60
bump grpc stuff (#7241) 2024-04-05 17:18:38 +02:00
Jack Kavanagh
5a2cd8fd9c
Bump/minors-and-types (#7234)
* bump minors and types

* lock

* fix types

* windback

* yaml-source-map pins to yaml 1.6.0

* swagger css path

* fix tests

* fix type

* fix o2k tests

* fix markdown

* fix smoke tests
2024-04-04 14:48:56 +02:00
Jack Kavanagh
e38badfbf3
mock-extraction feedback (#7207)
* save point

* both cases work

* use action and hack

* throw error on naming collision

* fix type

* fix test
2024-04-02 13:42:39 +00:00
Filipe Freire
40a51a5961 Bump app version to 9.0.0-beta.3 2024-03-27 18:08:16 +00:00
Filipe Freire
3c2e57493e Bump app version to 9.0.0-beta.2 2024-03-27 13:14:31 +00:00
Hexxa
38896f4547
feat: enable insomnia.test and insomnia.expect in scripting - INS-3637 (#7202)
* feat: enable insomnia.test and insomnia.expect in scripting

* fix: lint error

* feat: enable replaceIn method
2024-03-26 15:04:26 +01:00
Hexxa
a79b01e1e6
chore(pre-req): clean up pre-request script sdk objects - INS-3379 (#7172)
* feat: enable eval() in script

* feat: enable requiring node.js modules

* fix: request auth type is not correctly updated

* test: add tests for unphappy paths

* test: fixed a flaky test

* chore: make console.log outputs more friendly

* feat: enable requiring npm modules and built-in lodash

* fix: add prefix to 'fs' module requiring name as it is for internal usage

* fix: smoke test failure

* fix: use fs module directly to avoid exposing it

* fix: replace atob btoa with node.js modules

* chore: remove unused line

* fix: lint error

* fix: smoke test failed because fs no longer exposed

* fix: use builtin atob, btoa

* fix: disable lint error for builtin lodash

* chore: remove lodash as it's redundant

* chore: temporarily remove external dependencies

* fix: rebase and update smoke tests style

* chore: restore lock

* chore: remove comments

* chore: remove comments
2024-03-22 20:02:56 +08:00
James Gatz
582665df1c
feat(Command Palette): Introduce global search (#7191)
* global search

* fix local url

* environments and scratchpad handling

* update test
2024-03-22 11:51:47 +01:00
Hexxa
915513c2d0
fix(pre-req): several fixes to the current hidden window launching process - INS-3319 (#7174)
* fix: restart the hidden window if it is down

* fix: lint error

* fix: smoke test error because of restarting hidden window

* fix: the hidden window is not started after packaged, so sending request is always timeout

* fix: restart the hidden window when it is stuck

* fix: make createWindow and createHiddenWindow signatures and behaviour aligned

* flatten conditions

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-22 03:10:53 +00:00
Hexxa
fab636a669
feat(pre-req): enable manipulation of proxy and certificate through insomnia.request - INS-3379 (#7171)
* feat: enable manipulation on insomnia.request

* feat: enable manipulate proxy, certificate and auth through insomnia.request

Changes:
- chore: revert changes on test
- fix: allow user to update active request certs and proxy through insomnia.request
- feat: hook settings to insomnia.request and cleanups
- test: add a test for proxy and certificate manipulation
- fix: lint error
- fix: problems after rebasing
- fix: revamp auth transforming functions
- fix: type checking
- test: add a unit test for auth transforming

* chore: move auth manipulation changes to another PR

* fix: missing OAuth2AuthOption and lint error

* fix: add back UT for auth transforming

* fix: incorrect merging

* fix: lint error

* chore: remove no-proposed comparison

* fix: use predefined requests for test instead of reusing one

* fix: remove waiting

* test: refactor smoke tests to use predefined request if possible
2024-03-21 11:35:51 +00:00
Hexxa
85cb6dba3c
feat(pre-req): enable auth manipulation through insomnia.request - INS-3379 (#7186)
* feat: enable auth manipulation through insomnia.request

* test: add smoke tests for auth transforming

* feedback

* auth type fix

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-18 11:19:09 +01:00
Hexxa
7bd2441178
feat: enable insomnia.sendRequest in pre-request scripting - INS-3379 (#7147)
* feat: enable manipulation on insomnia.request

* chore: revert changes on test

* chore: fix and re-org pre-request scripts

* fix: bring back request test in smoke spec

* feat: enable insomnia.sendRequest

* chore: implement req-sender with function, remove unused cancellation

* add types

* feedback

* remove duplicate enums

* fix: pass settings and certificates to the hidden window

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-15 17:27:49 +08:00
James Gatz
112ba40c8c Bump app version to 9.0.0-alpha.0 2024-03-12 15:56:49 +00:00
Insomnia
0b67970fdb
Bump app version to 9.0.0-beta.1 (#7158)
Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
2024-03-08 18:00:39 +01:00
Hexxa
bdd0d420e5
feat: enable manipulation on insomnia.request - INS-3379 (#7145)
* feat: enable manipulation on insomnia.request

* chore: revert changes on test

* fix: lint errors

* chore: clean up dependencies

* fix: lint error

* fix: smoke test failure

* chore: fix and re-org pre-request scripts

* fix: bring back request test in smoke spec
2024-03-08 16:40:20 +01:00
Insomnia
46432fab51
Bump app version to 9.0.0-beta.0 (#7155)
Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
2024-03-08 15:08:31 +00:00
Jack Kavanagh
6d5b2a6024
feat(prereq): add simple timeout (#7079)
* add simple timeout

* configurable timeout

* use label for workspace cards

* toggle visible

* add stop

* second timeout

* add test

* fix lint

* exclude from eslint

* fix types
2024-03-01 13:17:21 +01:00
Filipe Freire
b853660300
Revert "chore: temporarily disable pre-request scripting (#7132)" (#7136)
This reverts commit 6567a18175.
2024-03-01 12:00:50 +00:00
Hexxa
6567a18175
chore: temporarily disable pre-request scripting (#7132)
* chore: temporarily disable pre-request scripting

* chore: fix comments

* fix: lint error
2024-02-29 23:18:12 +08:00
Jack Kavanagh
9314fa56e3
feat: testing a mock endpoint cancellation (#7093)
* first pass

* update logs

* wait for response

* actually cancel
2024-02-29 15:04:46 +01:00
Hexxa
21505566fd
feat: enable Request and Response in pre-request scripting [INS-3379] (#7128)
* feat: enable ProxyConfig in pre-request scripting

* feat: enable RequestAuth for pre-request scripting

* feat: enable Cookie in pre-request scripting

* feat: enable Certificate in pre-request script

* feat: enable Request and Response in pre-request scripting
2024-02-29 14:41:29 +01:00
Hexxa
86f6d01ac9
feat: enable Url in pre-request scripting [INS-3379] (#7123)
* chore: enable Headers in pre-request scripting

* feat: add Variables and VariableList to the collection

* feat(hidden-window): enable url and UrlMatchPattern in pre-request scripting

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-29 14:37:04 +01:00
Hexxa
a15b09af27
feat: enable collection-variable in pre-request scripting [INS-3379] (#7122)
* chore: enable Headers in pre-request scripting

* feat: add Variables and VariableList to the collection

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-29 14:32:06 +01:00
Hexxa
2ee1475cea
feat: enable property in pre-request scripting (#7120) 2024-02-29 10:51:49 +08:00
Hexxa
3fe4d89e8c
feat(hidden-window): add globals, iterationData and variables interfaces in pre-request scripting (#7103) 2024-02-27 09:37:34 +00:00
Hexxa
d7a0bc1e58
feat(hidden-window): enable baseEnvironment in the pre-request scripting (#7102)
* feat(hidden-window): enable baseEnvironment in the pre-request scripting

* fix: input empty selected environment data to avoid incorrect environment manipulation and overriding

* test: add a test for folder environments overriding

* fix: smoke tests failed because of env overriding
2024-02-23 20:00:20 +08:00
Hexxa
7718df0489
feat(hidden-window): enable the insomnia object with the environment api [INS-3379] (#7097)
* feat(hidden-window): enable the insomnia object with the environment api

* fix: tests and lint errors

* fix: app building is flaky

* fix: fallback to the original environment instead of an invalid id

* chore: improve comment and remove unused code
2024-02-21 18:02:59 +08:00