Commit Graph

3940 Commits

Author SHA1 Message Date
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
Filipe Freire
67f1be735c
Fix changelog.yml deprecation warning (#5374) 2022-11-04 12:36:44 +01: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
ef451ef293 Merge branch 'release/2022.7.0-beta.4' into develop 2022-11-02 16:46:25 +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
Filipe Freire
ee90c5c06b
[INS-2105] Fix release-publish deprecation warnings (#5359) 2022-11-02 08:40:36 +00: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
Filipe Freire
ffaa74e88b
Bump version of release-build dependency (#5342) 2022-10-31 08:54:01 +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
Jack Kavanagh
d270573444
remove tag pushing (#5345) 2022-10-28 12:49:45 +00:00