Commit Graph

2617 Commits

Author SHA1 Message Date
Jack Kavanagh
7221518bb3
fix: curl transform - allow header without value (#6069)
* allow header without value

* tidy

* fix test
2023-07-03 08:46:55 +00:00
Filipe Freire
3f6865eaf5
chore: change electron-builder mac notarize config (#6054)
* chore: change electron-builder mac notarize config

* add teamId

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-07-03 08:30:00 +00:00
Jack Kavanagh
ffbf2ee42f
Electron 23 upgrade (#5987)
* electron 23 bump

* lock files

* fix type
2023-06-29 18:02:02 +02:00
Jack Kavanagh
20b4556c85
upgrade pkg (#6001)
* include debug instructions

* remove pkg as a dependency

* fix doc

* add tslib to send-request to fix libcurl pkg bs

* bump pkg to 5.8.1

* remove not needed scripts
2023-06-29 17:25:46 +02:00
Jack Kavanagh
eb0af2e2fe Bump app version to 2023.3.0 and lerna package versions 2023-06-27 18:51:40 +00:00
Jack Kavanagh
ca3191f4c3 v3.17.0 2023-06-27 18:51:25 +00:00
Jack Kavanagh
90b9516d55
make all migration functions non-async (#6043)
* make all migration functions non-async

* migrate is not a promise

* simplify scope migration

* remove apispec and fix test

* fix tests

* fix tests, for real this time

* removed api spec from collection

* default doc name to my-spec.yaml again

* fix apispec typing

* remove pointless generic

* fix type

* Create an api spec on first launch

* Remove flaky firstLaunch data creation

* fix test

* create apispec only when scope is deisgn

* oauth test left

* gitlab test

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2023-06-27 20:46:43 +02:00
Jack Kavanagh
d1106381ee
add support for multiple workspaces in one import file (#6044)
* many ws

* squashed import commits

* split import to project and workspace

* import logic

* fix the collection to design bug

* rename type

* fix tests

* tidy workspace loader

* multiple ws imports should always create new ws

* fall back to default project

* env var to bool

* fix tests

* fix app/import

* provide import context in title

* fix api spec import

* clean up

* ask about private envs everytime

* fix loading

* fix export private dialog
2023-06-27 15:43:51 +00:00
Jack Kavanagh
1380b6b02f
O2K add deprecation warnings (#6029)
* add UI warning

* add CLI deprecation warning
2023-06-26 11:40:46 +00:00
James Gatz
e4612735c0
Add AI test generation (#6053)
* savez

* ai animation

* save

* fixes

* improvements to ux and loading states

* ux improvements

* delete unused file

* undo vscode settings changes

* add prod api url

* remove console

* fixes

* rename loading to generating

* remove extra case in ai settings

* generate a new folder for the generated requests

* fix icon

* fix unused import
2023-06-23 19:03:01 +02:00
Jack Kavanagh
b4857c7a13
workspace migration logs (#6038)
* workspace migration logs

* add try catches around all the migrations
2023-06-21 17:45:18 +02:00
Jack Kavanagh
63754de659
electron app auto update performs a backup after download (#6005)
* nix

* export all on update download complete

* fix missing websockets inclusions

* tidy up export function
2023-06-15 12:18:37 +00:00
Jack Kavanagh
4b0defdc26
cli flake timeout 20s (#6034) 2023-06-14 14:42:01 +00:00
Filipe Freire
0cb6ab18c3
INS-2697: adjust first time user experience (#6015) 2023-06-07 14:05:06 +00:00
Jack Kavanagh
9d735b9f4a
upgrade some bundling deps (#6000)
* upgrade some deps

* downgrade execa

* remove get-bin-path

* bin path

* update execa api

* update execa

* update execa

* use old api

* locks

* revert pkg upgrade

* pin pkg at 5.8.3
2023-05-30 09:56:51 +00:00
Filipe Freire
7b74188e91
fix #5976: set content-type on openapi3 imports (#5982)
* fix #5976: set content-type on openapi3 imports

* cr improvements

* fix

* fix
2023-05-23 15:56:26 +00:00
Filipe Freire
1b87404649
INS-2639: add kong 3.x support for inso generate k8s config (#5977)
* INS-2639: add kong 3.x support for inso generate k8s config

* Update packages/openapi-2-kong/src/kubernetes/generate.test.ts

Co-authored-by: Michael Heap <m@michaelheap.com>

* test

---------

Co-authored-by: Michael Heap <m@michaelheap.com>
2023-05-22 13:15:06 +00:00
Filipe Freire
1005897417 Bump app version to 2023.2.2 and lerna package versions 2023-05-17 14:28:10 +00:00
Filipe Freire
5ed99dbc20 v3.16.0 2023-05-17 14:27:49 +00:00
Filipe Freire
9d2bde7656
fix #5969 cannot select base environment (#5970)
* fix #5969 cannot select base environment

* CR fix

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

* CR fix

* Update workspace-environments-edit-modal.tsx

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2023-05-17 13:08:36 +00:00
Thijs Schreijer
480f9c0a36
update test to expose bug in regex generation (#5974)
* update test to expose bug in regex generation

sanitizing the path-variable name is not done correctly, as it sanitizes the entire path. So it also makes unintended changes.

* fix failing test, add +1 test

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-05-17 11:25:58 +00:00
Filipe Freire
54b700c327
INS-2633: fix self-hosted git url compatibility (#5968) 2023-05-16 15:01:56 +00:00
Filipe Freire
62f7f3d74f
chore: fix prerelease environment editor tests (#5964) 2023-05-15 16:20:52 +00:00
Jack Kavanagh
d7b0d0f8db
fix debugger in dep (#5963) 2023-05-15 16:07:25 +00:00
Jack Kavanagh
81d85af39c Bump app version to 2023.2.1 and lerna package versions 2023-05-15 14:27:18 +00:00
Jack Kavanagh
3c6cb084f9 v3.15.0 2023-05-15 14:27:04 +00:00
Filipe Freire
96b36d9c28
INS-2627: sanitize path-variable name regex capture for kong 3.x (#5958)
* INS-2627: sanitize path-variable name regex capture for kong 3.x

* add slugify, and extract function

* sanitize path param in plugins.ts
2023-05-15 13:57:39 +00:00
Jack Kavanagh
ea43bacfd2
show errors from the introspection (#5919)
* better error message

* remove log

* use narrower selector

* null check error
2023-05-15 09:06:53 +00:00
Filipe Freire
28f6e1803b
INS-2497: prevent git sync parse failure (#5954)
* INS-2497: prevent git sync parse failure

* fix import and add tests

* CR improvements
2023-05-15 09:03:59 +00:00
Filipe Freire
f5d6d529a5
Add drag and drop to 'Manage Environments' (#5940)
* wip: environments drag and drop with react-aria

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

* wip

* wip

* 1st working version

* wip

* working!

* wip

* rm outline

* type issues

* add redux hack

* set active

* refactor and rename

* add aria label to fix warning

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: jackkav <jackkav@gmail.com>
2023-05-09 14:13:57 +00:00
Filipe Freire
953ed0d80c
fix: #5922 logo is too large for MacOS (#5927) 2023-04-28 10:03:51 +00:00
Jack Kavanagh
bc5b9c5a36 Bump app version to 2023.2.0 and lerna package versions 2023-04-26 10:15:01 +02:00
Jack Kavanagh
5e21213a8a v3.14.0 2023-04-26 10:15:01 +02:00
James Gatz
d73d7c3324
Return null from actions that return nothings (#5917)
* fix returning null

* return null from actions that return nothing
2023-04-25 15:51:30 +00:00
Jack Kavanagh
0e55e0682f
oops (#5916) 2023-04-25 14:49:05 +00:00
Filipe Freire
47a1cea2be
Add better support for binary data on WebSocket connections (#5897)
* add /binary data endpoint to smoke test server

* add function to deal with diff event.data types

* step 1

* step 2

* final step

* CR improvements

* update deps & fix type-check
2023-04-24 16:40:51 +00:00
Jack Kavanagh
12d027fc24
toggled Swagger UI representation in spec designer (#5895)
* show a button

* re-add swagger-ui-dist

* can toggle right pane
2023-04-24 16:20:18 +00:00
James Gatz
5d077d5544
Import from command (#5901)
* app-commands remove unused prop

* add default value to import modal and move app commands hook to root

* remove use-app-commands

* fix on close handler

* check the previous value to avoid clearing the fetcher

* update from type to remove weird states

* second pass at useEffect

* add useFetcher discussion

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-04-21 13:04:31 +00:00
Zhizhen He
9f64e6de65
fix typos (#5896)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-04-21 10:32:30 +00:00
Filipe Freire
53db74ff6b
INS-2565: set coverage threshold to 35% min (#5903)
* INS-2565: set coverage threshold to 35% min

* improvement
2023-04-20 13:32:47 +00:00
Filipe Freire
53fe8865c8
chore: bump playwright to 1.32.3 (#5904) 2023-04-20 10:13:17 +00:00
James Gatz
48ab626938
Update the app loading indicator (#5900)
* update loading indicator

* sort orgs:projects to display them in the correct order

* update loading indicator
2023-04-19 11:19:06 +00:00
James Gatz
3913163fda
Feature/ins 2505 insomnia app improvements (#5894)
* style active items in the sidebar

* add sidebar style to test suite list

* redirect on the last opened organization route when switching orgs

* update navigation to work as going back to the previous open project
2023-04-18 08:53:08 +00:00
James Gatz
650897ac5c
guard against null requests in the history dropdown (#5890) 2023-04-13 09:54:10 +00:00
David Sandoz
76420c6748
Fix icon to follow Apple app icons best practices (#5867)
* Fix icon to follow macOS guidelines

Refs Kong/insomnia#2788

* Update icon with one created by the Insomnia team

Co-authored-by: Erick Rico <erick.rico@konghq.com>

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Erick Rico <erick.rico@konghq.com>
2023-04-03 10:38:54 +00:00
gatzjames
afcc5d300e
git prerelease tests update 2023-03-31 20:21:12 +02:00
gatzjames
afff7b1da7
make unary selector more specific 2023-03-31 19:49:33 +02:00
gatzjames
4c7922a046
fix unit test selection 2023-03-31 19:06:46 +02:00
gatzjames
9565391291
use the first sub-environment on new workspace imports 2023-03-31 18:33:41 +02:00
Filipe Freire
17b7cab641 rm workaround on env editor test 2023-03-31 17:28:54 +01:00
Filipe Freire
cb1d3718e2 fix env editor tests 2023-03-31 17:09:31 +01:00
Filipe Freire
443dfc1535 fixes to prerelease smoke tests 2023-03-31 16:46:58 +01:00
Filipe Freire
59019f0fa1 Bump app version to 2023.2.0-beta.1 and lerna package versions 2023-03-31 11:20:12 +00:00
Filipe Freire
44b3f3748a v3.14.0-beta.1 2023-03-31 11:19:54 +00:00
Alexander Samsig
e2d672ab04
Change environment variables generated by OpenApi and Swagger importers to use underscore-dot syntax, instead of custom variable access. (#5807) 2023-03-31 10:54:45 +00:00
89ht
0d26ad6323
Support charset information on swagger2 data import (#5781) (#5812) 2023-03-31 10:53:37 +00:00
Nick Hackman
bed21be8af
cURL: Support all --data flags and fix parsing of key=value pairs (#5818)
* test(curl): data-urlencode support key=value pairs

Updates tests to support key=value pairs in urlencode

Issue: https://github.com/Kong/insomnia/issues/5696

* fix(curl): data-urlencode support key=value pairs

Splits out the logic to handle the cases for the --data-urlencode flag from cURL.

docs: https://curl.se/docs/manpage.html#--data-urlencode
Issue: https://github.com/Kong/insomnia/issues/5696

* feat(cURL): support all data flags

This refactors the current implementation for handling --data[suffix] flags from cURL supporting all possible formats outside of reading files into Insomnia.

docs: https://curl.se/docs/manpage.html

Issues: https://github.com/Kong/insomnia/issues/5696, https://github.com/Kong/insomnia/issues/5400

* test(cURL): support all data flags

Combines a lot of tests and covers all cases provided in the cURL man pages.

* style: lint
2023-03-31 10:53:32 +00:00
James Gatz
29acc92559
Improve import UX (#5869)
* add import routes and modal

* fix paths

* fix paths

* save

* remove import.ts

* ui

* save

* fix tests

* fix tests

* fix tests

* remove outdated test

* update import tests

* lint and ts fixes

* add section title and fix some style issues

* close modals on import success

* error handling for empty content

* fix api spec imports

* Simplify importResources function

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>

* cleanup

* settings import button styles

* remove comment

* update tests

* comment for app-command imports

* fix test lint error

* update comments

* comment out app/import for now

---------

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>
2023-03-31 10:53:22 +00:00
James Gatz
5322001ab0
Fix scope filter on project view. (#5856)
* change empty scope to all and update selection mode

* don't allow empty selection
2023-03-21 15:06:39 +01:00
Dave Nicolson
55b5260aa4
Render webviews in UTF-8 (#5836) 2023-03-15 09:48:07 +00:00
Filipe Freire
dc7046f343 Bump app version to 2023.2.0-beta.0 and lerna package versions 2023-03-14 15:26:58 +00:00
Filipe Freire
ceeb05d6e6 v3.14.0-beta.0 2023-03-14 15:26:43 +00:00
James Gatz
83f96d5f6d
improve error handling for failed git fetch (#5844) 2023-03-14 15:19:16 +00:00
Filipe Freire
97a4d10048
INS-2434: basic Kong 3.x support on Inso CLI (#5827)
* INS-2434: Kong 3.x support on Inso CLI

* fix test

* Add basic support for kong 3.0 on Insomnia UI
2023-03-14 15:17:28 +00:00
Filipe Freire
84963204b7 Bump app version to 2023.1.0 and lerna package versions 2023-03-09 14:30:06 +00:00
Filipe Freire
29825dec4a v3.13.0 2023-03-09 14:29:52 +00:00
Filipe Freire
a12cc8b459 Bump app version to 2023.1.0-beta.5 and lerna package versions 2023-03-03 14:38:29 +00:00
Filipe Freire
f8e406ab84 v3.13.0-beta.5 2023-03-03 14:38:13 +00:00
James Gatz
6463d7095f
Feat/git improvements (#5779)
* fix git repo tab styles

* remove extra fetches

* add loading indicator for git changes

* remote branches and git fetch improvements

* fixes

* fix tests

* fetch before getting the git log

* only reinit vcs for different repos

* fix make commit button disabled if commiting

* show close button in settings modal

* fix tests, only fetch from server if there is a remote uri
2023-03-02 14:33:34 +01:00
James Gatz
3738fb56f4
Revert "Display trial status and upgrade paths for users (#5805)" (#5813)
This reverts commit d9fab84070.
2023-03-01 10:30:31 +00:00
James Gatz
d9fab84070
Display trial status and upgrade paths for users (#5805)
* wip update account toolbar and session storage

* trial days left

* wip

* fix styling and redirects

* use env for website url

* update session

* only display the upgrade button for logged in users
2023-02-27 16:58:10 +00:00
Filipe Freire
f611658728 Bump app version to 2023.1.0-beta.4 and lerna package versions 2023-02-24 15:32:29 +00:00
Filipe Freire
b8024913ca v3.13.0-beta.4 2023-02-24 15:32:13 +00:00
rickythefox
9a5701bad3
Fix size of query bulk editor (#5795) 2023-02-22 16:14:33 +00:00
Filipe Freire
3847bf5962 Bump app version to 2023.1.0-beta.3 and lerna package versions 2023-02-16 11:09:22 +00:00
Filipe Freire
de552f2675 v3.13.0-beta.3 2023-02-16 11:09:00 +00:00
Filipe Freire
60fb2140a7
Fix dropdown closing early issue (#5778) 2023-02-16 11:03:55 +00:00
Filipe Freire
f7802bbba6 Bump app version to 2023.1.0-beta.2 and lerna package versions 2023-02-10 13:46:38 +00:00
Filipe Freire
b58cd4313e v3.13.0-beta.2 2023-02-10 13:46:22 +00:00
ltressens
c60a27813a
Closes #5722 : if redirectUrl is unset, do not match on it, but still match on it if set (#5763)
* If redirectUrl is unset, do not match on it, but still match on it if set. Also check that 'code' and 'error' are not part of parameters name, but the full name of the parameter in URI

* fix linter error
2023-02-10 13:41:14 +00:00
Filipe Freire
9b7d92b445
fix #5759 - show the selected websocket event (#5768)
* fix #5759 - show the selected websocket event

* edit
2023-02-10 10:58:18 +00:00
Jack Kavanagh
50f3f2d2dd
remove the kong/protobuf.js fork (#5760) 2023-02-07 15:58:29 +00:00
Filipe Freire
9af4e30066 Bump app version to 2023.1.0-beta.1 and lerna package versions 2023-02-02 14:49:29 +00:00
Filipe Freire
786e0ed8d5 v3.13.0-beta.1 2023-02-02 14:49:14 +00:00
James Gatz
4521d8059d
Update workspace grid in project view (#5745)
* update workspaces grid in project view

* fix search icon placement and empty pane styles
2023-02-02 14:45:08 +00:00
Filipe Freire
a1b1d06437 Bump app version to 2023.1.0-beta.0 and lerna package versions 2023-01-27 15:00:35 +00:00
Filipe Freire
349da16eee v3.13.0-beta.0 2023-01-27 15:00:19 +00:00
Jack Kavanagh
42fb46f56c
fix dropdown issue (#5734) 2023-01-27 14:56:36 +00:00
James Gatz
4e18e50471
Project sidebar UX improvements (#5726)
* add organization dropdown

* Fix props of the list component

* Convert styles to styled components

* Fix issue with grpc test

* Fix issue with the height

* Fix side bar height

* fix sidebar height and align list items vertically

Co-authored-by: Pavlos Koutoglou <pkoutoglou@gmail.com>
2023-01-27 14:53:25 +00:00
Pavlos Koutoglou
87c5986c20
Fix scroll issue with dropdown menu (#5731)
* Fix scroll issue with dropdown menu

* Decrease the size of the dropdown menu
2023-01-27 09:45:50 +00:00
Filipe Freire
34f22bb648
fix windows pdf request smoke test flake (#5729) 2023-01-27 09:28:00 +00:00
Filipe Freire
25a283ade5
bump playwright to 1.30 (#5724)
* bump playwright to 1.30

* fix version
2023-01-26 17:48:07 +00:00
Jack Kavanagh
019a85318c
proto refactor: remove manager (#5727)
* simplify pass 1: unnest proto manager

* extract recursive proto list from redux

* simplify

* remove unused tests

* unnest proto file list

* flatten proto components
2023-01-26 17:34:33 +01:00
Filipe Freire
e4e092e3e0
Fix INS-2291 weird ui for some dropdown options (#5720)
* Fix INS-2291 weird ui for some dropdown options

* Fix issue with sync-dropdown

Co-authored-by: Pavlos Koutoglou <pkoutoglou@gmail.com>
2023-01-26 09:16:21 +00:00
Filipe Freire
bfb2821993
Environment Editor PreRelease Smoke Tests (#5502)
* Create initial test file and fixture

* fix create environment dropdown minor bug

* Add tests, datatestid & edit fixture
2023-01-26 08:39:32 +00:00
kreosus
c462410474
Copy as curl visual (#5723) 2023-01-26 08:26:20 +00:00
Filipe Freire
4a46d0f71e
Fix INS-2275 db not defined creating team branch (#5719) 2023-01-25 15:42:51 +00:00
PatrickMurrell
18defb5719
update git.listfiles to list files in .insomnia directory (#5683)
* update git.listfiles to list files in .insomnia directory

* filter git.listfiles result instead of function call

* Update packages/insomnia/src/sync/git/git-vcs.ts with cleanup suggestions

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

* fix lint

Co-authored-by: Patrick Murrell <pmurrell@lcs.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-24 09:38:37 +00:00
Filipe Freire
7417acb7b9
Git Sync prerelease tests (#5705)
* WIP-clone-bad-values

* WIP

* test

* WIP-clone-bad-values

* WIP

* wip

* Git-Sync-Test

* improve a bit the locators

* Update settings.json

* fix role from button to menuitem

Co-authored-by: kreosus <kristofer.huffman@konghq.com>
2023-01-20 16:04:50 +00:00
Pavlos Koutoglou
e38ece1ab7
Feature/ins-2070-bug-updowntabshifttab-not-working (#5615)
* Update version of react-aria package

* Create dropdown hint component

* Create dropdown button component

* Create the popover component

* Create the menu item component

* Create the menu section component

* Create the menu component

* Create the dropdown related components

* Change the hotkey html tag

* Added full width option for prompt-button

* Replace the dropdown with the new

* Add some default props for dropdown

* Used themed button into dropdown button

* Added style prop for dropdown

* Remove checkmark from menu item

* Added styled props to popover

* Remove inner button from account toolbar

* Added new dropdown into cookie-list

* Revert package update

* WIP

* Delete button component and replace it's usage with dropdown button

* Fix spacing

* Added className for code-editor dropdown

* Remove the old dropdown

* Change import

* Revert some ref changes

* Added ref to dropdown

* Fixed some styles

* Fix issues like autosave and added isDisable prop

* Add title

* Remove insomnia-common imports

* Remove insomnia-common imports

* Fix code format

* Change style and fix code format

* Fix styles

* Replace dropdown import

* Fix divider style

* Fix last icon in sidebar create dropdown

* Fix issue with dropdown and the resizing screen

* Fix linter issues

* Moved the prompt button into itemContent component

* Change styled component

* Fix issue with sidebar-request-row to display the dropdown on hover

* Remove the item content in a separate component

* Remove unused css

* Destructure children props

* Fix trigger prop for grpc-method-dropdown

* Added prompt button when user delete test suite

* Hide empty dropdown items from section

* Fix linter issues

* Added Checkmark into item content

* Fix issue with linter and shortcut component

* Fixed linter issues

* Revert fragments

* Fix linter issues

* Added props for multiple select and disable

* Fix close issue with sidebar dropdown

* Update disable and stay open prop for all dropdowns

* Added aria-label for dropdown, section, items

* Added selected style for item

* Added logic for disabled items

* Fixed issue with selected items

* Fix issue with selection of grpc method dropdown

* Added aria-label to code-editor

* Fix issue with onClick and prompt

* Hide sections if it's empty

* Remove on select from item content

* Pass closeOnSelect props in the menu

* Removed dataTestId from dropdown items in request-actions

* Fix debug sidebar dropdown tests

* Change the cookie editor interactions tests

* Fix dashboard interactions tests

* Fix design-interactions tests

* Fixed grpc-interactions tests

* Fix plugins interactions tests

* Fix preferences interactions tests

* Fixed request-pane-tab tests

* Fixed app smoke tests

* Update git-sync smoke tests

* Fix space issue

* Fixed graphql smoke test

* Fixed oauth smoke test

* Fixed oauth smoke test

* Fixed websocket smoke test

* Fixed cookie-editor-interactions tests

* Remove the dropdown unit test

* Made small refactoring and remove unnecessary props

* Fix issue with grpc-method-dropdown

* Change the grpc smoke test

* Added default role props

* Update all tests that use project role

* Remove console.log

* Fix issue with themes

* REmove dropdown import from index.less file

* Remove handleClick and add some comments

* Use getItemCount from react-stately

* Remove method-dropdown css

* Fix shortcut button style

* remove extra space on sync-dropdown

* fix lint

* Remove unused prop

* Fix issue with remote workspace dropdown

* remove divider on first section if empty

* remove unused showGrpc option in method dropdown

* Fix issue with workspace-dropdown

* Fix git-sync-dropdown issues

* Fix issue with remove workspaces dropdown

* Fix sync-dropdown component

* Added disable style

* Moved server reflection and proto file outside of the dropdown

* Fix style when item is selected

* Fix issue with grpc smoke test

* Fix issue with menu props

* Disable server reflection button if url is empty

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2023-01-20 16:49:52 +02:00
Magdalena Lipka
90e014a005
use request instead or response url in url tag (#5709) 2023-01-20 11:21:08 +00:00
Filipe Freire
37999d7f2c Bump app version to 2022.7.5 and lerna package versions 2023-01-19 15:49:31 +00:00
Filipe Freire
07a41c4a01 v3.12.0 2023-01-19 15:49:16 +00:00
Jack Kavanagh
caf52b79f4
default to token and type (#5706) 2023-01-19 16:38:45 +01:00
Jack Kavanagh
9bafd223f1
oauth2: optional redirect uri fix (#5703)
* allow unset redirect uri

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-19 13:45:12 +00:00
ohayak
7b6e7e51ea
fix bug where every refresh token fails (#5702)
* fix bug where every refresh token fails

an error in conditions logic caused every request to refresh token to return [oauth2] Failed to refresh token url=http://localhost:8000/v1/login/token status=200

* flip condition

Co-authored-by: jackkav <jackkav@gmail.com>
2023-01-19 12:46:13 +00:00
Filipe Freire
aa0f225304
bump playwright to 1.30 canary (#5684)
* bump playwright to 1.29.2

* upgrade to canary

* set workers to 1

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2023-01-18 13:14:01 +02:00
Filipe Freire
90e7e372d2 Bump app version to 2022.7.4 and lerna package versions 2023-01-17 16:05:12 +00:00
Filipe Freire
ce9ad43590 v3.11.0 2023-01-17 16:04:55 +00:00
Filipe Freire
b7028eb62a
Reproduce GraphQL unknown operation named issue (#5681)
* Add smoke check to reproduce #5665

* add debug code

* clean up

Co-authored-by: Mark Kim <mark.kim@konghq.com>
2023-01-17 10:55:39 -05:00
Jack Kavanagh
fc51f7a3cb
Handle duplicate env error / unique key constraint issue (#5674)
* pretty sure this will help

* replace all the other ensure childrens

* revert PR 4378

* ?fix? test and lint

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-17 14:51:32 +00:00
Jack Kavanagh
9d1873bfb3
oauth2 fix (#5691)
* only set code challenge with usePkce

* improve hash parse error message

* show implicit grant type errors in ui
2023-01-17 14:19:16 +00:00
Filipe Freire
ff7297eabb Bump app version to 2022.7.3 and lerna package versions 2023-01-16 17:13:53 +00:00
Filipe Freire
9f8269b252 v3.10.0 2023-01-16 17:13:38 +00:00
paoloflores
a315cb6ec6
remove bad CSS selectors in markdown nested lists preview (#5526) (#5630) 2023-01-16 11:26:12 +00:00
Jack Kavanagh
237c6e71ba
read ca cert in ws connection (#5662) 2023-01-13 22:30:27 +00:00
Jack Kavanagh
ca12ad1358
use active env id in response (#5669)
* use active env in response

* fix types
2023-01-13 16:30:59 +00:00
Filipe Freire
7168d01cf4
Add prerelease test for #5664 / INS-2267 (#5668)
* Add prerelease tests for #5664 / INS-2267

* Add note on how to run non recurring tests

* improve copy
2023-01-13 17:17:01 +01:00
Jack Kavanagh
5cecdf0a0b
interpolate reflection url and metadata (#5663) 2023-01-13 11:15:37 +00:00
Filipe Freire
2db95b4e67 Bump app version to 2022.7.2 and lerna package versions 2023-01-12 12:02:34 +00:00
Filipe Freire
190216b710 v3.9.0 2023-01-12 12:02:13 +00:00
PatrickMurrell
ffd847f1df
remove check for password in git sync (#5655)
Co-authored-by: Patrick Murrell <pmurrell@lcs.com>
2023-01-12 11:57:14 +00:00
Jack Kavanagh
c4d2939e7a
Refactor/oauth2 (#5571)
* get-token

* named export

* another pass

* exporting const breaks types in a good way

* flatten optional params

* remove silly db functions

* remove junk function in db models

* flatten grant auth code

* simplify responseToObject

* improve response to object typing

* use union type for auth keys

* remove authkey constants

* some hacking

* another pass

* unpacking

* obscure auth object

* fix auth code types

* fix grant implicit types

* remove oauth2 token from redux store

* fix oauth method args

* extract network from grant auth code

* extract send from grant password

* extract grant implicit

* extract client creds

* flatten param generator

* extract nuller

* flatten refresh token

* flatten refresh token

* fix types

* remove tests

* fix test flake

* fix gql body test import

* fix typos

* fix grant auth

* fix token clear

* fix token state

* fix auth header logic

* fix types

* fix

* simplification pass

* fix code verifier

* flatten implicit grant type

* fix typo

* use consistent url parsers

* flatten grant auth code

* fix typo

* type oauth2

* improve helper and tidy

* fix type

* tidy

* tidy

* tidy up

* remove some constants
2023-01-12 11:36:51 +00:00
Jack Kavanagh
d86330445e
fix cookie setter (#5656) 2023-01-12 10:57:55 +00:00
Jack Kavanagh
3765ad2373
use electron-build notarize config (#5635)
* use electron-build notarize config

* update electron-builder.config

* Re-add snapcraft fix done in #5555

* update electron-builder

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-12 10:42:13 +00:00
kreosus
08edada6b8
Debug head test (#5638)
* Created Debug Head tests

* Added Open Generate code and copy as curl test

* delete duplicate debug-head file

* trying to add data-testid

* add todo messages

* revert datatestid for codemirror

* revert datatestid for codemirror

* fix

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-11 16:06:46 +00:00
Amy Wang
ba86acea67
Update wording about certificates not being synced for clarity (#5647) 2023-01-11 12:05:34 +00:00
Jack Kavanagh
4eae103503
Refactor/decouple-db-and-request (#5572)
* move certs out of actually send

* extract fetcher

* extract interpolate try catch

* extract plugin transformer

* remove delay hack

* extract response transform

* extract url transformer

* extract cookies

* move custom logic into tranformer function

* decouple cancellation logic

* add bytes read

* only render can cancel requests

* order by usage

* fix tests

* use abort controller for cancellation

* raise methods to fix inso

* fix

* comments

* base env and rename cancel file

* fix import order
2023-01-11 09:58:26 +00:00
Jack Kavanagh
bdce88d4d3
catch error emitted by setting lintOptions (#5650) 2023-01-11 10:39:53 +01:00
Jack Kavanagh
18771f7a94
GQL third pass (#5641)
* fallback to {} and only auto prettify

* tolerate operation name change

* fallback to first element on change

* handle empty query

* update operation names on empty query

* update the ast when we update the query

* remove log

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2023-01-10 14:41:06 +00:00
Amy Wang
4899ccdc37
Remove support email (#5622)
* Remove extra support channels from readme.

* Remove support email from contributing recommendations

* Remove support email from error modals

* Fix linting on imports

* remove unused mailto

* Make link active

* Fix linting error in Readme

Co-authored-by: jackkav <jackkav@gmail.com>
2023-01-09 16:13:29 -05:00
Filipe Freire
7ff7886801 Bump app version to 2022.7.1 and lerna package versions 2023-01-09 14:07:27 +00:00
Filipe Freire
ad878f9474 v3.8.0 2023-01-09 14:07:11 +00:00
Filipe Freire
575d4cf907
fix/revert snapcraft and macos package (#5633)
* Revert "Fix INS-2242, add afterPack workaround for electron-builder (#5627)"

This reverts commit 33aa835c26.

* Revert "Fix #5531 bump snapcraft base to core22 (#5555)"

This reverts commit 856c859679.

* Revert "use same prettify mechanic for both editors (#5616)"

This reverts commit 21c78170b2.
2023-01-09 14:03:50 +00:00
Filipe Freire
33aa835c26
Fix INS-2242, add afterPack workaround for electron-builder (#5627) 2023-01-06 16:09:21 +00:00
Jack Kavanagh
a410dfdb10
fix 248k sentry errors (#5624)
* quick and dirty

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-06 15:51:31 +00:00
James Gatz
9a4e5caa86
Fix/git sync issues (#5626)
* Display the push/pull/checkout errors correctly

* use branch name to refresh the workspace

* fix checkout

* fetch the staged changes inside the modal

* fix password login with git
2023-01-06 15:36:43 +00:00
Jack Kavanagh
21c78170b2
use same prettify mechanic for both editors (#5616) 2023-01-05 14:10:26 +00:00
Jack Kavanagh
9e1e05a8c3
use libcurl (#5611) 2023-01-05 10:08:53 +00:00
kreosus
6dffc7fcf2
Preferences prelease test (#5603)
* Added Open Generate code and copy as curl test

* Improvements to the Generate code test

* added tests for preferences

* fixed selectors

* fixed test selectors

* removed extra whitespace

* fix lint

* Improve a bit the preferences tests

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-04 17:10:31 +00:00
Filipe Freire
856c859679
Fix #5531 bump snapcraft base to core22 (#5555)
* Fix #5531 bump snapcraft base to core22

* lint package.json
2023-01-04 10:40:21 +00:00
G. S. Varma
dadf2f5b76
Fixes misleading tooltip info :: UX (#5589) 2023-01-02 22:37:47 +01:00
Filipe Freire
45704e43f1
Fix inso cli lint fail on relative path INS-2219 (#5541)
* Investigating inso cli lint spec error INS-2219

* force absolute path

* Revert "Investigating inso cli lint spec error INS-2219"

This reverts commit eb7a3fd7c3.

* fix tests

* fix test

* fix path in test

* fix test

* fix test
2022-12-16 15:25:46 +00:00
Jack Kavanagh
1750486b12
initialise operations (#5539) 2022-12-16 10:23:34 +00:00
Jack Kavanagh
e0ded77871
send request metadata with reflection request (#5535)
* send request metadata with reflection request

* use the same grpc transform options in reflection
2022-12-16 01:44:12 +01:00
Filipe Freire
f4482bde0e
trying to fix build (#5534)
* trying to fix build

* fix buildgst!
2022-12-15 19:14:24 +00:00
Filipe Freire
9644f9a7b6 Merge branch 'release/2022.7.0' into develop 2022-12-15 15:14:08 +00:00
James Gatz
f7beb00379
Add routes for git operations (#5523)
* Add repo-clone-modal

* remove unused var

* remove disabled uri input

* clone/setup git repository

* git branches

* log modal and branches modal

* git staging modal

* delete unused file

* remove unused test

* fix test lint

* fix e2e test

* display the correct file type in the staging modal

* fix check all checkboxes
2022-12-15 15:04:38 +00:00
Filipe Freire
25cd66fd1a Fix grpc prerelease smoke check 2022-12-15 14:28:07 +00:00
Filipe Freire
b6512c5262 Bump app version to 2022.7.0 and lerna package versions 2022-12-15 12:38:38 +00:00
Filipe Freire
592d8a3a4b v3.7.0 2022-12-15 12:38:22 +00:00
Jack Kavanagh
59ad93d2b9
Fix gRPC reflection duplicate import error (#5525)
* use fork temporarily

* package lock

* use kong fork of protobuf

* package lock

* re-add proto-loader

* package lock
2022-12-15 11:54:07 +00:00
Filipe Freire
a73028ac8d
Fix INS-2212 removing import in request pane (#5528)
* Fix INS-2212 removing import in request pane

* Fix lint
2022-12-15 11:27:18 +00:00
James Gatz
a0919a40d7
disable generating new requests only on spec errors (#5527) 2022-12-15 10:51:20 +00:00
Filipe Freire
b53187c908
Remove import for existing workspace (#5524)
* Remove import for existing workspace

* remove the new button click from all smoke tests

Co-authored-by: jackkav <jackkav@gmail.com>
2022-12-14 17:47:49 +00:00
Jack Tysoe
46bb161134
Enable automated security plugins at the service (root spec) level (#5378)
* feat(plugins): enable support for service-level security definition plugins

* feat(plugins): add tests for service-level security plugins

* fix(syntax): match regexes to last commit

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-12-14 15:30:56 +00:00
Jack Kavanagh
1bb9607c39
gRPC server reflection support (#5518)
* eliminate grpc paths

* add fake reflection ux

* add grpc packages

* basic ux

* first working pass

* package lock

* reset selected protofile

* fix types

* ssl

* improve naming

* remove deprecated grpc url parse

* remove broken test

* replace grpc proto PR test with reflection
2022-12-14 12:27:39 +00:00
James Gatz
5b683f05df
Use OAS ruleset from the root of the repo directory if it exists (#5520)
* read file from git path

* Fix using the default oas ruleset when none is found in the repo

* display warning and info messages from oas lint
2022-12-14 11:58:24 +00:00
Jack Kavanagh
ed34090384
Support custom spectral ruleset in inso (#5488)
* first pass

* package lock

* provided ruleset is not an object

* works

* support multiple extensions

* fix test

* lower coverage threshold

* remove unused test

* remove only
2022-12-14 12:47:28 +01:00
Jack Kavanagh
4fb50c3b81
error route: add clipboard copy (#5514)
* add clipboard copy

* make error selectable
2022-12-14 08:51:49 +00:00
Filipe Freire
ecf4c0ef65
Add server reflection to smoke test grpc server (#5517)
* Add server reflection to smoke test grpc server

* remove unnecessary proto file
2022-12-13 21:34:15 +01:00
kreosus
a1cb079012
Open generate code and copy as curl (#5499)
* Added Open Generate code and copy as curl test

* Improvements to the Generate code test
2022-12-13 17:46:54 +00:00
Jack Kavanagh
d76981ae4a
remove duplicate button (#5515) 2022-12-13 17:34:15 +00:00
Jack Kavanagh
b39ee5bc4b
toggle auto fetch (#5516)
* fix automatic fetch

* simplify gql state
2022-12-13 17:33:37 +00:00
Filipe Freire
b5130b6086 Bump app version to 2022.7.0-alpha.0 and lerna package versions 2022-12-12 17:56:28 +00:00
Filipe Freire
205d0b0d2d v3.7.0-alpha.0 2022-12-12 17:56:14 +00:00
Jack Kavanagh
bd61bcfd14
ca cert support (#5498)
* exploration of new data model

* POC second pass

* fix

* fix types

* improve layout
2022-12-09 16:30:58 +00:00
Jack Kavanagh
fad836d478
decouple grpc request from redux (#5500)
* move proto file modal under grpc request

* delete some stuff

* remove spinner from request row for now

* sync grpc state

* add change type

* clean up

* remove extra bridge method
2022-12-09 12:26:15 +01:00
Filipe Freire
792bf7034d
Add prerelease grpc smoke tests (#5480)
* Add prerelease grpc smoke tests

* Wrap up smoke tests

* small improvements

* Remove duplication
2022-12-07 10:33:15 +00:00
kreosus
4f7305084f
Pin a request (#5487)
* test to rename a request

* added Delete Request test

* added filter by folder test

* added Pin a request test

* minor improvements

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-12-06 12:01:30 +00:00
SIX Douglas
f39d47b5bd
Import multiple envs when importing OpenAPI3 (#4254)
* feat(import): import multiple envs when importing OpenAPI3

When the OpenApi file to import contains multiple servers, import each one as an environment.

Closes #3627

* feat(import): import multiple envs when importing OpenAPI3

When the OpenApi file to import contains multiple servers, import each one as an environment.

Closes #3627

* fix lint and tests & rebase with latest develop

Co-authored-by: SIX Douglas <douglas.six@ext.adeo.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-12-05 11:31:43 +00:00
Jack Kavanagh
cfc1ac09aa
Refactor/pre request routing (#5481)
* improve prop typings

* tidy up error a little
2022-12-05 12:18:30 +01:00
Filipe Freire
a2a6b4bce8
Bump to Electron 22 (#5479)
* Bump to Electron 22

* fix type-check
2022-12-02 14:06:50 +00:00
Filipe Freire
327450cd77
[INS-2174] fixes create new plugin issue (#5473) 2022-12-01 13:20:56 +00:00
Jack Kavanagh
171674c80a
simplify grpc and align with websockets (#5472)
* aligning

* remove load methods abstraction

* move load methods over the bridge

* flatten protomanager

* remove default export

* flatten write protofile

* flatten more

* simplify method typing

* remove uneeded useEffect

* consistent connection close

* consistent nunjucks error handling
2022-12-01 14:05:45 +01:00
Vincenzo De Petris
fe4df702dd
Always generate base environment id when importing (#4378)
* Always generate base environment id when importing

* add unit test

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-30 17:53:49 +00:00
kreosus
3fe9981531
Filter by request (#5467) 2022-11-30 09:51:36 +00:00
Filipe Freire
95f4147df1 Bump app version to 2022.7.0-beta.6 and lerna package versions 2022-11-29 17:46:52 +00:00
Filipe Freire
a68edf5527 v3.6.1-beta.5 2022-11-29 17:46:35 +00:00
Jack Kavanagh
5c5b3d0eb2
move grpc logic into main folder (#5466)
* co-locate grpc methods

* replace call-cache with map

* type grpc request bridge

* remove json parse duplication

* remove reply abstraction

* further unpacking

* fix types

* fix tests

* align channel naming convention

* fix types
2022-11-29 15:53:45 +00:00
Filipe Freire
df81ad6671
[INS-2083] Prerelease smoke tests for cookie editor (#5450)
* Add cookie editor prerelease smoke test

* wrap up cookie-editor-interactions test
2022-11-29 14:35:23 +00:00
Filipe Freire
8ae4fe710d
Add support for OpenAPI v3.1 (#5459) 2022-11-24 14:24:57 +00:00
Jack Kavanagh
f81bfd68fa
removes right pane swagger preview (#5457)
* removes right pane swagger preview

* package lock

* remove preview from smoke tests
2022-11-24 14:11:09 +00:00
Jack Kavanagh
7f373fbcf7
fix tab selection (#5462) 2022-11-24 13:56:06 +00:00
James Gatz
32e788c49b
Update the design view to use data loading/routing (#5458)
* update design route

* Add button to generate a request collection from an api spec

* move the generate requests button to the bottom
2022-11-24 14:44:31 +01:00
Jack Kavanagh
2a8da1cf40
Refactor/spectral-lifecycle (#5456)
* remove abstraction

* co-location spectral initialisers

* move spectral to main

* move code mirror helper back

* fix lint

* add linting back

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-11-23 16:47:31 +01:00
Filipe Freire
5b2707cb76
Remove insomnia-importers, move it to insomnia (#5455)
* Remove insomnia-importers, move it to insomnia

* fix import
2022-11-23 12:09:18 +00:00
Alexandre ZANNI
81bc0576a3
add keywords to desktop entry (#5454)
fix https://github.com/Kong/insomnia/discussions/5452
2022-11-23 10:32:27 +00:00
Jack Kavanagh
4612ef75b1
fix response pane flash (#5453)
* fix typed get body functions

* remove console log

* fix response flash
2022-11-23 10:01:55 +00:00
Jack Kavanagh
fa2b879323
Simplify gRPC implementation (#5451)
* remove unused types

* remove cancel multiple abstraction

* decouple invalidateMany from db

* decouple db from redux loadMethods

* remove use proto file reload

* remove indirect function

* unpick action handlers

* remove any type indirection

* eliminate change handlers

* remove enum

* removeprepare grpc message

* remove nunjucks abstractions

* remove useSelectedMethod hook indirection

* fix types

* fix tests

* rename grpc req pane

* fix imports

* simplify pass at req pane

* fix lint

* remove ipc-renderer file

* remove findGrpcRequestState

* simplify reducer
2022-11-22 17:42:44 +00:00
Jack Kavanagh
1ec072065a
Refactor/request-loading (#5448)
* add invariant

* use local invariant function

* contain timer state within component
2022-11-22 14:58:16 +01:00
Filipe Freire
943c28cc12
[INS-2082] Add prerelease tests for Design interactions (#5415)
* initial commit

* Add prerelease tests for Unit Test feature

* Add test to import oa3 spec into design doc
2022-11-22 11:32:05 +00:00
kreosus
c7eeaa3a6c
Collection settings (#5447)
* WIP to open properties of a folder

* FIx Open properties of a folder test

* fix open propertites of a collection

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-21 17:30:50 +00:00
Nicholas Mata
7c43fd5ce7
Support for client certificate authentication during OAuth 2.0 (#4961) 2022-11-21 15:45:11 +00:00
Filipe Freire
b6475afc9a
remove insomnia-config, move it inside insomnia (#5444)
* remove insomnia-config, move it inside insomnia

* rename generate to generate-config
2022-11-21 13:33:18 +00:00
James Gatz
b18e8571a9
Add unit test routes (#5371)
* add unit test routes

* invariants

* remove unused function

* remove for loop

* fix types

* update to organization paths

* update delete action

* remove formatting

* typo

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2022-11-18 13:06:13 +00:00
James Gatz
321584cdeb
use a single instance for swagger ui (#5440) 2022-11-18 12:44:02 +00:00
James Gatz
4e05bcf488
upgrade vite-plugin-react to fix hmr not working properly (#5441) 2022-11-18 12:18:21 +00:00
kreosus
df2488ae48
[INS-2129] Add prerelease smoke test to open properties of a folder (#5423)
* WIP to open properties of a folder

* FIx Open properties of a folder test
2022-11-17 16:45:07 +00:00
Pavlos Koutoglou
5360781411 Bump app version to 2022.7.0-beta.5 and lerna package versions 2022-11-17 13:57:31 +00:00
Pavlos Koutoglou
60bf351d7b v3.6.1-beta.4 2022-11-17 13:57:16 +00:00
Jack Kavanagh
5b58ec5a3a
Remove/insomnia-common (#5434)
* remove insomnia-common

* fix type and schema gen

* fix lint

* fix schema

* fix partial schema
2022-11-17 13:51:50 +00:00
James Gatz
878481aeff
Layout UI updates (#5435)
* increase statusbar size

* horizontally center the breadcrumbs in app-header

* update new organization modal copy for logged out user
2022-11-17 14:39:35 +01:00
James Gatz
7988137f2c
upgrade vite to v3 (#5417)
* update type-fest imports

* move main css to html

* update electron imports

* update nunjucks imports

* use swagger ui dist

* remove commonjs-externals and add electron node require plugin

* update package

* fix misc.ts imports

* remove buffer from builtins since we use a package for it

* plugin docs

* Update packages/insomnia/src/main/window-utils.ts

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-17 13:37:53 +01:00
Jack Kavanagh
be8fa82a74
fix nunjucks regression (#5433) 2022-11-16 16:22:58 +00:00
James Gatz
22274f3dd1
properly match the previously stored path (#5432) 2022-11-16 15:56:01 +00:00
Jack Kavanagh
32ad4bb830
fix query grid (#5429) 2022-11-16 15:20:29 +00:00
Jack Kavanagh
8827e240ba
remove cookie package (#5427) 2022-11-16 15:07:49 +00:00
Jack Kavanagh
6a93d9d256
remove cancellable props (#5428) 2022-11-16 14:47:08 +00:00
Filipe Freire
76953bcb03
Fix insomniadev protocol deep link redirects (#5426) 2022-11-16 13:16:37 +00:00
Alexander Samsig
b126de0458
OpenAPI 3 Import: Add support for importing API Key Authentication as authentication (#5425)
Now imports API Key as the authentication scheme, if there is only one API Key security schema.
Otherwise it will preserve the existing behavior and use query parameters, or headers.
2022-11-16 13:01:14 +00:00
Jack Kavanagh
fc730b67e3
Remove/redux-loading (#5381)
* removes 4 redux actions

* fix lint

* fix tests

* fix tests (actually)

* grumble

* remove unused const

* request timer still needs state from somewhere

* remove redux from import logic

* simplfied import files

* simplfy imports again

* move to ui root

* remove unused

* drag and drop import

* remove console log

* fix lint

* key loading state on request id

* fix loading first state
2022-11-16 10:56:58 +01:00
Brian Goad
de9cee96d3
Fixes #2241 by adding a JSON Linting CodeMirror helper that renders the contents before linting (#5136)
* Fixes #2241 by adding a JSON Linting CodeMirror helper that renders the contents before linting

* remove global typing

Co-authored-by: jackkav <jackkav@gmail.com>
2022-11-15 18:00:51 +00:00
Filipe Freire
66142082e7
[INS-2151] Fix plugins installation for npm run dev (#5420)
* [INS-2151] Fix plugins installation for npm run dev

* rm PLUGIN_PATH constant

* fix bootstrap
2022-11-15 17:23:09 +00:00
Jack Kavanagh
308ad06488
listen to mode changes (#5422) 2022-11-15 17:07:35 +00:00
Filipe Freire
4fa2e4e81e
[INS-2119] Inso CLI logging parity (#5408)
* [INS-2119] Inso CLI logging parity

* fix bootstrap
2022-11-15 16:49:31 +00:00
James Gatz
473624a45e
better initials for organization names and proper detection of icons and emojis (#5418) 2022-11-15 16:27:30 +00:00
Jack Kavanagh
fb97b17e50
Remove/ramda (#5412)
* remove ramda

* wip groupby

* remove last ramda

* fix sort projects

* fix lowercase

* feeling like giving up

* clean up groupBy

* simplify dropdown

* yep ignore types

* fixed monkey settings

* remove ramda

* package locks
2022-11-15 15:42:40 +00:00
Pavlos Koutoglou
8ea7d0e761
Added functionality to send telemetry data. (#5416)
* Check if local storage has stored the activity

* Send telemetry data

* Remove comment

* Remove await
2022-11-15 15:21:01 +00:00
Filipe Freire
d34ac11498
chore - tidy plugins.tsx (#5419) 2022-11-15 14:37:30 +00:00
Jack Kavanagh
ea4698717d
Move/analytics to renderer (#5414)
* move analytics to renderer

* remove hack

* fix tests

* fix lint

* simplify analytics functions

* lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-15 14:53:55 +01:00
Jack Kavanagh
ef7f67cf5c
move insomnia-url helpers to src (#5389)
* remove insomnia-url package

* duplicate all that noise

* fix tests and decouple insomnia-cookies

* update package lock

* fix test
2022-11-15 11:12:45 +00:00
Filipe Freire
f24d1fa672
[INS-2149] fix type error on insomnia boot-up (#5413)
* [INS-2149] fix type error on insomnia boot-up

* filter out .

Co-authored-by: jackkav <jackkav@gmail.com>
2022-11-14 20:07:41 +01:00
Tuyen Pham
be217527f9
Change data-testId to data-testid (#5404) 2022-11-14 12:38:08 +00:00
kreosus
e5af9ba6b8
Improve Locators for new create HTTP test (#5406) 2022-11-14 09:10:19 +00:00
Pavlos Koutoglou
7eb3725781
Tabs accessibility (#4944)
* Create a wrapper Tab component

* Used the new Tabs component and remove the button from children from grpc-tabbed-messages

* Used the new Tabs component and remove the button from children from grpc-request-pane

* Used the new Tabs component and remove the button from children from response-pane

* Used the new Tabs component and remove the button from children from request-pane

* Used the new Tabs component and remove the button from children from git-repository-settings-modal

* Used the new Tabs component and remove the button from children from settings-modal

* Used the new Tabs component and remove the button from children from workspace-settings-modal

* Used the new Tabs component and remove the button from children from generate-config-modal

* Used the new Tabs component and remove the button from children from cookie-modify-modal

* Used the new Tabs component and remove the button from children from markdown-editor

* Use react-aria tabs instead of react-tabs

* Delete react-tabs dependency

* Use new tabs component and replace markdown-editor with styled-component instead of using less css

* Created query editor component with styled-components instead of using less css

* Update index.css

* Use new tabs component into cookie-modify-modal

* Use new tabs in general-config-modal

* Use new tabs in settings-modal

* Use new tabs in workspace-settings-modal

* Use new tabs in git-repository-settings-modal

* Use new tabs in request-pane

* Use new tabs in response-pane

* Use new tabs in grpc-request-pane

* Use new tabs in grpc-tabbed-messages

* Use new geury editor component and new tab implementation in websocket-request-pane

* Use new tabs in websockets-response-pane

* Change the package-lock.json file

* Remove className props from TabItemProps

* Fix rendering issue with tabs children and move action buttons above the nested tabs

* Added nested tabs option

* Added nested styling

* Made the grpc-tabbed-messages to be nested tabs

* Fix issue with styles into tablist

* Move less styles to styles component

* Fixed style issue with borders when tab is selected

* Fix styling issues with nested tabs

* Added aria labels for all tabs

* Fixed tab tests

* Fix issue with plugings test

* Remove the outline from selected tab

* Fix scrolling issue with some tab panels

* Remove outline from activity toggle

* Add failing test for the Declarative config and kong kubernetes

* Fixed issue with generate config modal into the panel

* docs and ws request body styling

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-11-11 19:38:30 +01:00
James Gatz
b4d0730158
Fix/delete remote project redirect (#5403)
* return an empty list if the project doesn't exist

* display the sync dropdown only for remote collections

* update sync dropdown styles for disconnected collections

* fix refetch the backend project on deletion
2022-11-11 11:31:09 +00:00
Arun Nalla
35ce5e91ee
fix: allow toggle between basic auth and request body for oauth2.0 creds settings (#5334) 2022-11-10 18:56:57 +00:00
kreosus
8a450c00d4 INS-2137 Create a new HTTP smoketest 2022-11-10 11:54:13 -06:00
Alexander Samsig
5095c60088
Add API Key auth (#5399)
* Add API Key auth - supports header / query param in both webrequest and websocket

* Add API Key auth for in cookie in both webrequest and websocket

Updated value of api key input to be masked
Extracted constants for API Key auth types

* add Postman importer for api key auth

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-10 14:37:18 +00:00
Brian Goad
171e6c2135
Fixes #5218, where nested environment variables on a sub environment don't always work (#5219) 2022-11-10 13:31:19 +00:00
Jack Kavanagh
cc3a7cbbda
move xpath query to insomnia src (#5388)
* remove xpath query package

* fix tests

* install types

* fix test
2022-11-10 13:13:02 +00:00
James Gatz
492a48927b
Add organization routes (#5395)
* Move page layout styles to page layout component

Co-authored-by: Pavlos Koutoglou <pkoutoglou@gmail.com>

* load organizations in root route

* update github stars button styles

* add app header

* add organizations navbar

* org model

* button xs size variant

* add statusbar

* update workspace card labels

* organization route

* update project view styles

* add account toolbar in header

* add project sidebar

* add workspace navigation

* add git sync dropdown

* guard against existing project

* update styles

* update modal styles

* guard against vcs and offline mode

* make new workspace modals cancellable

* remove unused test

* update delete project redirects

* add account settings option in account dropdown

* remove unused dropdown

* filter backend projects by existing workspaces

Closes INS-2127

* add sync dropdown for collections

* update dashboard tests

* fix lint

* fix rebase

* update styles

* fix horizontal layout resize

* fix duplicate modal action

* update app initialization code and remove logic from redux

* update views on login and clear the pull dropdown on project change

* fix prop error

* update tests

* redux test fix

* initialize the redux navigation state by the initial location

* validate previous location history entry or use default

* update analytics modal styles

Co-authored-by: Pavlos Koutoglou <pkoutoglou@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Mark Kim <mark.kim@konghq.com>
2022-11-10 12:11:21 +00:00
Jack Kavanagh
18f9b92ed6
move jsonPrettify to insomnia src (#5387)
* move jsonPrettify to insomnia src

* fix test
2022-11-10 06:47:27 -05:00
mod42
88b940321e
Additional option "skipAnnotations" for the export of spec (#5398)
* I added an additional option "skipAnnotations" for the export of spec. When we export the spec and the user wants to share the spec with others,
outside the organization, the annotations reveal sensitive information about the configuration of
the kong gateway, like client_ids and
clients_secrets. If the flag -s is set, all x-kong-*
annotations are removed. I also adjusted the tests.

* fix lint

* Fix ouput when not saving to file

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-09 16:29:26 +00:00
kreosus
95babda62e
Adding initial test for debug-sidebar (#5393)
* Adding initial test for debug-sidebar

* Add data-testids to interact with dropdowns better

Co-Authored-By: kreosus <59621250+kreosus@users.noreply.github.com>

* Rename testHandle to dataTestId

Co-authored-by: kreosus <kreosus@users.noreply.github.com>

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: kreosus <kreosus@users.noreply.github.com>
2022-11-09 14:34:34 +00:00
Filipe Freire
e4ad8954ba
[INS-2125] Fix workspaces without parentId missing (#5397)
* [INS-2125] Fix workspaces without parentId missing

* Fix tests?

* fix lint
2022-11-09 13:48:04 +00:00
Filipe Freire
26847abad5
[INS-2124] Fix Switching environments throws JSON parse error (#5394)
* Fix Switching environments throws JSON parse error

* tiny nitpick

* fix type-check
2022-11-08 11:12:09 +00:00
Filipe Freire
9d52b50984
[INS-2122] Fix Send/Connect test flakes (#5391)
* add check for ws urls before connecting to avoid flake

* add checks for oauth to avoid flake
2022-11-08 10:50:53 +00:00
Jack Kavanagh
129b7fca51
show introspection button more resilient to fetch (#5386)
* make show more resiliant

* add assertion that schema is fetched

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-04 17:53:28 +00:00
Jack Kavanagh
b19c4ec857
skip analytics in ci (#5385)
* skip analytics in ci

* fix incognito mode env var not working on build

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-04 17:32:12 +00:00
Jack Kavanagh
61e1a59faf
Fix/linux deep link (#5377)
* generate .desktop file

* allow only one single instance

* fix formatting

* remove focus hack

* rename and clean up open-url listeners

* remove second open-url listener

* add debug logging and second instance event

* comments

* fix typo

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-03 17:11:26 +00:00
Jack Kavanagh
68b6b6a7ae
fix on blur (#5376)
* update the root state

* use env ids

* ids continued

* fix types

* rename root to base

* remove did change

* fix on blur

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-11-03 12:47:05 +00:00
Filipe Freire
4606325e78
[INS-2118] Fix missing insomnia-plugin-default-headers for inso CLI (#5375) 2022-11-02 18:19:25 +00:00
Thiago Seus
782c05d872
Add aria-live and aria-atomic to make screen reader and other assistive technologies detect when the HTTP status changes (#5369) (#5370) 2022-11-02 17:37:17 +00:00
Filipe Freire
d2bfee8d87 Bump app version to 2022.7.0-beta.4 and lerna package versions 2022-11-02 15:05:46 +00:00
Filipe Freire
8bc11f2b89 v3.6.1-beta.3 2022-11-02 15:05:27 +00:00
James Gatz
7cc5c4f98a
fix: Type safe modals (#5368)
* add typescript generics to get modal options

* login and ask modal fixes

* fix git sync modal types

* add request type guards

* auth key row

* ask modal type fixes

* fix typings in state/show modal options

* fix protofiles modal

* fix request settings modal and bring back websocket settings

* allow partial repo in git repo modal

* update nunjucks modal to properly show the template editor

* fix account dropdown test

* fix code editor typing
2022-11-02 14:15:52 +00:00
Jack Kavanagh
34cba80275
Refactor: split editor and input (#5352)
* create new code input component

* remove unused props

* fix

* avoid ref

* remove multiline paste hack

* remove password type from code editor

* split

* listen for onChange/onPaste prop changes

* eliminate onBlur and onFocus

* remove handle

* remove code-input

* fix: update onBlur prop

* optional keyDown

* fix prettify by reverting to old logic

* remove 4 unused  one line editor handles

* onChange required prop

* remove auth input row test

* remove unused onClick

* remove raw viewer, make refs consistent

* unmount editors

* simplify onKeydown

* fix onblur
2022-11-02 13:13:33 +01:00
Jack Kavanagh
d9575f498c
reset error state (#5363) 2022-11-02 07:19:57 +00:00
Jack Kavanagh
47d78993b6
codemirror should update on some prop changes (#5361)
* codemirror should update on some prop changes

* remove input from onelineeditor

* remove forceEditor and new row on enter key

* remove brittle test
2022-11-01 14:18:57 +01:00
James Gatz
802e151f8e
remove environment-highlight color setting (#5357) 2022-10-31 11:59:38 +00:00
James Gatz
96487827bc
fix git clone not showing the document in project view (#5358)
* revalidate the data when cloning a document

* properly redirect to a design document
2022-10-31 11:32:23 +00:00
Jack Kavanagh
9d2cb34107
fix codemirror: check and gutter setting (#5354)
* fix check and gutter setting

* remove force focus

* remove row Ref

* ignore focus test

* remove onPaste hack
2022-10-31 10:00:26 +00:00
Jack Kavanagh
41e3ed8ab7
fix first click on req settings (#5351) 2022-10-28 16:23:29 +01:00
Filipe Freire
b503b54a31
Fix, bundle plugins no longer published on npm (#5348) 2022-10-28 15:50:55 +01:00
James Gatz
40d294e8ae
Feat/project route data loading (#5327)
* remove activity router

* add global error route

* make vcs a singleton

* move modals outside of root

* add project route data loader

* add project actions

* add rename/delete project actions

* lift data dependencies up and move modals

* add remote projects action/loader

* add overlay to duplicate modal and use invariant in actions

* use revalidate to refetch the route data on imports

* remove unused type checks

* more invariants and some renaming
2022-10-28 12:04:09 +00:00
kreosus
1a09035743
INS-2087 Prelease Test for Plugins (#5337)
Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>
2022-10-27 17:04:45 +00:00
Filipe Freire
d3bded4fe0
[INS-2078] Dashboard PreRelease tests (#5330)
* [INS-2077] Dashboard PreRelease tests

* Add create,rename,delete project test

* Add test for filter in the dashboard

* Rename/duplicate/delete collection & design tests
2022-10-27 17:49:45 +01:00
Jack Kavanagh
2bdd84ad22
make all packages private (#5339)
* make all packages private

* remove lerna json and publish scripts

* clean up npmignores

* remove major npm github ci logic
2022-10-27 17:55:30 +02:00
Jack Kavanagh
9f624deae0
Refactor/code-editor (#5272)
* code-editor fc

* add useEffect

* one line editor

* row first pass

* drag and drop is broken

* remove row drag and drop

* keyvalueeditor, no focus handling

* remove unused kvpeditor props

* remove autobind

* package lock

* remove decorators

* package lock

* kvp editor diet

* row diet

* one line editor diet

* sort props

* code editor diet

* inline toolbar

* move to right side of kvp

* combine codemirror options settings

* fix

* fix on mount

* polish

* remove lint toggle logic

* make additional claims plain text

* fix button alignment

* fix staging modal

* remove error

* remove placeholder

* minor fixes

* update tabpanel footer

* key value editor toolbar

* add toolbar to key-value editor

* update show/hide details button

* show error on copy as curl

* update onPaste logic to use a ref

* remove unused focus logic

* synchronise graphql features

* remove onInit prop

* fix defaultValue sync

* fix designer imports

* Revert "remove onInit prop"

* simplify gql editor

* simplfy again

* replace operationName

* whatever

* fix graphql editor

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

* fix query variable json handling

* fix focus

* fix root env update INS-2100

* remove unused

* fix filtering

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-10-27 13:11:06 +00:00
Arun Nalla
41320cdd4c
fix: parameter order for date-fns#differenceInMinutes (#5332)
* fix: parameter order for date-fns#differenceInMinutes

* fix: conditionally choose parameter order
2022-10-26 16:17:52 +01:00
Filipe Freire
c501ae9963
Add /delay endpoint to WS express server (#5326) 2022-10-26 08:38:10 +00:00
Arun Nalla
ae2d91c2de
fix: leave focus on send button instead of autochanging to url bar (#5325) 2022-10-25 14:09:38 +01:00
Antoine Jacquemin
d102de2850
Fix how path variables are escaped for Swagger (#5246)
* path escapte fix 

paths in swagger are not correctly escaped and won't be correct. You can try with following swagger:

openapi: 3.0.0
info:
 title: SampleAPI
 version: "1.0"
tags:
  - description: Sample API
    name: Sample Echo API
paths:
  /healthcheck/$echo:
    get:
      parameters:
        - in: query
          name: message
          required: true
          schema:
            type: string
          description: The echo message
      responses:
        "200":
          description: An echo message.
      summary: Return a echo message.
      operationId: getEcho
      tags:
        - Generate echo message
  /batchs(Material='{Material}',Batch='{Batch}'):
    get:
      parameters:
        - in: path
          name: Material
          required: true
          schema:
            type: string
          description: The echo message
        - in: path
          name: Batch
          required: true
          schema:
            type: string
          description: The echo message
      responses:
        "200":
          description: An echo message.
      summary: Return a echo message.
      operationId: getBatch
      tags:
        - Generate echo message
servers:
  - url: https://httpbin.org/anything

* Update test for new regex fix

* Update common.test.ts

* Update common.ts

* Update common.test.ts

* Update common.ts

* Update common.test.ts

* Update common.ts

* Patch-Regex-Text

* Update services.test.ts

* Update httpbin.expected.json

* Update link-example.expected.json

* Update petstore-expanded.expected.json

* Update petstore.expected.json

* Update request-validator-plugin.expected.json

* Update uspto.expected.json

* Update generate.js

* Update generate.js
2022-10-24 16:00:34 -04:00
Jack Kavanagh
38a943d0f3
Remove remaining autobind decorated components (#5321)
* html wrapper

* sidebar request group row

* time from now

* check for updates button

* toast

* plugins

* rename component

* fix plugin load

* add fix for the timenow delay

Co-authored-by: Mark Kim <mark.kim@konghq.com>
2022-10-24 17:28:03 +00:00
Jack Kavanagh
1bf7b7bc2b
refactor: transform git modals to fc (#5179)
* transform git modals to fc

* second pass

* add GitRepositorySettingsModal

* fixes

* tweaks

* sit sync dropdown second pass

* git branches second pass

* git staging second pass

* repo settings second pass

* fix types

* fix button color

* fix refresh
2022-10-24 17:39:14 +02:00
James Gatz
4ca4b54e96
add url shim for swagger-client issue (#5322) 2022-10-24 13:07:25 +02:00
Jack Kavanagh
2f76cb0c6d
Remove/debounced-input (#5308)
* first pass

* remove debounced input

* fix onPaste type errors
2022-10-21 15:01:50 +00:00
Jack Kavanagh
4f9027ad94
bump electron 21 (#5173)
* bump electron 20

* bump to 21

* use node 16.16

* remove and bump deps

* package.lock

* fix package lock

* try 21.0.0

* oops

* remove ts-node

* package locks

* fix redirect and eror handling

* remove console.log

* remove react 18 override

* fix import

* update react-virtual api

* bump node-libcurl and electron

* bump node-libcurl to 2.3.5-6

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-21 14:41:00 +00:00
Jack Kavanagh
043a6991ea
fix warning (#5315) 2022-10-21 14:06:58 +00:00
Jack Kavanagh
35108a0c0a
Refactor/fc-tag-editor (#5309)
* first pass

* second pass

* third pass

* fifth pass

* first fc pass

* fc second pass

* fix types
2022-10-21 13:50:18 +00:00
Jack Kavanagh
1d491548a0
Refactor/cookie-modals (#5307)
* cookie modal fc

* second pass

* cookie modify modal third pass

* third pass

* new cookie

* Rm : char

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-21 15:36:09 +02:00
James Gatz
adbea24657
Add app routes and upgrade react-router (#5304)
* upgrade to react-router 16.4

* inline loading indicator svg to avoid foc

* move app and wrappers to routes folder
2022-10-21 11:19:37 +02:00
Jack Kavanagh
24fe4ce24a
remove addIcon prop (#5312) 2022-10-20 16:36:49 +02:00
kreosus
ba39cbe955 Bump app version to 2022.7.0-beta.3 and lerna package versions 2022-10-20 10:57:32 +00:00
Jack Kavanagh
70dbaa73fa
webview fc pass (#5306)
* fc pass

* nitpick
2022-10-20 10:50:17 +00:00
Jack Kavanagh
52e2511624
set default maxRedirects to 10 and timeout to 30000 ms (#5216) 2022-10-19 17:16:35 +00:00
Jack Kavanagh
1e3e69771d
class->fc env editor (#5305)
* class->fc env editor

* rm console.log

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-19 15:51:37 +00:00
Jack Kavanagh
b1c70ee81d
modal->fc workspace env modal (#5300)
* extract workspace env modal

* env editor save on blur

* remove sub env

* remove sort

* remove sortable-hoc package

* fix types
2022-10-19 16:55:08 +02:00
Jack Kavanagh
9eaf12f7e8
modal->fc prompt (#5301)
* extract

* fix default value
2022-10-19 13:27:30 +00:00
Jack Kavanagh
91202d0a12
workspace duplicate, settings (#5267)
* workspace modals

* fix render loop in env modal

* simplify env modal

* unpick set active env

* simplify loading

* simplify

* reload subenvironment

* reload sub environments

* use selector

* revert workspace edit modal

* fix first click doesn't show

* fix type check
2022-10-19 12:56:51 +00:00
Jack Kavanagh
92b8b3baf1
modals->fc transform remaining (#5278)
* remaining

* inline

* state =>

* tweaks

* simplfy wrapper

* extract prompt modal

* fix hotkey

* remove duplicate modal

* isJSON as object arg

* remove dispatch

* tweaks

* more tweaks

* fix nunjucks modal

* last tweaks
2022-10-19 12:32:32 +00:00
Jack Kavanagh
02c1c130ff
variable editor class-fc (#4989)
* first pass

* remove react hacks and simplify
2022-10-19 12:40:45 +02:00
Filipe Freire
45845f7fe3
[INS-2051] Reorganize smoke tests README (#5264)
* [INS-2051] Reorganize smoke tests README

* Add images to smoke-tests readme

* Split CLI part of doc, rm notes

* Reorganize README a bit

* edit intro

* playwright badge
2022-10-19 08:58:49 +01:00
James Gatz
0b30be3f6b
Upgrade to react 18 (#5296)
* upgrade to react 18 and use new createRoot api

* fix types and remove excessive functions in wrapper-home

* update types with implicit children to PropsWithChildren

* fix: remove error objects as children

* remove excessive function from account.tsx

* remove excessive function from general.tsx

* update tests and remove deprecated @testing-library/react-hooks

* remove unused import

* update package-lock
2022-10-18 11:56:55 +00:00
Jack Kavanagh
99065dbc7e
Refactor/settings-modals (#5268)
* settings modals

* inline project settings

* simplify move/copy

* remove justCopied misclick

* find workspace

* remove addIcon prop

* fix note
2022-10-18 11:22:32 +00:00
Jack Kavanagh
bf040aca31
refactor: transform sync modals to fc (#5181)
* sync modals

* second pass

* some nits

* fix types

* include indeterminate checkbox

* use previous state setter

* fix req settings modal setStates

* fc sync pull button

* previous state

* fix staging target

* sync dropdown pass

* refresh branches modal state on show

* state readability tweaks

* fix prompt button double event

* fix branch modal target

* remove extra reload in history modal

* fix history modal

* remove logs

* extract refetch

* fix delete

* delete local and remote

* format

* revert local delete change

* current target

* staging modal

* fix lint

* fix useEffect flash

* add todo note
2022-10-18 10:22:18 +00:00
James Gatz
e71609df2b
upgrade to font-awesome v6 (#5295) 2022-10-17 15:21:49 +00:00
James Gatz
6c2c160f78
update account dropdown to display the user's name (#5294)
* update account dropdown to display the user's name

* remove unused circle button
2022-10-17 16:42:52 +02:00
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
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
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