* 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>
* 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
* 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>
* 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>
* 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
* 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
* 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
* 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>
* 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
* 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
* 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
* 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>
* 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
* 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>
* chore: enable Headers in pre-request scripting
* feat: add Variables and VariableList to the collection
---------
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
* 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
* 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
* 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
* Bump app version to 8.6.1
* feat(unit-tests): Unit test reordering (#7020)
* re-orderable test suites
* re-orderable tests
* fix ts
* Use db methods for sorting
* sort suites and unit tests in inso
* fix suite rename
* Fixes https://github.com/Kong/insomnia/issues/7011 (#7012)
* Fixes https://github.com/Kong/insomnia/issues/7009 (#7010)
* chore: edit changelog process [INS-3456] (#7001)
* fix(workspace): Add default name for when creating a workspace (#7046)
* Add default name for when creating a design/collection
* workspace update and creation
* fix filter history keys not being valid selectors (#7040)
* remove invalid wide css prop (#7041)
* feat(environment): update environments icons (#7050)
* update environments icons
* fix workspace name
* fix one line editor being scrollable (#7059)
* change 8.0 to 8 (#7061)
* Cleanup page containers and add hint container in the page (#7060)
* feat(pane-tabs): Consistent styles for tabs (#7062)
* response/request pane tab counts
* tab dropdown colors
* fix updates to db leading to errors in loader fetchers (#7033)
* feat(command-palette): add button to open the command palette (#7064)
* add button for quick search
* update button styles in project
* make it look good with gh stars
* fix ts issue
* changelog
---------
Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Jeroen Van den Berghe <vandenberghe.jeroen@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>