Commit Graph

2367 Commits

Author SHA1 Message Date
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
James Gatz
4817b59d4e
update use-vcs hook to use a single instance and await changes (#5257) 2022-10-11 09:35:59 +00:00
Filipe Freire
5bba2e9545
[INS-2022] Initial exploration multiple test projects (#5244)
* Initial exploration multiple test projects

* Replace duplicate scenario with one to be filled in

* Simplify number of playwright project configs

* Fix testMatch setting on playwright config

* Edit github actions to distinguish between CI and Release runs
2022-10-11 08:56:12 +00:00
Jack Kavanagh
7ef73dfb2e
add rename options to request context options (#5256)
* add rename folder and request context options

* Add rename dropdown option for WS requests

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-11 08:27:06 +00:00
James Gatz
54d995ec34
Add filters for the ws event log (#5243)
* add filters for the ws event log
2022-10-10 15:24:46 +00:00
kreosus
a2d503da08 Bump app version to 2022.7.0-beta.1 and lerna package versions 2022-10-06 13:38:10 +00:00
James Gatz
58fd810dc2
Fix/ins 1660 tooltip issues (#5239)
Add react aria to tooltip and move to fc
2022-10-06 13:19:09 +00:00
Jack Kavanagh
d5ec27372c
fix duplicate error response after upgrade (#5241)
* remove error response after upgrade

* include ENOTFOUND
2022-10-04 22:24:57 +00:00
Jack Kavanagh
898d24c4ba
Refactor/wrapper-tsx-fc (#5242)
* wrapper-fc squashed

* undrill setFilter

* extract hooks

* eliminate wrapper.tsx
2022-10-04 21:33:18 +00:00
Mark Kim
edad158d65
[INS-1979] Add disconnect dropdown (#5236)
* add disconnect dropdown

* remove console

* add style fix for ux

* add e2e tests

* rename

* Simplify the smoke websocket smoke tests

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-04 09:49:41 -04:00
Filipe Freire
b90b5c993e
Chore: bump playwright to 1.26.1 (#5240) 2022-10-04 08:47:22 +00:00
Jack Kavanagh
9be7e05000
app tsx fc (#5235)
* fc rebase

* extract render listeners from app

* organise global shortcuts

* show logo in index.html

* import listeners

* add loading indicator and split shortcuts

* Simplify GitVCS/VCS instance creation

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-10-03 17:24:38 +02:00
Jack Kavanagh
a94c488410
add loading indicator (#5237) 2022-10-03 14:57:27 +00:00
Jack Kavanagh
37a6c83c5a
[INS-2017] add ws subprotocol support (#5238)
* add protocol support

* add test protocol
2022-10-03 11:19:26 +01:00
James Gatz
fac2627d69
Replace the KeyboardBinder with hooks (#4937)
* Add keyboard handler hook

* use the hook in all functional components

* update package-lock.json

* split global keys from app.tsx

* flatten gql explorer

* gql explorer fc

* oops

* use fn updater in setState

* remove keyboard-binder from gql explorer

* graphql-editor to fc

* remove keyboard binder from graphql-editor

* req switcher modal fc

* fix show hide modal

* hotkey hook naming pass

* modal fc

* remove unused onKeyDown prop from modal

* use the label instead of key name

* request-url-bar send request with cmd+d

* stop propagation in modals

* cleanup

* use the keybind hook on response viewer

* use the keybind hook on action-bar

* use document.body for handling dropdown navigation via keyboard

* use global shortcuts for request switcher

* use ModalHandle

* remove unused closeOnKeyCodes

* remove KeydownBinder from modal

* remove KeyDownBinder class

* remove auto-focus in modal component

* define cascade for keymaps in code-editor

* fix key-combination-modal

* remove onCancel and fix export

* remove unused ref

* fix types

* remove recursive hack on modals

* nitpick: naming

* checkpoint - 1

* fix hot key labels

* checkpoint

* some more type fixes

* simplify shortcuts.tsx and fix types

* add key combo types

* add key combo fc

* fix type

* rename definition to description

* remove close modal and close dropdown hotkeys

* add migration for removing hotkeys

* mock the keydown-binder in the test

* use a function to get the element to bind

* refactor search

* allow autocomplete on editor

* add event.code in keyboard keys

* fix lint

* remove verbose introspection modal

* use the new keybinder in request-switcher-modal

* typo in gql editor

* fix esc on editable

* use dot property access

* stop editor handling escape keys

Co-authored-by: jackkav <jackkav@gmail.com>
2022-09-28 16:55:11 +00:00
kreosus
123253811c Bump app version to 2022.6.0 and lerna package versions 2022-09-26 16:08:47 +00:00
Filipe Freire
e4e6e673be
[INS-2009] Fix Clear all responses for WebSockets (#5223)
* [INS-2009] Fix Clear all responses for WebSockets

* fix lint
2022-09-26 16:00:19 +00:00
James Gatz
0c8ab6971e
update the query tab panel when we import params from url (#5224) 2022-09-26 14:23:03 +00:00
kreosus
dbc30c58cb
[INS-1819] Added a connected banner to requests headers (#5220)
* initial push

* add nowrap hack

* fix overflows in the tab panels

* fix scrollable hack in request-headers

* remove second scrollbar in ws request query editor

Co-authored-by: Mark Kim <mark.kim@konghq.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-09-26 14:54:23 +01:00
Filipe Freire
29805590b2
[INS-2004] Fix missing WebsocketTag on request switcher (#5217) 2022-09-23 16:22:56 +00:00
Jack Kavanagh
e1e156efa0
fix bug in query toggles (#5215) 2022-09-23 16:28:17 +02:00
Mark Kim
07833abcb5
squishy squash connect and send (#5204)
Co-authored-by: jackkav <jackkav@gmail.com>
2022-09-23 11:47:20 +00:00
James Gatz
883753a7df
Websocket request settings (#5209)
* add description field in websocket request model

* add websocket request settings modal

* add settings option in the ws request dropdown

* add docs tabpanel in websocket request pane

* extend hotkey for request settings to handle ws requests

* wip todo fix stale request value

* add store/send cookies and move/copy to workspace

* merge settings modals into one

* add followRedirects option in ws

* update followRedirects type on request model

* fix followRedirect default setting

* respect the max redirects global settings

* cleanup
2022-09-23 12:59:27 +02:00
Filipe Freire
d9e70955b6
Fix copy WS request pane Intro link (#5211)
* Fix copy WS request pane Intro link

* Update packages/insomnia/src/ui/components/websockets/websocket-response-pane.tsx

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

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-09-22 23:40:00 +00:00
Filipe Freire
6ad14d4e66
Fix copy for WS empty state pane (#5208) 2022-09-22 11:52:36 +01:00
David Marby
814791f9f1
Send and store cookies for websocket requests (#5205)
* Send and store cookies for websocket requests

* Lowercase for consistency
2022-09-22 10:48:43 +02:00
James Gatz
5c109ac496
Use new unique keys to update the design editor on git sync updates (#5202) 2022-09-21 09:43:20 +00:00
Jack Kavanagh
e83badf767
fix: url bar auto-focus (#5199)
* connect unique key hack up to focus useEffect

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-09-20 12:44:47 +00:00
Jack Kavanagh
8c7d74a0c9
remove always rendered tabs (#5198) 2022-09-20 11:07:51 +00:00
James Gatz
b3c3c9b594
use fromSync true to indicate pasting from url should refresh the ui (#5195) 2022-09-19 11:52:44 +01:00
Mark Kim
d28d8cafb6
[INS-1976] Adding Placeholder Pane (#5189)
* adding Placeholder Pane

* Update packages/insomnia/src/ui/components/wrapper-debug.tsx

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2022-09-16 14:30:43 +00:00
Jack Kavanagh
bd58dc9241
fix db->database (#5188) 2022-09-16 14:00:08 +00:00
James Gatz
9857ee8712
Force refresh cleanup (#5184)
* remove forceRefreshCounter from app.tsx

* simplify refresh counter for ws request pane

* remove forceRefreshKey from remaining panes

* remove unused nunjucks key

* cleanup forceUpdate drills

* undrill handleSetActiveResponse

* put restore back in

* more uniqueness

Co-authored-by: jackkav <jackkav@gmail.com>
2022-09-16 14:56:41 +02:00
Jack Kavanagh
fbf2fde422
Refactor/remove-react-hack-mime-type (#5183)
* undrill update mime type

* use content type as a key
2022-09-15 11:40:02 +02:00
Jack Kavanagh
dc56947574
websocket team sync (#5180)
* enable team sync in ws request

* sync payload

* add default payload name

* make git sync work

* fix test

* hrmph

* fix failing nedb test

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-09-15 08:16:28 +00:00
Mark Kim
bbb47524a7
[INS-1804] Add Query Tab for WebSocket (#5177)
* add query tab

* clean

* add disabling functionality

* Update packages/insomnia/src/ui/components/websockets/action-bar.tsx

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

* Update packages/insomnia/src/ui/components/websockets/action-bar.tsx

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

* Update packages/insomnia/src/ui/components/websockets/action-bar.tsx

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

* add renaming to resolve conflicts

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-09-14 14:58:48 +00:00
Mark Kim
f7ca6c1992
[INS-1954] Fix message being removed when switching environments (#5178)
* add fix for environment var changes

* add suggested changes
2022-09-14 14:14:55 +00:00
Jack Kavanagh
111a7c8033
fix copy (#5176) 2022-09-14 07:03:40 +00:00
Mark Kim
560bfbe37d
[NO-TICKET] Add style for enabled status (#5162)
* add style for enabled status

* Update packages/insomnia/src/ui/components/websockets/websocket-request-pane.tsx

Co-authored-by: Filipe Freire <livrofubia@gmail.com>

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-09-13 17:42:50 +00:00
Jack Kavanagh
2e151a43e8
show ws connection state in sidebar (#5174)
* show ws spinner

* use green circle

* fix flashing of indicator on sidebar

* use selector for setActiveRequest in sidebar

* use selector for duplicate request in sidebar

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-09-13 14:35:43 +00:00
James Gatz
862ab2acda
remove white space from event log view (#5175) 2022-09-13 15:52:36 +02:00
David Marby
09471be1a1
Hide the github stars for logged in users (#5172) 2022-09-13 10:31:42 +00:00
James Gatz
7c4640de62
add json prettify button (#5171)
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2022-09-13 08:30:15 +00:00
Jack Kavanagh
a7901bdaac
make focus consistent with http request (#5169)
* make focus consistent with http request

* refactoring pass

* fix disconnect

* fix keydown handling
2022-09-13 09:04:14 +01:00
Jack Kavanagh
f325b94e73
fix drag and drop and sort (#5168) 2022-09-12 14:13:05 +00:00
Filipe Freire
451e5fbbaa
[INS-901] Empty state for Dashboard (#5157)
* [INS-901] Empty state for Dashboard

* add typings

Co-authored-by: Mark Kim <mark.kim@konghq.com>
2022-09-09 22:13:35 +00:00
James Gatz
0373bb578b
Initial WebSocket support (#5043)
* [INS-1697] Create WebSocket Request (#5041)

* add fail safe

Co-authored-by: Mark Kim <mark.kim@konghq.com>

* Websockets IPC API (#5044)

* add url to ws-request model

* fix webSocketRequest typo and add url

* add websocket api and expose it through preload ipc

* add typings

Co-authored-by: Mark Kim <mark.kim@konghq.com>

* [INS-1701] Create/Close Websocket Connection (#5046)

* add websocket action bar and its components

* remove comments

* clean up

* reflect on the electron api

* remove unused files

* import name change

* add styling

* remove commet

* add suggested changes

* remove default value

* Add WebSocketRequest to sidebar and update types (#5048)

* [INS-1700] Delete Websocket Request (#5055)

* add websocket actions dropdown

* add actions to websocket request in sidebar

* [INS-1703] Display WebSocket messages - first pass (#5054)

* Update event types to improve inference

* Update websocket response pane to fetch/subscribe and display the events

* [INS-1693] Add WS echo server for smoke tests (#5050)

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>

* fix sidebar unit tests (#5064)

* [INS-1776] adds `ws` dependency explicitly (#5066)

* [INS-1702] WebSocket Send Message (#5052)

* add initial changes for websocket message

* add abstraction for db operation and websocket operation

* remove console

* add rename

* add basic testing

* add basic testing

* add unit tests

* add form event type

* add comments

* disallow exporting context directly

* add suggested changes

* refresh the query

* using useDeepCompareEffect

* rename variable

* add mock

* clean up

* clean up

* correct the file name

* add some changes

* removing nedb-context and its hooks

* remove database changes for event sending

* [INS-1778] Fix Global Module Typing Issue (#5065)

* fix typings

* add jest import

* [INS-1703] View WebSocket Messages (#5074)

* save changes

* add styles and move files around

* remove unused code

* clean up some components

* add clean up

* add timestamp component

* add unit tests

* add case

* add style changes

* [INS-1786] WebSocket headers tab (#5080)

* first ui pass

* extract and wire up bulk editor

* raise ready state, move send

* add upgrade header debug logs

* can pass header to websocket upgrade

* implement readOnly headers

* add upgrade event and sent headers

* clean up

* fill out http upgrade into the event

* change upgrade message

* read only headers while connected

* remove upgrade event

* revert bulk editor change

* fix header editable toggle

* add nunjucks todos

* improve readOnly implementation

* disable codemirror/nunjucks for websocket headers

* take calculated headers out of the data model

* move hardcoded default headers down the tree

* fix request url rendering issue

* removed spammy warning

* clarify prop name

* refine pair typing

* change placeholder

* remove readOnly header property

* fix readOnly header layout

* Update packages/insomnia/src/ui/components/dropdowns/websocket-request-actions-dropdown.tsx

* Show HTTP->WS upgrade (handshake) (#5091)

* first pass as event

* add handshake ui

* add timeline tab

* simplify ResponseTimelineViewer

* transform res debug modal to change timeline props

* decouple timeline fetching from timeline component

* timeline ui pass

* record headers in request and response models

* can view timeline history

* write timeline to file

* some timeline

* can persist event logs

* put interface beside usage

* add note

* add event log history

* remove table event row

* tidying up

* make ws colors match

* enable multiple open connections

* close open connections at app exit

* remove old test

* Update packages/insomnia/src/models/request-version.ts

* fix type

* default readystate

* fix preview css scroll

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

* INS-1788: Add control flow to improve responsiveness. (#5094)

* INS-1788: Add control flow for responsiveness.

This prevents events from flooding the UI thread entirely.

* Add additional code comments.

* fixup: webSocketEvent -> webSocketEvents

* display response headers (#5102)

* Show errors in timeline (#5100)

* remove unused context provider

* show errors in event tab

* updates timeline with message and close

* clean up

* show errors in timeline

* fix WebSocket capitalisation

* make timeline reader specific to ws

* write outbound messages to the timeline

* fix type

* Make the head row sticky in the events table (#5103)

* Add client certificate support to websocket connections (#5112)

* [INS-1810] close connection on response change (#5104)

* close ws connection when response is changed

* add delete logic for the queue mapg

* set error response to active response

* useRef for CodeEditor

* extract closeRequest

* use requestId to eliminate inconsistencies

* refactor extract clean up methods

* timeline feedback

* change type annotation

* fix type

* Revert "use requestId to eliminate inconsistencies"

This reverts commit 98335a927e.

* [INS-1803] show cookie tab in response pane (#5105)

* hard code sending and storing to true

* make tab naming consistent

* hard code cookie settings to false

* fix headers isDisabled bug

* [INS-1805] Add Auth Header Tab (#5115)

* add minimal change to the auth flow

* add disable state

* adding dropdown disable

* simplify reducer

* fix lint

* [INS-1839] Rename tab Header everywhere (#5119)

* can import/export websocket requests (#5122)

* use responseId for timeline name (#5124)

* add react-virtual to virtualize the event log view (#5126)

* [INS-1833] Include Auth Header in Headers mapping for WebSocket Connection (#5120)

* add auth to the header

* remove console log

* remove unneeded async

* add success redirect logic to websocket server

* add unexpected-response handler

* remove digest auth (#5129)

* remove auth header and outbound message timeline (#5130)

* [INS-1840] Add Connected Status Label and Extras (#5131)

* add status related changes

* text label change

* WebSocket ipc typing proposal (#5125)

* make consistent with main bridge

* rename webSocket

* remove deviated mock

* use consistent arrow function defintions

* Update packages/insomnia/src/main/network/websocket.ts

* Set the environment for websocket responses (#5132)

* first pass (#5123)

* [INS-1843] Add more checks to WS smoke test (#5138)

* Fix failing websocket smoke test

* Add remaining websocket smoke server endopints to fixtures

* Add checks for basic-auth, bearer and redirect

* Rm assertion

* can select payload type (#5133)

* Implement nunjucks rendering for websocket urls, authentication, headers and urls (#5134)

* fix  websocket->webSocket (#5142)

* bug fix (#5144)

* INS-1844: Implement basic event view functionality. (#5146)

* INS-1844: Implement basic event view functionality

* CSS fix to align Preview button with tab buttons.

* Reverse the order of WebSocket events (#5148)

* Reverse the event log order in the view and subscribe to messages after the latest

* WebSocket response model (#5147)

* init websocket-response model

* add websocket response model

* remove unused timeline getter

* remove unused functionality from the ws-response model

* can select and save payload message and preview mode (#5143)

* [INS-1838] Add Empty State (#5140)

* add empty state

* use the empty state pane

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

* Bug/stabilise-ws-fetch-method (#5152)

* just poll

* remove cts and eventlog channel

* Fix/nitpicks (#5156)

* remove unused names

* fix copypasta icon

* ensure all subcompnent drop state on request change

* move empty state to response pane

* add websockets to quick switch (#5159)

* [INS-1800] Remove value validity check in the WebSocket headers (#5154)

* remove valid value check in the headers

* add header name filtering

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Mark Kim <mark.kim@konghq.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
Co-authored-by: John Chadwick <86682572+johnwchadwick@users.noreply.github.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-09-09 14:53:28 +00:00
Mark Kim
1338f211dc
add plugin hub link (#5155) 2022-09-09 10:40:22 +01:00
dependabot[bot]
771fb42c8b
Bump vite from 2.9.1 to 2.9.13 in /packages/insomnia-components (#5121)
* Bump vite from 2.9.1 to 2.9.13 in /packages/insomnia-components

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.1 to 2.9.13.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.13/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Run bootstrap

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-09-06 09:17:55 +00:00
kreosus
674874e3ac Bump app version to 2022.6.0-beta.4 and lerna package versions 2022-09-01 12:08:01 +00:00
nHuebner
0ade973590
fix: set default header on isomorphic-git to fix BitBucket and AWS CodeCommit git sync (#4865)
* fix: set default header f

Set deafult header for isomorphic-git httpClient.
Deafult behaviour for cli git command adds "Accept: */*" header,
to mimic this behaviour an defaultGitAcceptHeader will be set and merged with optional provided config headers.

#2220

* fix: change default header behaviour

faulty behaviour of merge with config headers, so currently no merge with config.headers

* Fix bug where we always only send the Accept header, and miss other headers

Co-authored-by: nHuebner <nico.huebner.1985@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-08-30 13:16:56 +01:00
kreosus
a662edefd1
fixes bug (#5107) 2022-08-25 16:48:01 +01:00
kreosus
02f507d745 Bump app version to 2022.6.0-beta.3 and lerna package versions 2022-08-25 12:30:08 +00:00
Filipe Freire
854c08a76e Bump app version to 2022.6.0-beta.2 and lerna package versions 2022-08-18 12:23:48 +00:00
kreosus
45ad527e88
Changed dropdown menu to have Request Collection on top of list. (#5090)
Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>
2022-08-18 06:42:04 +00:00
David Marby
e724dd78a5 Bump app version to 2022.5.1 and lerna package versions 2022-08-17 10:46:46 +00:00
Filipe Freire
2b23d68318
[INS-1789] Fix issue preventing selection of custom HTTP methods (#5086) 2022-08-17 10:40:58 +00:00
David Fluck
a3fa6ca87f
Revert "only build sr when used (#4772)" (#5075)
This reverts commit 70f8e7fbf9.
2022-08-15 14:15:30 -04:00
brian
6f227ffa11
Fix an issue with URL encoding on cURL imports (#5006)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-08-12 13:53:58 -04:00
David Marby
ebe5fffd67
Remove unused sync graphql calls (#5057) 2022-08-12 12:48:14 +00:00
kreosus
aec2bd1758 Bump app version to 2022.6.0-beta.1 and lerna package versions 2022-08-11 19:06:36 +00:00
Filipe Freire
93d6822b17
[INS-1779] Fix send and download not working without environment selected (#5071) 2022-08-11 11:49:20 -07:00
Filipe Freire
0435188220
[INS-1668] handle multiple security requirement objects (#5047)
* [INS-1668] handle multiple security requirement objects

* Add fixtures to test out multiple api keys
2022-08-05 11:01:38 +00:00
Filipe Freire
b72c923746 Bump app version to 2022.5.0 and lerna package versions 2022-08-02 16:25:13 +00:00
Dimitri Mitropoulos
4414005b9e
[INS-1724] creating a gRPC request should activate that request (#5037) 2022-08-02 09:19:14 -04:00
Filipe Freire
08ae04f241 Bump app version to 2022.5.0-beta.7 and lerna package versions 2022-08-02 10:05:29 +00:00
James Gatz
313d72c40d
Fix pinning a request with the keyboard shortcut (#5034) 2022-08-02 09:53:21 +00:00
kreosus
b9eaffe8fb
This commit removes the focus from sign out to sync workspaces when pressing enter (#5028) 2022-08-01 18:51:04 +02:00
James Gatz
9922366cae
only handle send on enter in request-url-bar (#5031) 2022-08-01 15:37:09 +00:00
James Gatz
e4e674df8f
move keyboard shortcuts to global listener in url-bar (#5030)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>
2022-08-01 15:02:46 +00:00
James Gatz
250ffa49e4
update the dropdown-list style when the uniqueness key changes (#5029)
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>

Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>
2022-08-01 14:37:14 +00:00
James Gatz
f2bf39a2d9
Use null value to set "No environment" (#5027) 2022-08-01 11:27:45 +00:00
Dimitri Mitropoulos
0aca9717d9
[INS-1711] regression: fixes lazyWithPreload types (#5025) 2022-07-29 12:10:16 -04:00
Dimitri Mitropoulos
a94d990f3b
INS-1713 fixes content-type editor sync (#5024) 2022-07-29 15:06:15 +00:00
Dimitri Mitropoulos
2ecd950122
[INS-1709] hotfix: fixes missing sync dropdown (#5022) 2022-07-29 10:39:18 -04:00
Dimitri Mitropoulos
892344db84
hotfix INS-1712 fixes duplicate request from dropdown (#5023) 2022-07-29 09:55:15 -04:00
Dimitri Mitropoulos
fedf3ecca4
INS-1692 removes document preview toggle (#5020) 2022-07-28 23:46:02 -04:00
James Gatz
e76735c709 Bump app version to 2022.5.0-beta.6 and lerna package versions 2022-07-28 13:48:13 +00:00
Daniel Stone
fa7dd44d8c
Fix #4797 request switcher auto-focus from CodeMirror (#5002)
Fixes the input `.focus()` method call. The simplest fix was to revert the change in 3cf464d059.

There do not seem to be any new problems in the current application from reverting this commit's relevant changes, indicating that the original cause of the bug is no longer present.
2022-07-28 11:13:01 +00:00
Jack Kavanagh
1a464446b0
[INS-1695] Fix Show Keyboard Shortcuts modal not opening (#5016)
* fix register

* fix modal register

* remove type
2022-07-28 10:38:47 +00:00
Jack Kavanagh
6399a971b3
Eliminate wrapperProps (#4979)
* unwrapper props

* undrill collapse and dupe group

* undrill togglePin

* chop up wrapper props

* eliminate more drills

* undrill generate code modal

* undrill setactiverequest

* undrill copyAsCurl

* undrill updateDownloadPath

* undrill setpreviewmode

* undrill sidebarsort

* undrill sidebarfilter

* undrill SetActiveResponse

* undrill bulk settings toggles

* remove handleShowRequestSettings dead code

* undrill show cookie modal

* undrill remove workspace

* undrill send and sendanddownload

* undrill body-editor

* reconcile name drift

* undrill updateRequest

* fix lint

* fix(?) request send hotkey

* push sidebarChildren and dlPath down the tree

* undrill activeworkspacemeta and environments

* fix rebase mistake

* remove comment

* fix ts ignore and naming

* fix keydown binder

* restore render hack and fix delete

* move setActiveEnvironment to wrapper

* forwardRef: true

* fix send request without env in redux

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-28 09:40:22 +00:00
Filipe Freire
78536b142a
chore: Fix package-locks (#5015) 2022-07-28 08:29:31 +00:00
dependabot[bot]
fae0bb40a9
Bump glob-parent from 5.1.1 to 5.1.2 in /packages/insomnia-inso (#5014)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 07:27:42 +01:00
John Chadwick
585ad9e46d
Move login flow to accounts website. (#4964)
* INS-1562: Allow fetching data-uris for fast base64

* INS-1562: Add insomnia-api-client dependency.

* INS-1562: Implement delegated login flow

* import named react imports directly (like rest of app)

* Fixes.

* Error handling improvements.

* Revert to using @sentry/electron inside renderer.

* Add break in command switch.

* Better support for re-auth prompts.

* Minor styling improvement.

* Jest fixes.

* Simplifications, fix occasional weirdness

* Update package-lock.json

* *facedesk* Fix URL copy!

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-07-27 20:55:18 -04:00
Dimitri Mitropoulos
9df9b9a457
[INS-1517] adds GitHubStarsButton (#5009)
* adds GitHubStarsButton

* adds incognito mode functionality

* adds segment

* update: only show stars on dashboard

I missed a comment on the ticket

* cancel fetch if component is no longer mounted

* new design

* change footer link (per request) now that the same link's in the header

* inlines links components per review feedback

* adds caching for fetched value to overcome over-rendering
2022-07-27 13:25:33 -04:00
Mark Kim
f877b040c1
fix: return the input focus back after sending a request (#4978)
* fix focus back

* add fix for blur on dropdown trigger button in request url bar

* add useCallback

* add useCallback

* add useCallback

* fix handleSendAndDownload from prev itteration

* add requested changes

* fix focus back

* add fix for blur on dropdown trigger button in request url bar

* add useCallback

* add useCallback

* add useCallback

* fix handleSendAndDownload from prev itteration

* add requested changes

* fix string mistake

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-26 16:27:21 -04:00
James Gatz
199cc8abea
Chore/response viewer fc (#5005)
* update response viewer to fc

* use key to update the component instead of refreshing through refs
2022-07-26 15:50:12 +02:00
Pavlos Koutoglou
ae2e2058ed
Prompt button to fc component (#4983) 2022-07-26 14:24:06 +02:00
Marco
8202b2e59f
feat: add link to Azure DevOps access token docs (#4973)
* feat: add link to Azure DevOps access token docs

* fix lint

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-07-25 15:04:53 +00:00
Mark Kim
e648f15820
refactor: convert settings-modal to functional (#4991)
* add modal fc conversion

* clean up

* Update packages/insomnia/src/ui/components/modals/settings-modal.tsx

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

* Update packages/insomnia/src/ui/components/modals/settings-modal.tsx

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

* Update packages/insomnia/src/ui/components/modals/settings-modal.tsx

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

* add requested changes

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-07-25 10:35:25 -04:00
Jack Kavanagh
7ab8882729
speceditor-sidebar class->fc (#4987)
* first pass

* fix type

* eliminate state
2022-07-25 12:58:10 +00:00
Jack Kavanagh
224e5d0842
request-group-row/tree class->fc (#4990)
* first pass

* and tree

* inline incremented string
2022-07-25 12:07:24 +00:00
Jack Kavanagh
96bd20ad86
fix e2e test/consistent buttons (#4999)
* fix e2e test/consistent buttons

* fix checks

* double test timeout
2022-07-25 11:34:34 +00:00
Jack Kavanagh
9ef02c48cc
WrapperProps: decouple page layout (#4994)
* undrill pane and sidebar postions

* simplify sidebarHidden
2022-07-25 10:53:25 +00:00
David Marby
c15c05bdbb
Remove reference to Insomnia Plus (#5000) 2022-07-22 15:49:13 +00:00
Jack Kavanagh
e3857221c0
Refactor/shortcuts fc (#4986)
* first pass

* useCallback
2022-07-22 11:13:01 +00:00
Jack Kavanagh
ac166158c8
response pane class->fc (#4982)
* first pass

* remove old

* remove delete drill prop

* remove two more drills

* two more drills

* remove one drill

* constify

* two more drills

* remove preview mode get/set drills

* undrill exportAsHAR

* undrill debug response download

* undrill prettify option

* save ipc for next pass

* fix delete response

* make delete function uniform

* address feedback comments
2022-07-22 09:52:00 +00:00
Jack Kavanagh
4d82d4ddb7
account class-fc (#4988)
* first pass

* simplify

* use FormData as state

* address review comments
2022-07-22 10:25:00 +01:00
dependabot[bot]
30f3eb0520
Bump glob-parent from 5.1.1 to 5.1.2 in /packages/insomnia-testing (#4996)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-22 09:53:52 +01:00
David Fluck
e930140bd0 Bump app version to 2022.5.0-beta.5 and lerna package versions 2022-07-21 17:33:22 +00:00
Dimitri Mitropoulos
4be33b6bbe
undoes hotKeyRegistry prop drilling (#4984) 2022-07-21 13:43:30 +02:00
Jack Kavanagh
581dd3d9eb
remove lazy (#4981) 2022-07-19 13:00:01 +00:00
Jack Kavanagh
e49cd9bf9c
sidebar children class->fc (#4966)
* transform

* nest components to remove drills

* sort props

* rename overloaded children prop

* check for the length of children in request-group-row

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-19 12:26:49 +00:00
James Gatz
526bfc35c8
Refactor the Dropdown into a function component (#4932)
* add unit test for dropdown component

* refactor dropdown to function component wip

* use useLayoutEffect for updating the position

* update types to use DropdownHandle

* remove unused forcedposition

* remove dropup

* add warning about dropdown container

* add useCallback/useMemo

* re-export the container id for tests

* split the state
2022-07-19 13:58:25 +02:00
Mark Kim
5f250334f6
refactor: convert markdown editor to functional (#4903)
* convert markdown editor to functional

* add requested changes
2022-07-19 00:16:03 -04:00
Pavlos Koutoglou
7447c30340
Refactor the Button into a function component (#4945)
* Refactored the button component to be function component

* Remove onDisabledClick prop

* Chang prop distraction and use PropsWithChildren type
2022-07-18 21:28:52 +00:00
Jack Kavanagh
d98d61d30c
gql explorer type class->fc (#4958)
* second pass

* fix lint
2022-07-18 10:38:37 +00:00
Jack Kavanagh
ddd09c64eb
Markdown preview class->fc (#4956)
* transform

* remove debounce prop and handle nulls
2022-07-18 12:12:11 +02:00
Jack Kavanagh
1bef8ac364
workspace dropdown class->fc (#4948)
* first pass

* simplify

* useCallback
2022-07-14 17:45:36 +00:00
kreosus
68541bdab9 Bump app version to 2022.5.0-beta.4 and lerna package versions 2022-07-14 14:02:53 +00:00
Dimitri Mitropoulos
537b0bcb95
Removes indirection for key hotkey codes (#4957)
* removes defineHotKey

* removes keyBinds and keyComb wrapper functions

* fix properties of keyCombination being undefined break equality check

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-13 15:03:17 -04:00
Mark Kim
c6e0591c58
fix: add change method param on callback (#4963) 2022-07-13 14:01:52 -04:00
Jack Kavanagh
deb1038c28
remove unused component (#4959) 2022-07-13 19:08:20 +02:00
Pavlos Koutoglou
0ab0d72462
Improved accessibility for activity toggle. (#4928)
* Fix issue with activity toggle accessibility

* add unit tests

* update styled components to the object format

Co-authored-by: Mark Kim <mark.kim@konghq.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-07-13 15:05:23 +02:00
Jack Kavanagh
57b5493e9e
Fix/split button quick fixes (#4953)
* move border

* remove disabled button props

* Update packages/insomnia/src/ui/css/components/request-url-bar.less
2022-07-12 20:03:28 +02:00
James Gatz
b00b582c3d
use the window event to get the oauth refresh page (#4955) 2022-07-12 19:14:07 +02:00
Jack Kavanagh
9d02a854d4
replace notice with p tag (#4954) 2022-07-12 15:20:24 +02:00
Jack Kavanagh
a63c873142
transform (#4936) 2022-07-08 11:40:40 +00:00
Pavlos Koutoglou
ae9ac5a0b7
Fix tabIndex typo (#4940)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-07-08 08:24:25 +01:00
Mark Kim
2a315a5242
fix(openapi2kong): removing unused component reference (#4911)
* add removing logic

* add recursion

* add comments

* add circular ref yaml and its expected mock

* change the $refs.get to the check method

* add path buildilng

* add for loop

* simplifies circular test

* add feedback

* add comments

* add clean up and doc

* adds response to circular-requestBody.yaml so that it's valid & lints

* inlines helpers (and catches null cases it missed)

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-07-07 15:41:12 -04:00
Filipe Freire
2af3eff41b Bump app version to 2022.5.0-beta.3 and lerna package versions 2022-07-07 15:37:58 +00:00
Dimitri Mitropoulos
f72c5a6969
useCallback with async is ok, after all (#4934) 2022-07-07 15:04:41 +00:00
Dimitri Mitropoulos
26fe408344
remove nunjucks templating in experimental plugin themes (#4933)
* remove nunjucks usage from core themes

* adds package downloader script

* adds runtime validation for plugins still using nunjucks

* generateThemeCSS no longer needs to be async

* removes Nunjucks as valid type
2022-07-07 13:19:17 +00:00
Jack Kavanagh
8a26fdbaa7
multipart viewer class->fc (#4930)
* multipart

* self review

* Apply suggestions from code review

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

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-07-07 12:28:49 +00:00
Mark Kim
5f2f67d49a
test: adding unit tests to AccountDropdown (#4845)
* add text label change

* add unit tests

* tests created

* add testing

* clean up

* remove test.todo

* Update packages/insomnia/src/ui/components/dropdowns/account-dropdown/account-dropdown.test.tsx

Co-authored-by: David Marby <david@dmarby.se>

* fix redux for testing

* Update packages/insomnia/src/ui/index.tsx

* fix lint

* fix lint

Co-authored-by: kristofer <kristofer@khuff.co>
Co-authored-by: kreosus <59621250+kreosus@users.noreply.github.com>
Co-authored-by: David Marby <david@dmarby.se>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-07-07 11:28:26 +00:00
tangweikun
0f5d858030
Fix edit cookie shows expires as an Invalid Date (#4897)
* fix: edit cookie shows expires as an Invalid Date

* refactor: using date-fns for validation

* use datetime-local input and transform

* use defaultValue

Co-authored-by: tangweikun <tangweikun@corp.netease.com>
Co-authored-by: jackkav <jackkav@gmail.com>
2022-07-04 20:08:06 +00:00
Jack Kavanagh
c46d5613c7
send button -> split button (#4924)
* first pass

* simplify timeouts+intervals

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

* use key to tidy up url bar

* fix lint error in hook

* fix type-check

* add border-right

* Update packages/insomnia/src/ui/css/components/request-url-bar.less

Co-authored-by: Filipe Freire <livrofubia@gmail.com>

* use --hl

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-07-04 16:05:43 +00:00
Jack Kavanagh
c85205cef5
prevent focus loss (#4925) 2022-07-04 11:35:16 +00:00
Filipe Freire
0e0591262b
Chore: bump playwright to version 1.23.0 (#4914) 2022-07-01 16:44:42 +00:00
Maksim Rotmann
044a3b0a7d
Remove wrong backticks from json path help window (#4892)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-07-01 16:14:13 +00:00
David Marby
946b5627bc Bump app version to 2022.5.0-beta.2 and lerna package versions 2022-06-30 08:10:31 +00:00
Dimitri Mitropoulos
9bea9e06f1
fixes ContentTypeDropdown and AuthDropdown (#4918) 2022-06-29 17:34:28 -04:00
Dimitri Mitropoulos
f00dc50da0
fixes tsconfigs for preload files (#4915) 2022-06-29 13:41:26 +00:00
Jack Kavanagh
ba04d2c47d
Chore/some-fc (#4904)
* editable

* wrapper debug

* method dropdown

* request actions dropdown

* response history dropdown

* wrapper home

* copy button

* auth dropdown

* env dropdown

* content type dropdown

* fix types

* second pass

* response csv viewer

* useCallback pass

* more useCallbacks

* wrapper unit test

* simplify pagelayout

* fix editable bug in unit test

* wrapper unit test useCallbacks

* some gentle tidying

* useCallback usage for async func

* switch to useInterval

* updates types for Editable, Highlight, et al.

* moves usage after declaration

* extracts FC for AuthDropdown items

* removes some prop drilling and extracts component

* adds mandaotry useCallback, rm unused props, types

* use named exports from react npm like rest of project

eventually, we will remove usages of `React` default export since it's a hack from half a decade ago that's no longer necessary now that jsx-transform is a thing.

* removes unnecessary useImperativeHandle (we learn somethin' every day)

* adds necessary useCallback, removes unnecessary useImparativeHandle, TS

* fixes types for useRef (turns out you don't need null in the generic)

* removes unused props

* fixes types from ref helpers

* fixes return from useCallback

* updates useCallback usages

* fixes bind

* fixes lint

for some reason, kept getting:

```
insomnia: /home/dimitri/src/github.com/Kong/insomnia/packages/insomnia/src/preload.js
insomnia:   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
insomnia: The file does not match your project config: packages/insomnia/src/preload.js.
insomnia: The file must be included in at least one of the projects provided
```

* revert incomplete type change

* remove unnecessary useEffect

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-29 12:17:13 +00:00
Vincenzo De Petris
3057da42a9
fix: disable font ligatures (#4813) (#4891)
apply font-ligatures-variant style to all elements

Co-authored-by: Vincenzo De Petris <vincenzodepetris@gmail.it>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-29 12:41:49 +01:00
Mark Kim
cd3a079554
refactor: disable URI input for github & gitlab (#4913)
* add disabling logic

* add type

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-29 11:47:21 +01:00
Mark Kim
3a4ddfc935
add icon for git providers (#4912)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-29 11:47:04 +01:00
Dimitri Mitropoulos
1eb74c363e
undoes prop drilling for creating request groups (#4910) 2022-06-29 10:06:05 +00:00
David Marby
df9a48e010
Upload sourcemaps to Sentry on publish (#4909) 2022-06-28 11:29:28 +02:00
Dimitri Mitropoulos
ed3aad6046
tsconfig cleanup (#4908) 2022-06-27 12:57:50 -04:00
Jack Kavanagh
bbceb6097c
Typed preload (#4886)
* convert preload to typescript

* preload types second pass

* improve types

* fix import

* simplify types

* remove migration map

* preload alongside main

* naming improvements

* fix global typing by adding vite import types

* fix test

* isolate main only network code

* fix mapping mistake

* clarify timeline logic
2022-06-26 13:36:30 +00:00
Mark Kim
4f5ef73f7e
fix: adding a fix to the openapi2kong circular deps issue (#4872)
* commit progress

* save changes

* add components and $schema

* add components and $schema

* adding a doc

* add typings

* fix unit tests

* fix unit tests

* add fix and verified with kong cli

* fix unit tests

* Improve types and parameter/body resolution

Co-authored-by: Mark Kim <marckong@users.noreply.github.com>

* fix circular "components" issue

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Mark Kim <marckong@users.noreply.github.com>
2022-06-24 19:48:45 +00:00
Filipe Freire
8300652981
Chore: All dependabot PRs 23 june 2022 (#4893)
* Bump shell-quote from 1.7.2 to 1.7.3 in /packages/insomnia-importers

Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump got from 11.8.3 to 11.8.5 in /packages/insomnia-smoke-test

Bumps [got](https://github.com/sindresorhus/got) from 11.8.3 to 11.8.5.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.8.3...v11.8.5)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix indentation for package-lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-24 09:54:51 +01:00
Wils Dawson
b400eb1160 Bump app version to 2022.5.0-beta.1 and lerna package versions 2022-06-23 14:10:00 +00:00
tangweikun
1aca90a810
Fix timeout setting in milliseconds (#4881)
* feat: make NumberSetting support step

* fix: correct request timeout help message

* make default step 1 for NumberInput

* Provide similar experience for other inputs with ms

Co-authored-by: tangweikun <tangweikun@corp.netease.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-06-23 15:12:59 +02:00
Filipe Freire
00a383690e Merge branch 'release/2022.4.2' into develop 2022-06-22 18:23:44 +01:00
Filipe Freire
dd79b934bf
Add graphQL to smoke tests (INS-1592). (#4867)
* Add graphQL to smoke tests (INS-1592).

* Remove waitForNavigation

* Tidy up code, improve assertions and selectors

* Fix typo

* add gandalf

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-06-22 15:29:27 +00:00
Filipe Freire
f44da26ff3 Bump app version to 2022.4.2 and lerna package versions 2022-06-22 14:24:12 +00:00
James Gatz
38a53e603b Redirect to the project view if no active workspace (#4882) 2022-06-22 15:10:57 +01:00
Jack Kavanagh
07706d093a remove last workspace check (#4880) 2022-06-22 15:10:43 +01:00
James Gatz
8d7b9d8b7a
Redirect to the project view if no active workspace (#4882) 2022-06-21 16:50:43 +00:00