Commit Graph
3642 Commits
Author SHA1 Message Date
0373bb578b Initial WebSocket support (#5043)
* [INS-1697] Create WebSocket Request (#5041)

* add fail safe

Co-authored-by: Mark Kim <mark.kim@konghq.com>

* Websockets IPC API (#5044)

* add url to ws-request model

* fix webSocketRequest typo and add url

* add websocket api and expose it through preload ipc

* add typings

Co-authored-by: Mark Kim <mark.kim@konghq.com>

* [INS-1701] Create/Close Websocket Connection (#5046)

* add websocket action bar and its components

* remove comments

* clean up

* reflect on the electron api

* remove unused files

* import name change

* add styling

* remove commet

* add suggested changes

* remove default value

* Add WebSocketRequest to sidebar and update types (#5048)

* [INS-1700] Delete Websocket Request (#5055)

* add websocket actions dropdown

* add actions to websocket request in sidebar

* [INS-1703] Display WebSocket messages - first pass (#5054)

* Update event types to improve inference

* Update websocket response pane to fetch/subscribe and display the events

* [INS-1693] Add WS echo server for smoke tests (#5050)

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>

* fix sidebar unit tests (#5064)

* [INS-1776] adds `ws` dependency explicitly (#5066)

* [INS-1702] WebSocket Send Message (#5052)

* add initial changes for websocket message

* add abstraction for db operation and websocket operation

* remove console

* add rename

* add basic testing

* add basic testing

* add unit tests

* add form event type

* add comments

* disallow exporting context directly

* add suggested changes

* refresh the query

* using useDeepCompareEffect

* rename variable

* add mock

* clean up

* clean up

* correct the file name

* add some changes

* removing nedb-context and its hooks

* remove database changes for event sending

* [INS-1778] Fix Global Module Typing Issue (#5065)

* fix typings

* add jest import

* [INS-1703] View WebSocket Messages (#5074)

* save changes

* add styles and move files around

* remove unused code

* clean up some components

* add clean up

* add timestamp component

* add unit tests

* add case

* add style changes

* [INS-1786] WebSocket headers tab (#5080)

* first ui pass

* extract and wire up bulk editor

* raise ready state, move send

* add upgrade header debug logs

* can pass header to websocket upgrade

* implement readOnly headers

* add upgrade event and sent headers

* clean up

* fill out http upgrade into the event

* change upgrade message

* read only headers while connected

* remove upgrade event

* revert bulk editor change

* fix header editable toggle

* add nunjucks todos

* improve readOnly implementation

* disable codemirror/nunjucks for websocket headers

* take calculated headers out of the data model

* move hardcoded default headers down the tree

* fix request url rendering issue

* removed spammy warning

* clarify prop name

* refine pair typing

* change placeholder

* remove readOnly header property

* fix readOnly header layout

* Update packages/insomnia/src/ui/components/dropdowns/websocket-request-actions-dropdown.tsx

* Show HTTP->WS upgrade (handshake) (#5091)

* first pass as event

* add handshake ui

* add timeline tab

* simplify ResponseTimelineViewer

* transform res debug modal to change timeline props

* decouple timeline fetching from timeline component

* timeline ui pass

* record headers in request and response models

* can view timeline history

* write timeline to file

* some timeline

* can persist event logs

* put interface beside usage

* add note

* add event log history

* remove table event row

* tidying up

* make ws colors match

* enable multiple open connections

* close open connections at app exit

* remove old test

* Update packages/insomnia/src/models/request-version.ts

* fix type

* default readystate

* fix preview css scroll

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

* INS-1788: Add control flow to improve responsiveness. (#5094)

* INS-1788: Add control flow for responsiveness.

This prevents events from flooding the UI thread entirely.

* Add additional code comments.

* fixup: webSocketEvent -> webSocketEvents

* display response headers (#5102)

* Show errors in timeline (#5100)

* remove unused context provider

* show errors in event tab

* updates timeline with message and close

* clean up

* show errors in timeline

* fix WebSocket capitalisation

* make timeline reader specific to ws

* write outbound messages to the timeline

* fix type

* Make the head row sticky in the events table (#5103)

* Add client certificate support to websocket connections (#5112)

* [INS-1810] close connection on response change (#5104)

* close ws connection when response is changed

* add delete logic for the queue mapg

* set error response to active response

* useRef for CodeEditor

* extract closeRequest

* use requestId to eliminate inconsistencies

* refactor extract clean up methods

* timeline feedback

* change type annotation

* fix type

* Revert "use requestId to eliminate inconsistencies"

This reverts commit 98335a927e.

* [INS-1803] show cookie tab in response pane (#5105)

* hard code sending and storing to true

* make tab naming consistent

* hard code cookie settings to false

* fix headers isDisabled bug

* [INS-1805] Add Auth Header Tab (#5115)

* add minimal change to the auth flow

* add disable state

* adding dropdown disable

* simplify reducer

* fix lint

* [INS-1839] Rename tab Header everywhere (#5119)

* can import/export websocket requests (#5122)

* use responseId for timeline name (#5124)

* add react-virtual to virtualize the event log view (#5126)

* [INS-1833] Include Auth Header in Headers mapping for WebSocket Connection (#5120)

* add auth to the header

* remove console log

* remove unneeded async

* add success redirect logic to websocket server

* add unexpected-response handler

* remove digest auth (#5129)

* remove auth header and outbound message timeline (#5130)

* [INS-1840] Add Connected Status Label and Extras (#5131)

* add status related changes

* text label change

* WebSocket ipc typing proposal (#5125)

* make consistent with main bridge

* rename webSocket

* remove deviated mock

* use consistent arrow function defintions

* Update packages/insomnia/src/main/network/websocket.ts

* Set the environment for websocket responses (#5132)

* first pass (#5123)

* [INS-1843] Add more checks to WS smoke test (#5138)

* Fix failing websocket smoke test

* Add remaining websocket smoke server endopints to fixtures

* Add checks for basic-auth, bearer and redirect

* Rm assertion

* can select payload type (#5133)

* Implement nunjucks rendering for websocket urls, authentication, headers and urls (#5134)

* fix  websocket->webSocket (#5142)

* bug fix (#5144)

* INS-1844: Implement basic event view functionality. (#5146)

* INS-1844: Implement basic event view functionality

* CSS fix to align Preview button with tab buttons.

* Reverse the order of WebSocket events (#5148)

* Reverse the event log order in the view and subscribe to messages after the latest

* WebSocket response model (#5147)

* init websocket-response model

* add websocket response model

* remove unused timeline getter

* remove unused functionality from the ws-response model

* can select and save payload message and preview mode (#5143)

* [INS-1838] Add Empty State (#5140)

* add empty state

* use the empty state pane

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

* Bug/stabilise-ws-fetch-method (#5152)

* just poll

* remove cts and eventlog channel

* Fix/nitpicks (#5156)

* remove unused names

* fix copypasta icon

* ensure all subcompnent drop state on request change

* move empty state to response pane

* add websockets to quick switch (#5159)

* [INS-1800] Remove value validity check in the WebSocket headers (#5154)

* remove valid value check in the headers

* add header name filtering

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Mark Kim <mark.kim@konghq.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
Co-authored-by: John Chadwick <86682572+johnwchadwick@users.noreply.github.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-09-09 14:53:28 +00:00
Mark Kim 1338f211dc add plugin hub link (#5155) 2022-09-09 10:40:22 +01:00
Seth Falco 150e3ef5ef docs: update links and minor typo (#4809) 2022-09-07 10:34:51 +00:00
dependabot[bot]andFilipe Freire 771fb42c8b Bump vite from 2.9.1 to 2.9.13 in /packages/insomnia-components (#5121)
* Bump vite from 2.9.1 to 2.9.13 in /packages/insomnia-components

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.1 to 2.9.13.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.13/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Run bootstrap

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-09-06 09:17:55 +00:00
kreosus af1c33210c Merge branch 'release/2022.6.0-beta.4' into develop 2022-09-01 13:06:44 +00:00
kreosus 674874e3ac Bump app version to 2022.6.0-beta.4 and lerna package versions lib@3.5.1-beta.2 core@2022.6.0-beta.4 2022-09-01 12:08:01 +00:00
0ade973590 fix: set default header on isomorphic-git to fix BitBucket and AWS CodeCommit git sync (#4865)
* fix: set default header f

Set deafult header for isomorphic-git httpClient.
Deafult behaviour for cli git command adds "Accept: */*" header,
to mimic this behaviour an defaultGitAcceptHeader will be set and merged with optional provided config headers.

#2220

* fix: change default header behaviour

faulty behaviour of merge with config headers, so currently no merge with config.headers

* Fix bug where we always only send the Accept header, and miss other headers

Co-authored-by: nHuebner <nico.huebner.1985@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-08-30 13:16:56 +01:00
kreosus a662edefd1 fixes bug (#5107) 2022-08-25 16:48:01 +01:00
kreosus 002f43fb19 Merge branch 'release/2022.6.0-beta.3' into develop 2022-08-25 13:17:22 +00:00
kreosus 02f507d745 Bump app version to 2022.6.0-beta.3 and lerna package versions lib@3.5.1-beta.1 core@2022.6.0-beta.3 2022-08-25 12:30:08 +00:00
Filipe Freire d68f552dfc Merge branch 'release/2022.6.0-beta.2' into develop 2022-08-18 14:12:09 +00:00
Filipe Freire 854c08a76e Bump app version to 2022.6.0-beta.2 and lerna package versions lib@3.5.1-beta.0 core@2022.6.0-beta.2 2022-08-18 12:23:48 +00:00
kreosusandFilipe Freire 45ad527e88 Changed dropdown menu to have Request Collection on top of list. (#5090)
Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>
2022-08-18 06:42:04 +00:00
David Marby 03587d2664 Merge branch 'release/2022.5.1' into develop 2022-08-17 12:14:56 +00:00
David Marby e724dd78a5 Bump app version to 2022.5.1 and lerna package versions core@2022.5.1 lib@3.5.0 2022-08-17 10:46:46 +00:00
Filipe Freire 2b23d68318 [INS-1789] Fix issue preventing selection of custom HTTP methods (#5086) 2022-08-17 10:40:58 +00:00
David Fluck a3fa6ca87f Revert "only build sr when used (#4772)" (#5075)
This reverts commit 70f8e7fbf9.
2022-08-15 14:15:30 -04:00
brianandDimitri Mitropoulos 6f227ffa11 Fix an issue with URL encoding on cURL imports (#5006)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-08-12 13:53:58 -04:00
David Marby ebe5fffd67 Remove unused sync graphql calls (#5057) 2022-08-12 12:48:14 +00:00
kreosusandDimitri Mitropoulos 3413156f11 [INS-1619] add whitespace for Dev Portal modal (#5069)
Co-authored-by: Dimitri Mitropoulos <dimitropoulos@users.noreply.github.com>

Co-authored-by: Dimitri Mitropoulos <dimitropoulos@users.noreply.github.com>
2022-08-12 12:15:04 +00:00
kreosus 981b8a450e Merge branch 'release/2022.6.0-beta.1' into develop 2022-08-11 19:55:41 +00:00
kreosus aec2bd1758 Bump app version to 2022.6.0-beta.1 and lerna package versions lib@3.4.1-beta.0 core@2022.6.0-beta.1 2022-08-11 19:06:36 +00:00
Filipe Freire 93d6822b17 [INS-1779] Fix send and download not working without environment selected (#5071) 2022-08-11 11:49:20 -07:00
Filipe Freire 0435188220 [INS-1668] handle multiple security requirement objects (#5047)
* [INS-1668] handle multiple security requirement objects

* Add fixtures to test out multiple api keys
2022-08-05 11:01:38 +00:00
Filipe Freire 623fe7fc13 Merge branch 'release/2022.5.0' into develop 2022-08-04 07:40:19 +00:00
Filipe Freire b72c923746 Bump app version to 2022.5.0 and lerna package versions lib@3.4.0 core@2022.5.0 2022-08-02 16:25:13 +00:00
Dimitri Mitropoulos 4414005b9e [INS-1724] creating a gRPC request should activate that request (#5037) 2022-08-02 09:19:14 -04:00
Filipe Freire a479860c23 Merge branch 'release/2022.5.0-beta.7' into develop 2022-08-02 11:15:26 +00:00
Filipe Freire 08ae04f241 Bump app version to 2022.5.0-beta.7 and lerna package versions lib@3.3.1-beta.6 core@2022.5.0-beta.7 2022-08-02 10:05:29 +00:00
James Gatz 313d72c40d Fix pinning a request with the keyboard shortcut (#5034) 2022-08-02 09:53:21 +00:00
kreosus b9eaffe8fb This commit removes the focus from sign out to sync workspaces when pressing enter (#5028) 2022-08-01 18:51:04 +02:00
James Gatz 9922366cae only handle send on enter in request-url-bar (#5031) 2022-08-01 15:37:09 +00:00
e4e674df8f move keyboard shortcuts to global listener in url-bar (#5030)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>
2022-08-01 15:02:46 +00:00
James GatzandMark Kim 250ffa49e4 update the dropdown-list style when the uniqueness key changes (#5029)
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>

Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>
2022-08-01 14:37:14 +00:00
James Gatz f2bf39a2d9 Use null value to set "No environment" (#5027) 2022-08-01 11:27:45 +00:00
Dimitri Mitropoulos 0aca9717d9 [INS-1711] regression: fixes lazyWithPreload types (#5025) 2022-07-29 12:10:16 -04:00
Dimitri Mitropoulos a94d990f3b INS-1713 fixes content-type editor sync (#5024) 2022-07-29 15:06:15 +00:00
Dimitri Mitropoulos 2ecd950122 [INS-1709] hotfix: fixes missing sync dropdown (#5022) 2022-07-29 10:39:18 -04:00
Dimitri Mitropoulos 892344db84 hotfix INS-1712 fixes duplicate request from dropdown (#5023) 2022-07-29 09:55:15 -04:00
Dimitri Mitropoulos fedf3ecca4 INS-1692 removes document preview toggle (#5020) 2022-07-28 23:46:02 -04:00
James Gatz 892947e36a Merge branch 'release/2022.5.0-beta.6' into develop 2022-07-28 15:55:59 +00:00
James Gatz e76735c709 Bump app version to 2022.5.0-beta.6 and lerna package versions core@2022.5.0-beta.6 lib@3.3.1-beta.5 2022-07-28 13:48:13 +00:00
Daniel Stone fa7dd44d8c Fix #4797 request switcher auto-focus from CodeMirror (#5002)
Fixes the input `.focus()` method call. The simplest fix was to revert the change in 3cf464d059.

There do not seem to be any new problems in the current application from reverting this commit's relevant changes, indicating that the original cause of the bug is no longer present.
2022-07-28 11:13:01 +00:00
Jack Kavanagh 1a464446b0 [INS-1695] Fix Show Keyboard Shortcuts modal not opening (#5016)
* fix register

* fix modal register

* remove type
2022-07-28 10:38:47 +00:00
Jack Kavanaghandgatzjames 6399a971b3 Eliminate wrapperProps (#4979)
* unwrapper props

* undrill collapse and dupe group

* undrill togglePin

* chop up wrapper props

* eliminate more drills

* undrill generate code modal

* undrill setactiverequest

* undrill copyAsCurl

* undrill updateDownloadPath

* undrill setpreviewmode

* undrill sidebarsort

* undrill sidebarfilter

* undrill SetActiveResponse

* undrill bulk settings toggles

* remove handleShowRequestSettings dead code

* undrill show cookie modal

* undrill remove workspace

* undrill send and sendanddownload

* undrill body-editor

* reconcile name drift

* undrill updateRequest

* fix lint

* fix(?) request send hotkey

* push sidebarChildren and dlPath down the tree

* undrill activeworkspacemeta and environments

* fix rebase mistake

* remove comment

* fix ts ignore and naming

* fix keydown binder

* restore render hack and fix delete

* move setActiveEnvironment to wrapper

* forwardRef: true

* fix send request without env in redux

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-28 09:40:22 +00:00
Filipe Freire 78536b142a chore: Fix package-locks (#5015) 2022-07-28 08:29:31 +00:00
dependabot[bot] fae0bb40a9 Bump glob-parent from 5.1.1 to 5.1.2 in /packages/insomnia-inso (#5014)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 07:27:42 +01:00
585ad9e46d Move login flow to accounts website. (#4964)
* INS-1562: Allow fetching data-uris for fast base64

* INS-1562: Add insomnia-api-client dependency.

* INS-1562: Implement delegated login flow

* import named react imports directly (like rest of app)

* Fixes.

* Error handling improvements.

* Revert to using @sentry/electron inside renderer.

* Add break in command switch.

* Better support for re-auth prompts.

* Minor styling improvement.

* Jest fixes.

* Simplifications, fix occasional weirdness

* Update package-lock.json

* *facedesk* Fix URL copy!

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-07-27 20:55:18 -04:00
Dimitri Mitropoulos 9df9b9a457 [INS-1517] adds GitHubStarsButton (#5009)
* adds GitHubStarsButton

* adds incognito mode functionality

* adds segment

* update: only show stars on dashboard

I missed a comment on the ticket

* cancel fetch if component is no longer mounted

* new design

* change footer link (per request) now that the same link's in the header

* inlines links components per review feedback

* adds caching for fetched value to overcome over-rendering
2022-07-27 13:25:33 -04:00
Mark Kimandgatzjames f877b040c1 fix: return the input focus back after sending a request (#4978)
* fix focus back

* add fix for blur on dropdown trigger button in request url bar

* add useCallback

* add useCallback

* add useCallback

* fix handleSendAndDownload from prev itteration

* add requested changes

* fix focus back

* add fix for blur on dropdown trigger button in request url bar

* add useCallback

* add useCallback

* add useCallback

* fix handleSendAndDownload from prev itteration

* add requested changes

* fix string mistake

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-26 16:27:21 -04:00