Commit Graph

2791 Commits

Author SHA1 Message Date
George He
39d261637b fix: lint error 2024-03-08 15:49:20 +08:00
George He
84699fee4b test: add a test for proxy and certificate manipulation 2024-03-08 15:49:20 +08:00
George He
4eb36e60de feat: hook settings to insomnia.request and cleanups 2024-03-08 15:49:20 +08:00
George He
083d0219be fix: allow user to update active request certs and proxy through insomnia.request 2024-03-08 15:49:20 +08:00
George He
2e12067ab1 feat: add simple interpolator for enabling replaceIn methods 2024-03-08 15:49:20 +08:00
George He
a8a6cd0461 fix: add static _index for simulating the original behavior 2024-03-08 15:49:20 +08:00
George He
23c61ff096 feat: enable insomnia.sendRequest 2024-03-08 15:49:20 +08:00
George He
2f5c2fbc0a fix: bring back request test in smoke spec 2024-03-08 15:49:20 +08:00
George He
256f161815 chore: fix and re-org pre-request scripts 2024-03-08 15:49:20 +08:00
George He
d44ee2a3e4 fix: smoke test failure 2024-03-08 15:49:20 +08:00
George He
e86899633d fix: lint error 2024-03-08 15:49:20 +08:00
George He
65c2d393e4 chore: clean up dependencies 2024-03-08 15:49:20 +08:00
George He
ee8df0d862 fix: lint errors 2024-03-08 15:49:20 +08:00
George He
38f66a9683 chore: revert changes on test 2024-03-08 15:49:20 +08:00
George He
7ec145fae3 feat: enable manipulation on insomnia.request 2024-03-08 15:49:20 +08:00
Jack Kavanagh
e14ecd1dc4 fix warning (#7045) 2024-03-06 11:59:59 +01:00
Hexxa
fcac7ebb92 feat: enable adding snippets menu for pre-request scripting - INS-3319 (#7146)
* feat: enable adding snippets menu for pre-request scripting

* chore: disable unsupported objects

* fix: incorrect icon

* feedback

* fix dropdown placement

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-06 11:56:31 +01:00
Jack Kavanagh
24b096bd27 Feat/import-prereq-script (#7144)
* add import function

* fix some of the tests

* more tests

* fix tests
2024-03-05 13:44:37 +00:00
Jack Kavanagh
03172c5817 add tag (#7137) 2024-03-04 09:11:12 +01: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
4e8fda94bb remove deprecated nedb option (#7118)
* remove deprecated option

* Update packages/insomnia/src/main/window-utils.ts
2024-02-29 15:05:41 +01: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
46a7088f3c feat: enable headers in pre-request scripting [INS-3379] (#7121)
* chore: enable Headers in pre-request scripting

* Update packages/insomnia/src/sdk/objects/__tests__/headers.test.ts

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-29 14:29:48 +01:00
Hexxa
2ee1475cea feat: enable property in pre-request scripting (#7120) 2024-02-29 10:51:49 +08:00
James Gatz
826890cc39 feat(Insomnia Cloud Sync): Update filesystem driver for VCS sync (#7111)
* use fs/promises and uuid instead of math.random

* Update packages/insomnia/src/sync/store/drivers/file-system-driver.ts

* Update packages/insomnia/src/sync/store/drivers/file-system-driver.ts

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-27 15:07:29 +00: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
James Gatz
62a73fa3ec add labels for branch names when resolving conflicts (#7105) 2024-02-22 13:12:35 +01:00
James Gatz
a7125a2314 Sync improvements (#7098)
* Conflict modal

* Better error handling for staging modal

* move pull dropdown items to project view

* add unsynced files to command palette

* add scratchpad check

* loading indicator for pulling remote projects on palette
2024-02-21 17:45:39 +01: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
Jack Kavanagh
4e14e2bc16 mock feature feedback (#7089)
* add mock preview mode dropdown

* clean up url bar

* add helper

* add try it drop down

* fix lint

* advanced buttons
2024-02-15 13:00:10 +01:00
Jack Kavanagh
812cd80740 bump: vite to v5 and fix (#7023)
* bump to v5 and fix

* change bundler back to node

* add fsevents to external?

* hacks

* note

* revert resolutions

* move gsap and nunjucks to front end code that is bundled by vite

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-02-14 12:31:37 +01:00
Filipe Freire
2d5c80e079 Revert "fix: add viewport meta tag (#7049)" (#7090)
This reverts commit 444877e1e1.
2024-02-14 12:10:36 +01:00
Jack Kavanagh
8ff2c6b522 feat(prereq): add cancellation (#7078)
* add cancellation

* add cancel test

* fix test

* remove folder check
2024-02-13 10:28:46 +01:00
Jack Kavanagh
8ecf47c0a7 move mkdir to init (#7085)
* move to init

* fix tests

* fix tests
2024-02-13 10:16:57 +01:00
Mark Kim
444877e1e1 fix: add viewport meta tag (#7049)
* fix: add viewport meta tag

* fix: set zoom factor default to 1

* fix: adding zoom factor everywhere for now
2024-02-13 09:15:26 +00:00
Jack Kavanagh
039c12160c E2e/mock-test-fixture (#7086)
* fix export

* add fixture

* use fixture
2024-02-13 09:01:32 +00:00
Jack Kavanagh
8f1a50328e refetch logs (#7084) 2024-02-13 09:36:44 +01:00
jackkav
d7d86837f0 fix mock flake 2024-02-09 16:17:03 +01:00
James Gatz
45edba1269 chore(tailwind): Move grpc-method-dropdown to tailwind (#7074)
* grpc-method-dropdown tailwind

* fix disabled prop
2024-02-09 16:11:21 +01:00
Jack Kavanagh
c0707c884f Add pre-request tab and minimal execution context (#7065)
* works

* add preload

* promise api

* tidy

* create hash works

* return errors from worker

* basic wiring

* remove preload

* move build output to folder

* async execution

* add simple context object

* smoke test

* fix types

* fix unit tests

* remove createHash remote function

* tidy

* naming

* fix test

* add errors to preview and timeline

* basic require support

* fix types

* fix warning

* can get logs

* fix console.log patch

* logs

* fix test

* remove log

* skip mock test

* fix test

* fix types

* can write to timeline

* add watcher

* improved dx

* can console.log in the script

* simplify

* enable contextIsolation

* fix types

* use vite for hidden window build and dev

* fix type

* rename

* move pre request test to critical

* fix typo

* close ports

* unskip test
2024-02-09 10:51:55 +00:00
Rinku Chaudhari
eec2d2015a fix: request settings for scratchpad leading to welcome screen (#7068)
* fix: request settings for scratchpad leading to welcome screen

* fix: added missing dependencies and semicolon

* use existing fn to check for scratchpad

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-02-08 11:40:13 +00:00
James Gatz
4383d0b38c Insomnia logo tailwind (#7073) 2024-02-07 18:11:36 +00:00
James Gatz
4010dd5358 chore(tailwind): Transform empty design state to tailwind (#7071)
* design-empty-state tailwind

* example spec from file instead of fetching

* styles

* fix spec test
2024-02-07 18:00:01 +00:00
Jack Kavanagh
112a1c8060 feat: append to timelines (#7070)
* working pass

* fix tests

* fix await issue with streams

* fix test

* fix mockbin test

* move to main

* inso cli test
2024-02-07 18:51:10 +01:00