Commit Graph

3752 Commits

Author SHA1 Message Date
David Fluck
dbf597c2d8
INS-1785: Add Inso NPM package test (#5116)
* Add Inso NPM package test.

* PR changes

* Delete shell script.

* Rename script

* PR changes

* Try cross-env on test:bundled-inso to fix Windows

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-14 08:27:10 +00:00
kreosus
041cc11469 Merge branch 'release/2022.7.0-beta.2' into develop 2022-10-13 19:44:54 +00:00
kreosus
a29f1c952b Bump app version to 2022.7.0-beta.2 and lerna package versions 2022-10-13 16:58:19 +00:00
Filipe Freire
a573167530
Fix #5207 - Query parameters ignored when importing Postman collection (#5271)
* Fix #5207 - Query parameters ignored when importing Postman collection

* Fix fixture tests

* improve check
2022-10-13 16:18:43 +00:00
James Gatz
60bf0f9f24
parse the query variables correctly (#5273) 2022-10-13 14:53:51 +00:00
James Gatz
23b4ee60a6
Respect the grant_type option in Postman imports with OAuth2 (#5270)
* fix grant_type casing and add support for PKCE transformation

* update tests

* improve support for more grant-types and properties
2022-10-13 14:14:37 +00:00
James Gatz
130796ba9b
remove document filter global shortcut (#5269) 2022-10-13 10:13:11 +00:00
James Gatz
09cf77c4ef
Move insomnia-components in the insomnia package (#5259)
* Move insomnia-components in the insomnia package

* remove extra tooltip components

* remove button from portal plugin

* remove insomniaComponent injection

* move spec editor sidebar

* move breadcrumb component

* move toggle-switch

* move table/notice-table

* remove unused switch component

* move header to app-header

* move card

* move card-container to wrapper-home

* Remove unused multi-switch and radio-group

* move svg icon and auto-run convert-svg command

* move list-group

* move button components into themed-button

* move dropdown

* remove auto-conversion of svg from npm scripts

* track svg icon components to git

* remove react-switch and framer-motion

* remove sidebar panel, fix lint

* remove animate blocks

* fix types, remove value from dropdown item

* remove button

* ignore svgr config

* update dropdown unit tests

* allow unreachable

* oauth e2e test: update locator to make the Create button specific

* fix type errors

Co-authored-by: jackkav <jackkav@gmail.com>
2022-10-12 22:26:11 +02:00
Filipe Freire
b5f5ad8716
Update README (#5266) 2022-10-12 13:54:30 -04:00
Jack Kavanagh
49a792b4a4
o2k: removed partial support for oauth2 (#5260)
* o2k: removed partial support for oauth2

* Fix fixtures

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-12 17:39:23 +02:00
Jack Kavanagh
eddc938bd2
modal->fc (#5164) 2022-10-11 11:07:33 +00:00
James Gatz
55d6733793
pass dispatch to newCommand result (#5258) 2022-10-11 10:30:34 +00:00
James Gatz
4817b59d4e
update use-vcs hook to use a single instance and await changes (#5257) 2022-10-11 09:35:59 +00:00
Filipe Freire
5bba2e9545
[INS-2022] Initial exploration multiple test projects (#5244)
* Initial exploration multiple test projects

* Replace duplicate scenario with one to be filled in

* Simplify number of playwright project configs

* Fix testMatch setting on playwright config

* Edit github actions to distinguish between CI and Release runs
2022-10-11 08:56:12 +00:00
Jack Kavanagh
7ef73dfb2e
add rename options to request context options (#5256)
* add rename folder and request context options

* Add rename dropdown option for WS requests

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-11 08:27:06 +00:00
James Gatz
54d995ec34
Add filters for the ws event log (#5243)
* add filters for the ws event log
2022-10-10 15:24:46 +00:00
kreosus
7eadb9a815 Merge branch 'release/2022.7.0-beta.1' into develop 2022-10-06 14:29:36 +00:00
kreosus
a2d503da08 Bump app version to 2022.7.0-beta.1 and lerna package versions 2022-10-06 13:38:10 +00:00
James Gatz
58fd810dc2
Fix/ins 1660 tooltip issues (#5239)
Add react aria to tooltip and move to fc
2022-10-06 13:19:09 +00:00
Jack Kavanagh
d5ec27372c
fix duplicate error response after upgrade (#5241)
* remove error response after upgrade

* include ENOTFOUND
2022-10-04 22:24:57 +00:00
Jack Kavanagh
898d24c4ba
Refactor/wrapper-tsx-fc (#5242)
* wrapper-fc squashed

* undrill setFilter

* extract hooks

* eliminate wrapper.tsx
2022-10-04 21:33:18 +00:00
Mark Kim
edad158d65
[INS-1979] Add disconnect dropdown (#5236)
* add disconnect dropdown

* remove console

* add style fix for ux

* add e2e tests

* rename

* Simplify the smoke websocket smoke tests

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-04 09:49:41 -04:00
Filipe Freire
b90b5c993e
Chore: bump playwright to 1.26.1 (#5240) 2022-10-04 08:47:22 +00:00
Jack Kavanagh
9be7e05000
app tsx fc (#5235)
* fc rebase

* extract render listeners from app

* organise global shortcuts

* show logo in index.html

* import listeners

* add loading indicator and split shortcuts

* Simplify GitVCS/VCS instance creation

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-10-03 17:24:38 +02:00
Jack Kavanagh
a94c488410
add loading indicator (#5237) 2022-10-03 14:57:27 +00:00
Jack Kavanagh
37a6c83c5a
[INS-2017] add ws subprotocol support (#5238)
* add protocol support

* add test protocol
2022-10-03 11:19:26 +01:00
James Gatz
fac2627d69
Replace the KeyboardBinder with hooks (#4937)
* Add keyboard handler hook

* use the hook in all functional components

* update package-lock.json

* split global keys from app.tsx

* flatten gql explorer

* gql explorer fc

* oops

* use fn updater in setState

* remove keyboard-binder from gql explorer

* graphql-editor to fc

* remove keyboard binder from graphql-editor

* req switcher modal fc

* fix show hide modal

* hotkey hook naming pass

* modal fc

* remove unused onKeyDown prop from modal

* use the label instead of key name

* request-url-bar send request with cmd+d

* stop propagation in modals

* cleanup

* use the keybind hook on response viewer

* use the keybind hook on action-bar

* use document.body for handling dropdown navigation via keyboard

* use global shortcuts for request switcher

* use ModalHandle

* remove unused closeOnKeyCodes

* remove KeydownBinder from modal

* remove KeyDownBinder class

* remove auto-focus in modal component

* define cascade for keymaps in code-editor

* fix key-combination-modal

* remove onCancel and fix export

* remove unused ref

* fix types

* remove recursive hack on modals

* nitpick: naming

* checkpoint - 1

* fix hot key labels

* checkpoint

* some more type fixes

* simplify shortcuts.tsx and fix types

* add key combo types

* add key combo fc

* fix type

* rename definition to description

* remove close modal and close dropdown hotkeys

* add migration for removing hotkeys

* mock the keydown-binder in the test

* use a function to get the element to bind

* refactor search

* allow autocomplete on editor

* add event.code in keyboard keys

* fix lint

* remove verbose introspection modal

* use the new keybinder in request-switcher-modal

* typo in gql editor

* fix esc on editable

* use dot property access

* stop editor handling escape keys

Co-authored-by: jackkav <jackkav@gmail.com>
2022-09-28 16:55:11 +00:00
kreosus
31dc76ef01 Merge branch 'release/2022.6.0' into develop 2022-09-27 13:41:37 +00:00
kreosus
123253811c Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
Filipe Freire
e4e6e673be
[INS-2009] Fix Clear all responses for WebSockets (#5223)
* [INS-2009] Fix Clear all responses for WebSockets

* fix lint
2022-09-26 16:00:19 +00:00
James Gatz
0c8ab6971e
update the query tab panel when we import params from url (#5224) 2022-09-26 14:23:03 +00:00
kreosus
dbc30c58cb
[INS-1819] Added a connected banner to requests headers (#5220)
* initial push

* add nowrap hack

* fix overflows in the tab panels

* fix scrollable hack in request-headers

* remove second scrollbar in ws request query editor

Co-authored-by: Mark Kim <mark.kim@konghq.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-09-26 14:54:23 +01:00
Filipe Freire
29805590b2
[INS-2004] Fix missing WebsocketTag on request switcher (#5217) 2022-09-23 16:22:56 +00:00
Jack Kavanagh
e1e156efa0
fix bug in query toggles (#5215) 2022-09-23 16:28:17 +02:00
Mark Kim
07833abcb5
squishy squash connect and send (#5204)
Co-authored-by: jackkav <jackkav@gmail.com>
2022-09-23 11:47:20 +00:00
James Gatz
883753a7df
Websocket request settings (#5209)
* add description field in websocket request model

* add websocket request settings modal

* add settings option in the ws request dropdown

* add docs tabpanel in websocket request pane

* extend hotkey for request settings to handle ws requests

* wip todo fix stale request value

* add store/send cookies and move/copy to workspace

* merge settings modals into one

* add followRedirects option in ws

* update followRedirects type on request model

* fix followRedirect default setting

* respect the max redirects global settings

* cleanup
2022-09-23 12:59:27 +02:00
Filipe Freire
d9e70955b6
Fix copy WS request pane Intro link (#5211)
* Fix copy WS request pane Intro link

* Update packages/insomnia/src/ui/components/websockets/websocket-response-pane.tsx

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-09-22 23:40:00 +00:00
Filipe Freire
6ad14d4e66
Fix copy for WS empty state pane (#5208) 2022-09-22 11:52:36 +01:00
David Marby
814791f9f1
Send and store cookies for websocket requests (#5205)
* Send and store cookies for websocket requests

* Lowercase for consistency
2022-09-22 10:48:43 +02:00
James Gatz
5c109ac496
Use new unique keys to update the design editor on git sync updates (#5202) 2022-09-21 09:43:20 +00:00
Jack Kavanagh
e83badf767
fix: url bar auto-focus (#5199)
* connect unique key hack up to focus useEffect

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-09-20 12:44:47 +00:00
Jack Kavanagh
8c7d74a0c9
remove always rendered tabs (#5198) 2022-09-20 11:07:51 +00:00
Jack Kavanagh
eca5ba00f8
remove autofix unreachable (#5187) 2022-09-20 09:11:47 +00:00
James Gatz
b3c3c9b594
use fromSync true to indicate pasting from url should refresh the ui (#5195) 2022-09-19 11:52:44 +01:00
Mark Kim
d28d8cafb6
[INS-1976] Adding Placeholder Pane (#5189)
* adding Placeholder Pane

* Update packages/insomnia/src/ui/components/wrapper-debug.tsx

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2022-09-16 14:30:43 +00:00
Jack Kavanagh
bd58dc9241
fix db->database (#5188) 2022-09-16 14:00:08 +00:00
James Gatz
9857ee8712
Force refresh cleanup (#5184)
* remove forceRefreshCounter from app.tsx

* simplify refresh counter for ws request pane

* remove forceRefreshKey from remaining panes

* remove unused nunjucks key

* cleanup forceUpdate drills

* undrill handleSetActiveResponse

* put restore back in

* more uniqueness

Co-authored-by: jackkav <jackkav@gmail.com>
2022-09-16 14:56:41 +02:00
Jack Kavanagh
fbf2fde422
Refactor/remove-react-hack-mime-type (#5183)
* undrill update mime type

* use content type as a key
2022-09-15 11:40:02 +02:00
Jack Kavanagh
dc56947574
websocket team sync (#5180)
* enable team sync in ws request

* sync payload

* add default payload name

* make git sync work

* fix test

* hrmph

* fix failing nedb test

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-09-15 08:16:28 +00:00
Mark Kim
bbb47524a7
[INS-1804] Add Query Tab for WebSocket (#5177)
* add query tab

* clean

* add disabling functionality

* Update packages/insomnia/src/ui/components/websockets/action-bar.tsx

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

* Update packages/insomnia/src/ui/components/websockets/action-bar.tsx

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

* Update packages/insomnia/src/ui/components/websockets/action-bar.tsx

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

* add renaming to resolve conflicts

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-09-14 14:58:48 +00:00