Commit Graph

4735 Commits

Author SHA1 Message Date
Daniel Wallace
836570604a
Request URL bar fix and collection name truncation improvement (#7222)
* 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>
2024-04-08 14:52:10 +01:00
Curry Yang
26a78cf219
fix: vscode debug config (#7231) 2024-04-08 09:17:51 +02:00
Jack Kavanagh
366e59ad45
bump (#7247) 2024-04-05 19:39:06 +02:00
Jack Kavanagh
ccc342c34b
bump electron-builder (#7246) 2024-04-05 19:27:38 +02:00
Jack Kavanagh
6d5902711e
more major bumps (#7244)
* major bumps

* fix prettier api change

* remove prettier

* refresh lock
2024-04-05 18:46:06 +02:00
Jack Kavanagh
63ab3857cb
bump vite and esbuild (#7245) 2024-04-05 18:11:20 +02: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
jackkav
890f1c3a00 remove url-join and change-case 2024-04-05 17:17:20 +02:00
jackkav
981efb46e5 revert 2024-04-04 23:08:37 +02:00
jackkav
f9d8476161 use bpkg 2024-04-04 22:51:24 +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
Pavlos Koutoglou
75d74e8b9e
Change create/update project based on the organization storage rule [INS-3495] (#7042)
* 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>
2024-04-03 19:03:08 +03:00
Hexxa
96de17f50b
fix: enable per-request var manipulation in pre-req scripts (#7230) 2024-04-03 09:39:03 +00:00
Hexxa
e67a445471
feat: enable cookieJar manipulation in pre-request script - INS-3379 (#7228)
* feat: enable cookieJar manipulation in pre-request script

* fix: linting failure
2024-04-03 17:27:52 +08:00
Curry Yang
9258fe3fc2
fix: url is encoded during execute pre-request script (#7229) 2024-04-03 11:32:18 +08:00
zhengjitf
c12c4ff05f
fix: repeat on interval may lead to stay requesting (#6936) 2024-04-02 14:28:23 +00: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
JohnEndson
39bc37bf10
chore: remove repetitive words (#7223)
Signed-off-by: JohnEndson <jiayuzhen@outlook.com>
2024-04-02 10:06:46 +02:00
Matthew Hokinson
b1eae5e91a
Fix local state updates for GraphQL Query Variables (#7205)
* 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>
2024-04-01 19:33:01 +08:00
Filipe Freire
3feef4c85b Merge branch 'release/9.0.0-beta.3' into develop 2024-03-27 18:30:35 +00:00
Filipe Freire
40a51a5961 Bump app version to 9.0.0-beta.3 2024-03-27 18:08:16 +00:00
Peter Goldthorp
ada2414231
Support for colon after a path parameter (#7200) 2024-03-27 14:36:16 +00:00
Andrea Mauro
55ef895d7d
fix: propagate organizationId when opening the search dialog (#7208)
Closes #7199
2024-03-27 14:13:55 +00:00
Filipe Freire
0b672c4fd0 Merge branch 'release/9.0.0-beta.2' into develop 2024-03-27 13:38:56 +00:00
Filipe Freire
3c2e57493e Bump app version to 9.0.0-beta.2 2024-03-27 13:14:31 +00:00
Filipe Freire
acc1935ac2
fix: release-start handle re-run step (#7215) 2024-03-27 14:12:01 +01:00
Filipe Freire
ac3e38ec9e
fix: release-start [no-ticket] (#7212)
* fix: release-start [no-ticket]

* fix if conditions
2024-03-27 11:41:29 +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
Curry Yang
5ff9ed909e
fix: startsWith not a function error (#7201) 2024-03-26 00:54:33 +01:00
James Gatz
53f56c10d4
feat(onboarding): Insomnia 9 (#7194)
* init

* images

* encryption copy and update styles for project type radio

* save

* update images

* improve storage options image

* update onboarding copy

* avatar animation

* cleanup sessionId

* onboarding v9
2024-03-22 15:42:10 +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
277599e7e6
feat(session): Store session data in the db instead of LocalStorage (#7192)
* 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
2024-03-22 11:06:07 +00: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
Jack Kavanagh
a1cb6a69e5
support SSE method, request body and auth (#7182)
* support SSE request body

* fix remote close bug
2024-03-21 11:45:42 +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
Curry Yang
a5f859fbcd
fix: Export popup has small z-index (#7187) 2024-03-19 18:08:31 +08:00
Curry Yang
b7a078d744
fix: URL PREVIEW cut off first few lines for very long URL (#7190)
* fix: URL PREVIEW cut off first few lines for very long URL

* fix: use margin auto keep vertical center
2024-03-19 17:42:31 +08:00
Hexxa
a69a185fb6
chore(pre-req): improve the snippets menu for the pre-request script - INS-3319 (#7173)
* chore: add more helper snippets

* chore: add more helper snippets for pre-req scripting

* fix: use correct icons

* feat: enable basic auto code completing

* feedback

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-18 10:30:11 +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
Jack Kavanagh
3530d600fd
harden lint rule about array indexes (#6758)
* harden rule about array indexes

* simplify error boundary
2024-03-14 09:15:53 +01:00
James Gatz
21ce0baf83
feat(Insomnia Sync): add diff view on conflict resolution and handle cancelation (#7175)
* add diff view on conflict resolution and handle errors

* fix types
2024-03-13 12:45:11 +01:00
jackkav
dc3a55d972 manual start 2024-03-12 17:34:14 +01:00
James Gatz
fd0a78c7dc Merge branch 'release/9.0.0-alpha.0' into develop 2024-03-12 16:23:07 +00:00
James Gatz
112ba40c8c Bump app version to 9.0.0-alpha.0 2024-03-12 15:56:49 +00:00
Jack Kavanagh
c50e6aeb4a
fix changelog (#7159)
* cool

* seperate changelog

* should be fine

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-03-12 16:53:41 +01:00
James Gatz
38f1dcead5
fix redirect after pull (#7168) 2024-03-12 15:44:04 +00:00