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 Kavanagh
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
John Chadwick
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 Kim
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
James Gatz
199cc8abea
Chore/response viewer fc ( #5005 )
...
* update response viewer to fc
* use key to update the component instead of refreshing through refs
2022-07-26 15:50:12 +02:00
Pavlos Koutoglou
ae2e2058ed
Prompt button to fc component ( #4983 )
2022-07-26 14:24:06 +02:00
Marco
8202b2e59f
feat: add link to Azure DevOps access token docs ( #4973 )
...
* feat: add link to Azure DevOps access token docs
* fix lint
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-07-25 15:04:53 +00:00
Mark Kim
e648f15820
refactor: convert settings-modal to functional ( #4991 )
...
* add modal fc conversion
* clean up
* Update packages/insomnia/src/ui/components/modals/settings-modal.tsx
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* Update packages/insomnia/src/ui/components/modals/settings-modal.tsx
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* Update packages/insomnia/src/ui/components/modals/settings-modal.tsx
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* add requested changes
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-07-25 10:35:25 -04:00
Jack Kavanagh
7ab8882729
speceditor-sidebar class->fc ( #4987 )
...
* first pass
* fix type
* eliminate state
2022-07-25 12:58:10 +00:00
Jack Kavanagh
224e5d0842
request-group-row/tree class->fc ( #4990 )
...
* first pass
* and tree
* inline incremented string
2022-07-25 12:07:24 +00:00
Jack Kavanagh
96bd20ad86
fix e2e test/consistent buttons ( #4999 )
...
* fix e2e test/consistent buttons
* fix checks
* double test timeout
2022-07-25 11:34:34 +00:00
Jack Kavanagh
9ef02c48cc
WrapperProps: decouple page layout ( #4994 )
...
* undrill pane and sidebar postions
* simplify sidebarHidden
2022-07-25 10:53:25 +00:00
David Marby
c15c05bdbb
Remove reference to Insomnia Plus ( #5000 )
2022-07-22 15:49:13 +00:00
Jack Kavanagh
e3857221c0
Refactor/shortcuts fc ( #4986 )
...
* first pass
* useCallback
2022-07-22 11:13:01 +00:00
Jack Kavanagh
ac166158c8
response pane class->fc ( #4982 )
...
* first pass
* remove old
* remove delete drill prop
* remove two more drills
* two more drills
* remove one drill
* constify
* two more drills
* remove preview mode get/set drills
* undrill exportAsHAR
* undrill debug response download
* undrill prettify option
* save ipc for next pass
* fix delete response
* make delete function uniform
* address feedback comments
2022-07-22 09:52:00 +00:00
Jack Kavanagh
4d82d4ddb7
account class-fc ( #4988 )
...
* first pass
* simplify
* use FormData as state
* address review comments
2022-07-22 10:25:00 +01:00
dependabot[bot]
30f3eb0520
Bump glob-parent from 5.1.1 to 5.1.2 in /packages/insomnia-testing ( #4996 )
...
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-22 09:53:52 +01:00
David Marby
a7af9ce473
Merge branch 'release/2022.5.0-beta.5' into develop
2022-07-21 19:30:11 +00:00
David Fluck
e930140bd0
Bump app version to 2022.5.0-beta.5 and lerna package versions
2022-07-21 17:33:22 +00:00
Dimitri Mitropoulos
4be33b6bbe
undoes hotKeyRegistry prop drilling ( #4984 )
2022-07-21 13:43:30 +02:00
Jack Kavanagh
581dd3d9eb
remove lazy ( #4981 )
2022-07-19 13:00:01 +00:00
Jack Kavanagh
e49cd9bf9c
sidebar children class->fc ( #4966 )
...
* transform
* nest components to remove drills
* sort props
* rename overloaded children prop
* check for the length of children in request-group-row
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-19 12:26:49 +00:00
James Gatz
526bfc35c8
Refactor the Dropdown into a function component ( #4932 )
...
* add unit test for dropdown component
* refactor dropdown to function component wip
* use useLayoutEffect for updating the position
* update types to use DropdownHandle
* remove unused forcedposition
* remove dropup
* add warning about dropdown container
* add useCallback/useMemo
* re-export the container id for tests
* split the state
2022-07-19 13:58:25 +02:00
Mark Kim
5f250334f6
refactor: convert markdown editor to functional ( #4903 )
...
* convert markdown editor to functional
* add requested changes
2022-07-19 00:16:03 -04:00
Pavlos Koutoglou
7447c30340
Refactor the Button into a function component ( #4945 )
...
* Refactored the button component to be function component
* Remove onDisabledClick prop
* Chang prop distraction and use PropsWithChildren type
2022-07-18 21:28:52 +00:00
Jack Kavanagh
d98d61d30c
gql explorer type class->fc ( #4958 )
...
* second pass
* fix lint
2022-07-18 10:38:37 +00:00
Jack Kavanagh
ddd09c64eb
Markdown preview class->fc ( #4956 )
...
* transform
* remove debounce prop and handle nulls
2022-07-18 12:12:11 +02:00
Jack Kavanagh
1bef8ac364
workspace dropdown class->fc ( #4948 )
...
* first pass
* simplify
* useCallback
2022-07-14 17:45:36 +00:00
kreosus
24deb98f79
Merge branch 'release/2022.5.0-beta.4' into develop
2022-07-14 14:56:39 +00:00
kreosus
68541bdab9
Bump app version to 2022.5.0-beta.4 and lerna package versions
2022-07-14 14:02:53 +00:00
Dimitri Mitropoulos
537b0bcb95
Removes indirection for key hotkey codes ( #4957 )
...
* removes defineHotKey
* removes keyBinds and keyComb wrapper functions
* fix properties of keyCombination being undefined break equality check
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-13 15:03:17 -04:00
Mark Kim
c6e0591c58
fix: add change method param on callback ( #4963 )
2022-07-13 14:01:52 -04:00
Jack Kavanagh
deb1038c28
remove unused component ( #4959 )
2022-07-13 19:08:20 +02:00
Pavlos Koutoglou
0ab0d72462
Improved accessibility for activity toggle. ( #4928 )
...
* Fix issue with activity toggle accessibility
* add unit tests
* update styled components to the object format
Co-authored-by: Mark Kim <mark.kim@konghq.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-13 15:05:23 +02:00
Jack Kavanagh
57b5493e9e
Fix/split button quick fixes ( #4953 )
...
* move border
* remove disabled button props
* Update packages/insomnia/src/ui/css/components/request-url-bar.less
2022-07-12 20:03:28 +02:00
James Gatz
b00b582c3d
use the window event to get the oauth refresh page ( #4955 )
2022-07-12 19:14:07 +02:00
Jack Kavanagh
9d02a854d4
replace notice with p tag ( #4954 )
2022-07-12 15:20:24 +02:00
Jack Kavanagh
a63c873142
transform ( #4936 )
2022-07-08 11:40:40 +00:00
Pavlos Koutoglou
ae9ac5a0b7
Fix tabIndex typo ( #4940 )
...
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-07-08 08:24:25 +01:00
Mark Kim
2a315a5242
fix(openapi2kong): removing unused component reference ( #4911 )
...
* add removing logic
* add recursion
* add comments
* add circular ref yaml and its expected mock
* change the $refs.get to the check method
* add path buildilng
* add for loop
* simplifies circular test
* add feedback
* add comments
* add clean up and doc
* adds response to circular-requestBody.yaml so that it's valid & lints
* inlines helpers (and catches null cases it missed)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-07-07 15:41:12 -04:00
Filipe Freire
19af1a45b9
Merge branch 'release/2022.5.0-beta.3' into develop
2022-07-07 16:25:38 +00:00
Filipe Freire
2af3eff41b
Bump app version to 2022.5.0-beta.3 and lerna package versions
2022-07-07 15:37:58 +00:00
Dimitri Mitropoulos
f72c5a6969
useCallback with async is ok, after all ( #4934 )
2022-07-07 15:04:41 +00:00
dependabot[bot]
53fbc151ef
Bump moment from 2.29.2 to 2.29.4 in /plugins/insomnia-plugin-now ( #4938 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 13:45:50 +00:00
Dimitri Mitropoulos
26fe408344
remove nunjucks templating in experimental plugin themes ( #4933 )
...
* remove nunjucks usage from core themes
* adds package downloader script
* adds runtime validation for plugins still using nunjucks
* generateThemeCSS no longer needs to be async
* removes Nunjucks as valid type
2022-07-07 13:19:17 +00:00
Jack Kavanagh
8a26fdbaa7
multipart viewer class->fc ( #4930 )
...
* multipart
* self review
* Apply suggestions from code review
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-07-07 12:28:49 +00:00