Commit Graph

506 Commits

Author SHA1 Message Date
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
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
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
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
Hexxa
2898c2fb8d
fix: avoid rendering script by temporarily disable it (#7466) 2024-05-30 16:20:08 +08:00
Hexxa
55440c77ae
fix: unify after-response script property name for folders (#7460) 2024-05-29 10:28:17 +08: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
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
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