Commit Graph

2083 Commits

Author SHA1 Message Date
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
Jack Kavanagh
a05db00c98
remove last workspace check (#4880) 2022-06-21 18:29:02 +02:00
Jack Kavanagh
97e3e0c2d8
bump hawk (#4863)
* bump hawk

* package locks
2022-06-18 09:50:06 +00:00
John Chadwick
5622393f24
Enable strict TypeScript in insomnia. (#4869)
* Enable strict TypeScript in insomnia.

* Remove implied tsconfig settings.
2022-06-16 22:13:54 +00:00
John Chadwick
f52bafc21b
Properly handle 204 from notifications endpoint (#4873)
In some cases, the notifications endpoint can return a 204 response with
no body. This commit fixes a regression where this causes a warning.

Note that there is no user facing impact.
2022-06-16 19:13:50 +00:00
Jack Kavanagh
6707e5889d Bump app version to 2022.5.0-beta.0 and lerna package versions 2022-06-16 09:58:24 +00:00
Mark Kim
3edef836c6
fix: adding a simple fix for entering to send a request (#4868)
* add hack

* adding the empty string check else where

* limiting the event scope

This merge will close the following draft PR for its spike work as well.
2022-06-15 18:41:57 +00:00
David Marby
b24d30a21d Merge branch 'release/2022.4.1' into develop 2022-06-15 19:26:05 +02:00
Filipe Freire
07c5b0cc66 Bump app version to 2022.4.1 and lerna package versions 2022-06-15 09:56:45 +00:00
Jack Kavanagh
720dcad6b2 use public class function (#4859) 2022-06-15 10:51:26 +01:00
John Chadwick
3234c05c6e
Enable noImplicitAny. (#4864)
* Enable noImplicitAny.

* extracts PreviewMode

* Update packages/insomnia/src/network/certificate-url-parse.ts

* Add missing type.

* un-any-ifies some of the modal onDone callbacks

easy enough.

* few more onDone, but the async ones this time

* Get rid of jsonlint any.

* adds noImplicitAny support for insomnia-smoke-test

* fixes playwright type error

* avoid full @ts-ignore in playwright

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-14 23:41:19 -04:00
Dimitri Mitropoulos
d1f4063e7d
Adds dropdown items for New Folder (and requisite work to accomplish this) (#4862)
Co-authored-by: Dimitri Mitropoulos <dimitropoulos@users.noreply.github.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-06-14 10:00:12 -04:00
John Chadwick
4e85928998
Follow-up: rename shadowing variable r. (#4860) 2022-06-13 12:57:30 -04:00
John Chadwick
fc36be710f
Make ButtonProps.onClick more type-able. (#4853)
* Make Button onClick prop more typeable

Swaps the order of the arguments so that the optional arg is second.

* Review fixes.

* removes some implicit any's

* NoticeTable to FC

might as well, at this point.  we're trying to do these as we can as they present themselves

* fixes margin for collapse icon (broken before this PR)

and removes an unnecessary type parameter

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-13 15:20:05 +00:00
Jack Kavanagh
dcdc429b9b
use public class function (#4859) 2022-06-13 16:53:02 +02:00
John Chadwick
5158abb108
Improve typing in some API code and components. (#4852)
* Add @types/jshint.

* Add type defs for hkdf, objectpath and srp-js

* Improve type safety of API code.

* Misc type fixes/improvements.
2022-06-10 12:10:53 -04:00
Gabriel Amorim
7b7a8c83ae
fix: check if bubble is a child of Tooltip container before removing it (#4821)
Co-authored-by: Gabriel Rosa <gabriel.rosa@dadosfera.ai>
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>
2022-06-09 17:09:28 -04:00
Filipe Freire
e98bf5d427 Merge branch 'release/2022.4.0' into develop 2022-06-09 14:15:03 +00:00
Jack Kavanagh
28acc69435
bump node and electron 19 (#4847)
* bump electron, node and node-libcurl

* package locks
2022-06-09 09:17:28 +01:00
Filipe Freire
2d6d9ec37f Bump app version to 2022.4.0 and lerna package versions 2022-06-09 08:05:54 +00:00
Dimitri Mitropoulos
c6a17d8a3e
chore: single letter variables (#4848) 2022-06-08 12:27:21 -04:00
John Chadwick
325abe1d00
Improve typing in various UI components. (#4842) 2022-06-08 15:17:02 +00:00
Filipe Freire
10faac4232 Bump app version to 2022.4.0-beta.4 and lerna package versions 2022-06-08 09:21:49 +00:00
Filipe Freire
fc857cb726
chore: Fix package-locks after spectral upgrade (#4840) 2022-06-08 09:11:49 +00:00
Mark Kim
1519fa79cd
add text label change (#4843) 2022-06-07 18:56:25 +00:00
Mark Kim
c2a0abca62
refactor: add segment tracking for git sync (#4841)
* add segment tracking for git sync

* add suggestion

* fix lint

* add other cases for tracking

* add type fix
2022-06-07 18:10:47 +00:00
Take Weiland
5b1ab1b69d
Correctly handle per-operation scopes when importing from OpenAPI 3 (#4756)
* Fix OpenAPI 3 importer ignoring per request scopes

* Fix OpenAPI 3 tests

* Add more tests for OpenAPI 3 endpoint scopes

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-06 14:13:14 +00:00
James Gatz
34aa27a5fd
add react-router and split on activity paths (#4767) 2022-06-06 13:32:34 +02:00
Jack Kavanagh
70f8e7fbf9
only build sr when used (#4772) 2022-06-06 10:50:09 +00:00
Jack Kavanagh
29f530e19c
graphql empty url error (#4835)
* return early if theres no url

* remove fetching... message

* refactor: early return
2022-06-03 12:42:07 +00:00
dependabot[bot]
09ee423cb6
Bump protobufjs from 6.11.2 to 6.11.3 in /packages/insomnia-smoke-test (#4833)
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 6.11.2 to 6.11.3.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/v6.11.3/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/v6.11.2...v6.11.3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-03 13:00:50 +01:00
Filipe Freire
0517a0c103
chore: Upgrade Spectral (new clean attempt) (#4834)
* Upgrade Spectral Dep (clean attempt)

* Add smoke test for OpenAPI import (INS-1425)

* Remove immer and unnecessary await
2022-06-03 11:44:54 +01:00
Jack Kavanagh
9c269f40cc
class to pure the second pass (#4831)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-02 14:28:15 -04:00
Mark Kim
723011021b Merge branch 'release/2022.4.0-beta.3' into develop 2022-06-02 17:41:01 +00:00
John Chadwick
ccdc84daba
INS-1501: Sentry integration. (#4817)
* Install Sentry.

* Improve fetch typings.

* INS-1501: Sentry integration

* Split Sentry logic between UI and main.

* TSDoc

* Move sentry DSN into config.json.

* Fix doc comments.

(Doc'ing code like it's 1997.)

* Make long comments hilariously unreadable.

* Remove unused segment event.

* Re-export app environment.

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-02 16:41:06 +00:00
Mark Kim
35f5094048 Bump app version to 2022.4.0-beta.3 and lerna package versions 2022-06-02 13:20:00 +00:00
Jack Kavanagh
c49111b63a
Feature/ins-1518-improve-create-request-dropdownmodal (#4812)
* can make grpc request

* can create GraphQL request

* remove hotkey logic

* remove new request modal

* match new hotkey to old quick request

* add request shortcuts to folder context menu

* merge both old hotkeys to new one

* added requestType to segment

* fix feedback

* fix requestType is event

* default to HTTP request
2022-06-02 08:31:04 +01:00
James Gatz
4dd89b14d2
add gitlab oauth provider and ui (#4727)
* add gitlab oauth provider and ui

* add gitlab remaining

* add graphql field in query

* add gitlab oauth provider and ui

* add gitlab remaining

* add graphql field in query

* add some changes for testing

* add gitlab oauth provider and ui

* add gitlab remaining

* add graphql field in query

* add some changes for testing

* add some changes

* modify test

* try to refresh the token on git auth failure

* use localStorage to retrieve the session token

* simplify e2e tests for gitlab

* read the gitlab config from the api

* refresh the token if unauthorised

* use the rest api to fetch the user's data

* add loading state for config and handle 4xx errors in the ui

Co-authored-by: jackkav <jackkav@gmail.com>

* improve config fetching

* fix(e2e): add mock route for config

* Fix fetching gitlab config from the API

* add src as dep to avatar component hook

Co-authored-by: Mark Kim <yowmark613@gmail.com>
Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-06-01 10:39:31 +02:00
Dimitri Mitropoulos
cc9f11be30
chore(build): move insomnia-inso to esbuild (#4806) 2022-05-25 09:58:28 -04:00
Nhoem Chenda
5d1cc79bb5
Fix Issue https://github.com/Kong/insomnia/issues/4773 (#4815) 2022-05-25 10:21:24 +01:00
David Marby
deee30ad75
Remove unused end trial modal (#4804) 2022-05-20 16:02:16 +02:00
Jack Kavanagh
47af218532
add mimeType to analytics (#4802)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-05-20 12:46:50 +01:00
Dimitri Mitropoulos
8bc653388c
chore(deps) @jest/globals for insomnia (#4798) 2022-05-20 07:05:25 -04:00
Dimitri Mitropoulos
fe20729c64 Merge branch 'release/2022.4.0-beta.2' into develop 2022-05-19 14:52:57 +00:00
Mark Kim
b2d90df572
refactor: rename the git sync submission label (#4781)
* rename the git sync submission label

* add test fix

* change the button to use name

* add requested changes

* removeing :light selector
2022-05-19 10:17:02 -04:00
Dimitri Mitropoulos
0dd6090f1b Bump app version to 2022.4.0-beta.2 and lerna package versions 2022-05-19 14:12:37 +00:00
Dimitri Mitropoulos
6e5476de70
chore(deps) updates (all but insomnia) to use @jest/globals (#4793) 2022-05-18 17:27:31 -04:00
Dimitri Mitropoulos
fa02c76afa
removes delinquent flowtype leftovers (#4792) 2022-05-18 14:07:17 -04:00
Dimitri Mitropoulos
52393eccc0
chore(deps): upgrades jest to 28 (#4783) 2022-05-17 08:18:06 -04:00
Filipe Freire
c18a729fe7 Bump app version to 2022.4.0-beta.1 and lerna package versions 2022-05-12 13:27:17 +00:00
Sergiy
dd501ee498
postman import auth (from headers and/or auth object) (#4375)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-05-12 07:52:41 -04:00
Jack Kavanagh
bddf13a6e5
chore: simplify ca cert handling for app and inso (#4738)
* move file write to main

* fix tests

* fix path import

* generate root certs at app start

* remove unused scripts

* consistently use os.tmpdir for cacerts

* clean up gitignore

* setup ca cert once

* use cainfo_blob

* fix lint

* fix curl mock

* fix formatting
2022-05-11 15:59:59 +00:00
Dimitri Mitropoulos
4e47da16b6
always show debug oauth2 request timeline button (#4768)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-05-11 08:38:57 +00:00
Jack Kavanagh
1edaa4aa83
fix set-cookie header parsing (#4769) 2022-05-11 09:20:06 +01:00
Mark Kim
37be1436ec
chore: add metrics tracking for design preview button (#4761)
* add metrics button

* add requested changes

* add requested changes

* add requested changes

* add requested changes

* add some clean up

* add requested changes

* update comments

* add reflection of discussion

* Update packages/insomnia/src/common/analytics.ts

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

* Update packages/insomnia/src/common/analytics.ts

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

Co-authored-by: Mark Kim <yowmark613@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-05-10 18:10:39 -04:00
Akiva Gordon
53c4c10be4
strengthens types of key command usage in keyboard-keys (#4520) 2022-05-10 09:59:34 -04:00
Filipe Freire
e34e80e569
Publish Inso CLI docker images (INS-1238) (#4722)
* Add inso docker on build & publish workflows

* Pin alpine image to 3.15.4

* Rename kongcloud/insomnia-inso to kong/inso
2022-05-09 12:37:33 +01:00
David Marby
116f011b22
Start the grpc smoke-test server alongside the http server (#4760) 2022-05-05 17:49:14 +02:00
David Marby
debe68b3f1 Merge branch 'release/2022.4.0-beta.0' into develop 2022-05-05 15:06:09 +02:00
David Marby
e023b74341 Fix missing dependencies in package-lock.json for electron-builder-squirrel-windows 2022-05-05 13:53:36 +02:00
Jack Kavanagh
6285ab8b0f
add grpc server (#4758) 2022-05-05 13:30:13 +02:00
David Marby
e2d2c3093d Bump app version to 2022.4.0-beta.0 and lerna package versions 2022-05-05 10:22:35 +00:00
Jack Kavanagh
ef03a0feb9
fix inso output contained webpack warnings (#4751)
* cleanup unused code

* decouple unit testing feature and inso

* tigthen up key value pairs array to reducer
2022-05-03 11:50:30 +00:00
Wazbat
a8407b626d
Added error handling for github auth urls (#4749)
* 🥅 Added error handling for github auth urls

* 💬 Added error display to github auth form

* 💬 Updated Invalid URL error text

* 💬 Updated Incomplete URL error text

Changed conditional to follow guard pattern

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-05-02 20:55:51 +00:00
Jack Kavanagh
a10328ec29
fix autocomplete snippet evaluation for unit test (#4750)
* fix autocomplete snippet evaluation for unit test

* fix types
2022-05-02 16:43:11 +00:00
Jack Kavanagh
d16eaa553f
add grpc test (#4746) 2022-05-02 16:00:19 +02:00
David Marby
a037a3b844
Fix incrementing npm package versions for pre-release revisions (#4741) 2022-05-02 12:06:52 +02:00
Jack Kavanagh
0aeaa085e5
multipart is now called from main (#4733) 2022-04-28 16:01:18 +00:00
James Gatz
7a3740b03d
remove pdfjs-dist in favor of native chromium pdf viewer (#4720)
Co-authored-by: David Marby <david@dmarby.se>
2022-04-28 13:48:37 +00:00
David Marby
1ee7c198f1 Merge branch 'release/2022.3.0' into develop 2022-04-28 15:05:00 +02:00
Jack Kavanagh
4a56db0560
remove unused deps (#4730)
* restore packages used in scripts

* package lock
2022-04-28 12:36:05 +00:00
Dimitri Mitropoulos
cced992115
Upgrades electron to 18.1.0 (#4643)
Co-authored-by: David Marby <david@dmarby.se>
2022-04-27 15:40:05 +00:00
David Marby
04bbde88b4
Update highlight.js and only include common languages (#4721)
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-04-26 13:47:17 +00:00
David Marby
e836799505
Fix post requests with empty body (#4728) 2022-04-26 15:45:07 +02:00
David Marby
ec85cd664b
Fix PDF previews (#4723) 2022-04-25 13:38:52 +02:00
David Marby
e7730587ef Bump app version to 2022.3.0 and lerna package versions 2022-04-22 11:53:32 +00:00
David Marby
75636ff40d Build insomnia-inso for production before publishing to npm 2022-04-22 13:48:38 +02:00
David Marby
b8c0c7fd41 Sync package-lock.json versions 2022-04-21 22:07:05 +02:00
Daniel Stone
874d4945b6
Add missing characters to URL regex (#4710)
*Added the unreserved character ~ and the reserved characters '(), to the URL matching regex since these can appear without being URL encoded.

*Added test for tilde in URL
2022-04-21 18:21:23 +00:00
David Marby
5f6f0edd39 Merge branch 'release/2022.3.0-beta.4' into develop 2022-04-21 19:50:06 +02:00
David Marby
e5084c9335 Fix showing responses when "Filter responses by environment" is enabled, and a collection has no user created environments 2022-04-21 16:53:15 +02:00
gatzjames
d0eaffec42
fix spacing in plugins settings 2022-04-21 13:42:41 +02:00
Jack Kavanagh
40af38c3b9
decouple curl options from renderer (#4687)
* move some operations to main

* move more options to main

* move cookies and multipart

* remove cert legacy migration

* move auth and aws helper

* move certs options to main

* remove libcurl usage from renderer and tidy

* extract oauth2 flow back to renderer

* add parse headers tests

* minimally type req

* organise libcurl-promise by req properties

* minimally type used settings

* tidy up debug timeline

* fix cookie bug

* tasty little parsing function refactor

* doh! trim

* tidy up set cookie method/self review

* extracted functions from set-cookie logic

* refactoring with tests

* formatting after rebase

* clarification of duplicate header support

* tighten up parse headers

* simplify aws signing

* fix app version imports
2022-04-20 22:02:32 +01:00
John Chadwick
776a5148a5
Fix for CVE-2021-3777 (rebased) (#4716)
* Add .whitesource configuration file

* Added GitHub Sync action to repository.

* Fixed CVE

nodejs-tmpl is vulnerable to Inefficient Regular Expression Complexity

Updated from 1.0.4 to 1.0.5.

Publish Date: 2021-09-15

URL: https://vuln.whitesourcesoftware.com/vulnerability/CVE-2021-3777

* Delete ibm_fork_sync.yml

* Delete .whitesource

Co-authored-by: whitesource-bolt-for-github[bot] <42819689+whitesource-bolt-for-github[bot]@users.noreply.github.com>
Co-authored-by: Ivan Pedrero <pedrero.ivan@hotmail.com>
2022-04-20 19:37:14 +00:00
Dimitri Mitropoulos
a54335c0ea
hotfix: invalid or unused lockfiles (#4714) 2022-04-20 18:49:10 +00:00