Commit Graph

2395 Commits

Author SHA1 Message Date
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