Commit Graph

3872 Commits

Author SHA1 Message Date
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
db263e31df Merge branch 'release/2022.7.0-beta.5' into develop 2022-11-17 15:52:06 +00:00
Filipe Freire
21cbab54f2 keep NODE_OPTIONS 2022-11-17 15:08:14 +00:00
Filipe Freire
919c017e14 proper fix hopefully 2022-11-17 15:06:26 +00:00
Filipe Freire
81133fc31f fix 2022-11-17 14:43:04 +00:00
Filipe Freire
d3c42da82e fix 2022-11-17 14:25:21 +00:00
Filipe Freire
4c5e78830b forgive me father 2022-11-17 14:12:06 +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