Commit Graph

2981 Commits

Author SHA1 Message Date
Jack Kavanagh
964557ccee
Refactor/move insomnia fetch (#7344)
* remove double slash

* move to ui

* use insomniaFetch where possible

* fix lint
2024-04-30 16:04:00 +02:00
jackkav
df36b21d59 fix deep links 2024-04-30 15:44:03 +02:00
James Gatz
733f4e3c6c
Add schema to hintOptions (#7342) 2024-04-30 09:56:19 +00:00
Jack Kavanagh
2cac8a2b58
Fix/filter out content length (#7341)
* filter out

* comment
2024-04-30 09:34:18 +00:00
Hexxa
fcc8bee4c7
fix: subEnvironment's id should be real id instead of n/a (#7339) 2024-04-30 08:47:41 +00:00
Jack Kavanagh
c90b82c863
remove expiry (#7340) 2024-04-30 10:31:00 +02:00
Jack Kavanagh
28d224b73d
add clear test (#7336) 2024-04-30 09:07:42 +02:00
Jack Kavanagh
11322f5890
show read only headers (#7337) 2024-04-30 09:07:17 +02: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
Jack Kavanagh
c62decc0b5
fix pm import order (#7332)
* fix postman import order

* update snapshots

* remove all the console errors from the tests

* stub
2024-04-29 11:21:17 +02:00
Jack Kavanagh
27922a8518
Fix: non blocking fetch on navigate (#7321)
* non-blocking action loader

* fix types

* improve plugin logging

* use keys to make org change refetch

* Update packages/insomnia/src/ui/components/panes/project-empty-state-pane.tsx
2024-04-29 11:19:55 +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
c4dd36c25a
fix(sidebar): improve default size and reset default order (#7309)
* reset default order

* set sidebar default size to be smaller

* remove unessesary default size

* add default size and decrease minSize
2024-04-24 15:31:21 +02: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
Jack Kavanagh
719e3ca692
fix empty state (#7302) 2024-04-24 11:40:22 +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
James Gatz
6a695330f1
cache org responses (#7303) 2024-04-23 18:25:13 +02:00
Jack Kavanagh
a12f4383b0
fix timeline watcher (#7301)
* check file exists before watching it

* clean up listeners
2024-04-23 12:30:54 +02:00
James Gatz
d61167cf45
feat(event-log): Improve UX of the event log for WS and SSE responses (#7300)
* change to tailwind and rac

* change selection on navigation

* resizable panel for the event view

* cleanup styled components

* fix preview mode
2024-04-23 12:20:19 +02:00
Jack Kavanagh
db00cdeb88
use subdomain in code gen (#7295) 2024-04-23 12:19:20 +02:00
Hexxa
7cfead4452
fix: minor fixes such as multiple registing and gql request body modification (#7299) 2024-04-23 12:18:56 +02:00
James Gatz
b89212d956
Make workspace names truncate after 2 lines (#7294) 2024-04-23 07:55:17 +02:00
Jack Kavanagh
d1a874fb47
update mock url [skip ci] (#7293) 2024-04-22 17:38:19 +02:00
Jack Kavanagh
c2733a5d38
provide users a subdomain based mock url (#7262)
* provide users a subdomain based mock url

* fix test name

* rename tabs

* fix lint

* feedback

* get mimetype safely
2024-04-22 14:14:33 +02:00
James Gatz
6a6ff20c9f
fix overflow of org navbar (#7291) 2024-04-22 09:33:47 +00:00
Hexxa
ba610daca3
fix: insomnia.environment.name is missing (#7289) 2024-04-22 16:57:36 +08:00
alongdate
78d054b6e1
chore: fix some typos in comments (#7283)
Signed-off-by: alongdate <alongyear@outlook.com>
2024-04-19 12:24:01 +02: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
jackkav
e3b62cbfd5 oops 2024-04-19 12:19:58 +02:00
Curry Yang
77b28742c8
fix: prevent app restart when editor setting change [INS-3668] (#7268)
* fix: prevent app restart when settings change

* fix: del will restart tip

* fix: lint

* Update packages/insomnia/src/ui/components/settings/general.tsx

* Update packages/insomnia/src/ui/components/settings/general.tsx

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-04-19 12:14:12 +02:00
Moritz
3f38ad783a
Add proxy support to authorizeUserInWindow (#7077) 2024-04-19 10:05:48 +00:00
James Gatz
e9a4fd68c5
feat(empty-organization): All projects can now be deleted (#7278)
* add empty organization view and handle no active project in the code

* Update packages/insomnia/src/ui/components/settings/import-export.tsx

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-04-19 11:54:41 +02:00
Henrique Vitoi
fb38d9884d
fix: wildcard pattern matching (#7265) 2024-04-19 11:51:20 +02:00
Hexxa
dac3401c80
fix: some minor fixes for the pre-request scripting (#7284)
* fix: insomnia.request.name is missing

* feat: enable console.log

* fix: insomnia.info is missing

* fix: lint error
2024-04-19 11:48:05 +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
94737e0fb7
feat(sidebar): add toggle button to expand/collapse the organizations sidebar (#7275)
* add toggle button to expand/collapse the org sidebar

* cleanup testid
2024-04-17 17:35:28 +02: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
1505cbd900
feat(pre-req-script-editor): translate handlers in pasting script - INS-3721 (#7270)
* feat(pre-req-script-editor: translate handlers in pasting script

* fix: lint error

* chore: remove the menu item for migration
2024-04-17 14:16:34 +02:00
Curry Yang
e62a7eba3e
feat: add dismiss for path param tip (#7271) 2024-04-16 08:32:56 +00:00
Curry Yang
947e1c5cf0
fix: onboarding page ui (#7269) 2024-04-16 10:22:10 +02:00
Hexxa
6c63b0d8d3
feat: enable external modules in pre-request script (#7257) 2024-04-15 10:14:00 +02:00
Curry Yang
259a5023e7
feat: add fallback for searching a proper client certificate for a host [INS-3680] (#7259)
* feat: add fallback for searching a proper client certificate for a host

* chore: add test case

* chore: add more test case

---------

Co-authored-by: Hexxa <hexxa@outlook.com>
2024-04-15 10:47:26 +08:00
Hexxa
2d9e2da52e
chore(pre-req script): move all sdk files to sdk workspace - INS-3379 (#7255)
* feat: move script sdk to one workspace and update importing paths

* test: add jest config for enabling tests

* fix: failed to build package because of missing .node loader
2024-04-12 22:24:14 +08:00
Jack Kavanagh
a15e649602
bump node and electron versions (#7203)
* bump versions

* node 20.9

* remove node-externals and use plugin workaround for ms pkgs

* external send-request

* bump electron latest
2024-04-11 12:49:58 +00:00
Curry Yang
75988fc29b
fix: focus editor by shortcut (#7261) 2024-04-11 14:22:25 +02:00
Hexxa
c9200550af
fix: some UI improvements of the pre-request script tab - INS-3711 (#7258)
* feat: add tick to enabled pre-request tab and remove beta

* fix: reorg and add snippets

* chore: format

* fix: replace ticks with green dots

* chore: algin texts and icons to the vertically middle
2024-04-11 07:24:59 +00:00
Adam Royle
0a2187fbc8
Fix parsing urlencoded pairs with empty values. (#6980) 2024-04-11 09:01:14 +02:00
Jack Kavanagh
c562d1594b
mock UX feedback (#7252)
* change text content

* extract mock server settings modal

* get current plan

* pass server url

* align add and update styling

* upsell on update modal

* fix type check

* fix placeholder

* fix mockbin url
2024-04-10 22:50:27 +09:00
Hexxa
36ecfc59cb
fix(pre-request script): avoid encoding tags in parsing request urls - INS-3379 (#7249)
* fix(pre-request script): avoid encoding tags in parsing request urls

* fix: refactor requestBody transforming as functions with tests

* fix: lint error

* fix: revert url decoding

* fix: query params are duplicated after script execution

* fix: query params are duplicated after script execution

* fix: pathParameters property is empty in pre-request script
2024-04-10 09:39:29 +02:00
Curry Yang
75c6a94ae9
feat: Show proper error when environment variables are not valued [INS-3641] (#7227)
* 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
2024-04-10 02:20:52 +00: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
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
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
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
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
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
James Gatz
112ba40c8c Bump app version to 9.0.0-alpha.0 2024-03-12 15:56:49 +00:00
James Gatz
38f1dcead5
fix redirect after pull (#7168) 2024-03-12 15:44:04 +00:00
Jack Kavanagh
30be38b2ed
null url (#7166) 2024-03-12 16:25:44 +01:00
Jack Kavanagh
e08976c10e
authtypes (#7156)
* authtypes

* fix types

* fix types

* fix build

* fix test

* fallback websocket api auth
2024-03-12 12:29:10 +01:00
Insomnia
0b67970fdb
Bump app version to 9.0.0-beta.1 (#7158)
Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
2024-03-08 18:00:39 +01:00
James Gatz
83fde5570f
feat(Insomnia-Sync): Add diff view (#7152)
* 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
2024-03-08 17:15:15 +01:00
Jack Kavanagh
edc86e397e
set sort key on import (#7148)
* set sort key

* use a snapshot test

* reverse matcher

* fix test snapshots

* remove old outputs
2024-03-08 17:14:08 +01:00
Hexxa
bdd0d420e5
feat: enable manipulation on insomnia.request - INS-3379 (#7145)
* feat: enable manipulation on insomnia.request

* chore: revert changes on test

* fix: lint errors

* chore: clean up dependencies

* fix: lint error

* fix: smoke test failure

* chore: fix and re-org pre-request scripts

* fix: bring back request test in smoke spec
2024-03-08 16:40:20 +01:00
Insomnia
46432fab51
Bump app version to 9.0.0-beta.0 (#7155)
Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
2024-03-08 15:08:31 +00:00
James Gatz
506d287314
fix(keyboard shortcuts): Add missing shortcuts and fix the ones that don't work as expected (#7116)
* keyboard shortcut: show doc/collection settings

* add environment switch keybinding and modals on test and design view

* remove unused request switch
2024-03-08 14:42:18 +00:00
Jack Kavanagh
e622f0eca3
fix: use collection name when importing from postman (#7142)
* detect postman workspace name

* check import type
2024-03-08 15:04:28 +01: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
jackkav
71c995c696 fix mock test 2024-02-07 14:55:11 +01:00
Insomnia
51b9ef76e9
🚀 8.6.1 (#7014)
* 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>
2024-02-06 12:16:54 +00:00
Jack Kavanagh
33e80d56cd
Adds a hidden window (#7063)
* init new window

* fix tests

* preload listener

* merge processes and windows

* trigger CI

* fix types

* mock test flake
2024-02-05 14:37:05 +01:00
Sri Krishna
302172d4c5
Add ability to use Buf Schema Registry as a schema source for gRPC requests (#6975)
* Add support for Buf Reflection Api

* Add test; Change tooltips to links

* style

* Remove label class

* request tests

* Update copy

* Rename prop; Fix alignment, input

* Add user agent header

* use onBlur and simplify

* fix lint

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-02-05 09:56:23 +00:00
Jack Kavanagh
9d3ebf944e
Clean/remove-babel-transform (#7038)
* remove babel transform

* lock file
2024-01-31 15:51:35 +01:00
Jack Kavanagh
b5ecd5c261
Remove/changelog-stuff (#7036)
* cleanup

* lock
2024-01-31 13:22:06 +01:00
Jack Kavanagh
4ab203a1e1
Bump/esbuild (#7035)
* esbuild 18

* lock

* esbuild 19

* lockfile

* update esbuild watcher
2024-01-31 12:21:18 +01:00
Jack Kavanagh
01e048faab
add mock test (#7031)
* add mock test

* add custom testing headers

* use insomnia fetch

* fix types

* normalise error structure

* using insomniaFetch for log

* fix warning

* add modal for vaults

* remove status code assertion

* use org id

* check status code
2024-01-30 16:57:01 +01:00
Nick Graham
2d0042a83c
feat: template tag to encode hex to base64 (#6211)
* feat: template tag to encode hex to base64

* review, flatten, simplify

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-01-29 14:20:25 +01:00
Jack Kavanagh
97b1d7f3ac
Bump/types (#7025)
* bump types

* lockfile
2024-01-29 13:55:11 +01:00