* feat: Show proper error when environment variables are not valued
* fix: modify text
* feat: modify param name
* fix: del useless code
* update common modal
* fix: variable missing error message style
* fix: cut the begining off the text before parsing out the missing variable
* fix: del useless code
* fix: change test name
* feat: rename to VariableMissingErrorModal
* 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
* Issue #7221: Pressing enter/return while text is selected in the request URL bar causes the selected text to be deleted
- Fixed 'paste' handling code which was causing text replacement logic to run when text had merely been selected but not actually changed
Issue #7029: Unable to see full collection names
- Added title (hover tooltip) for name label on collection card
* add title to workspace dropdown
* Update packages/insomnia/src/ui/components/codemirror/one-line-editor.tsx
---------
Co-authored-by: Filipe Freire <filipe.freire@konghq.com>
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
* Added new feature flags (cloudSync and localVault)
* Change project dropdown and added storage
* Added new error message when user change to cloud sync
* Get the organization storage rule
* Use storage rule to enable creation options
* Change url
* Fix issue with disable option
* Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Default project update
* Added restriction to actions
* Checked organization storage in the workspace level
* Added in the cache organization data the storage
* Pass new options into create new action
* Check if the project has synced or not
* Update session ID in organization.tsx
* Remove unused Tooltip and TooltipTrigger components
* Add tooltip and tooltip trigger to project dropdown
* make similar
* expose only a bool
* only check permission
* change expression
* project level message
* clean up
* made consistent
* remove extra storage checks
* reenable sync dropdown in order to sync before making local
* fix
---------
Co-authored-by: jackkav <jackkav@gmail.com>
* Fix local state updates for GraphQL Query Variables
* Fix typo in comment
* Fix local state updates for GraphQL Query Variables
* Fix typo in comment
* Assert params are strings before checking length property
---------
Co-authored-by: Hexxa <hexxa@outlook.com>
* add user model
* update app to use the user model instead of localstorage
* rm top level await
* move env session in async code
* isLoggedIn to user data
* rename to user-session
* migrate from localstorage and cleanup
* fix private key
* add comment for env variable
* rm console log
* 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
* diff view
* wip
* fully works
* stage items per workspace
* Add indicators for the type of change
* cleanup code
* clean up ui
* fix type issue
* rm todo
* fix snapshot issue and update tests
* keyboard shortcut: show doc/collection settings
* add environment switch keybinding and modals on test and design view
* remove unused request switch
* 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>
* 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>
* 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
* 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>
* 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
* 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>
* 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>
* fall back hidden request
* redirect after add new route
* add session id
* remove custom HAR types
* remove any type hack
* fix tests
* fix tests
* fix test
* add mock server export
* clean console
* test request clean up
* list routes on imports
---------
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
* project ui changes
* project ui changes
* create mock server model
* model mock server similarly to design doc
* use spec modelling and nav
* layout pass
* rename requestbin to mock-route
* sidebar ui pass
* load mock server
* add url bar
* can navigate to headers
* Refactor mock server and mock route creation and
retrieval
* route crud
* sidebar layout
* add delete guuard
* patch route
* Add mock response tab to request pane
* wire up mock servers in requests
* Update mock server and route selection in
RequestPane
* make it work without internet
* can create bin
* pass body and headers to bin
* can fetch logs but cant see em
* split out response pane for hmr
* basic table
* extract mock url bar
* add header tab
* made a dumb cache
* url bar pass
* send request and create response
* wire up timeline
* wire up preview
* timeline useeffect
* move to action
* fix types
* empty states
* rebase updating aria
* use har type
* can edit bins
* cookie support
* wire up status
* status text
* magic status text
* ui
* always use put rather than create bin
* add url to mock route
* scroll bar
* add content types
* validation
* fix flake
* improve logs
* fix outlet warning
* fix send to mock endpoint
* switch table to grid
* handle errors
* rotate log
* create mockbin on open if needed
* add full url ux
* reverse log order
* binId from store
* remove http method
* rename prefix
* use server Id for bin id
* fix copy
* show log har
* fix url bar
* fix button padding
* tailwind
* method select
* remove default status text
* full tailwind
* fix breadcrumb
* default to json
* move copy to end, remove save
* error msg
* only patch when needed
* fix ws colors
* fix command palette
* add isMock helper
* revert local storage mechanism
* fix redirect
* fix ignore upsert
* extract to constant
* ui test
* hide actions from mock-server
* fix code editor onBlur
* lift update to route
* refactor to return only errors
* add url to mock server model
* select mock ui pass
* can modify url in settings
* use server url from db if selected
* hide url option
* fix lint error
* extract to file
* remove binResponse
* can sync
* move things around
* rename name path sync
* fix type check
* capture kvp onBlur
* fix error message
* basic mock test
* wire up mock patcher and navigate
* rename component
* remove url prop of route
* fix lint
* fix test
* temporary skip e2e test
* fix constant url
* fix migration
* remove console logs
* rename function
* only create a single hidden request
---------
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
* add path parameters to the request/ws-request model
* render path params
* show path params on the ui
* fix rendering of params
* cleanup params ui in ws
* cleanup request model
* add empty state info
* update styles
* certificate-styles
* fix tests
* cleanup code
* fix e2e tests
* Add command palette for quick switching between requests and workspaces
* truncate text
* small style update
* add smoke test for command-palette
* fix shortcut for different platforms
* wait for request to switch
* fix(ssl): verify host on macos [INS-3424]
Always verify host on macos even when `Validate certificates` is disabled.
* Update packages/insomnia/src/main/network/libcurl-promise.ts
---------
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
* add warning in project for due payments of organization
* update styles
* use the billing info to display the due payment warning
* add fallback for billing response
* add comment
---------
Co-authored-by: jackkav <jackkav@gmail.com>
* Initial automatic migration
Co-authored-by: Mark Kim <marckong@users.noreply.github.com>
* add continue statement
* add untracked workspaces ui in the data tab
* fix moving a project
* fix sentry hack
---------
Co-authored-by: Mark Kim <marckong@users.noreply.github.com>
Co-authored-by: Mark Kim <mark.kim@konghq.com>
* fix(tls): Use the system CA certificates to verify https servers by default
* remove CurlSslOpt.NativeCa until we can prove it
* add CurlSslOpt.NativeCa back and fix test errors
* client cert ui
* first pass
* use import to avoid url onChange timing issue
* re order test
* use 4001 port, refresh certs
* move test to critical
* expose cacert create over maain
* use double click for renaming debug requests
* update styles for editable input
* navigate to test suite on single click
* clear console.log
* try dblclick
* add learning feature and update the scope filter
* font sizes and styles
* use localstorage hook to update the ui when closing the feature
* Add try-catch block for learning feature fetch
* recover untracked workspaces when checking for local vcs projects
* cleanup code
* remove repair code and show the missing workspaces in the list instead
* fix: use should be able to double click request item and rename it [INS-3250]
* fix: enable double clicking renaming for pinned requests
* fix: use editable input for renaming request name
* fix: incorrect indent
* fix: lint error
* test: add a test for quick renaming