Commit Graph

1547 Commits

Author SHA1 Message Date
Dimitri Mitropoulos
854ada3ff1
fixes styling regression for autocomplete (#3991) 2021-09-03 14:54:45 +00:00
Giuseppe B
a2c2268728
Handling vscode-languageserver with NMR (#3469) 2021-09-02 21:15:52 +00:00
Dimitri Mitropoulos
03f9d95b52
removes hardcoded import names (#3935) 2021-09-02 14:46:27 +00:00
Jack Kavanagh
de435660f7
fix(autocomplete) undefined tag values (#3983)
* fix(autocomplete) undefined tag values

* Update packages/insomnia-app/app/ui/components/codemirror/extensions/autocomplete.ts

love it!

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

* fix(autocomplete) move nullish coalesing to edge

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-02 04:52:23 +00:00
schrodingersket
ccac337c4f
Optionally disable certificate validation for OAuth2 auth windows (#3894)
Co-authored-by: Jonathan Thompson <jonathan.thompson@nimbusnine.co>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-01 21:08:44 +00:00
Dimitri Mitropoulos
25520154a5
Minor Electon-related cleanup (#3957)
* adds (now available) electron types

* MenuItemConstructorOptions.selector module augmentation

* updates note on allowRendererProcessReuse with more up-to-date info

* separates and formats comments that were intended to be separate

if you check out the commit where these were created, for some reason the comment for the `loadURL` line was put under the line of interest, and over time the space between the comment blocks was removed - making it look like the last line of the comment is related to the same thing (it, apparently, is not).

* use createRef for ResponseWebView
2021-09-01 20:48:05 +00:00
Timothy Lim
6ca2bf7b1b
Prevent GraphQL non breaking space (#2770)
Co-authored-by: Timothy Lim <tim.lim@intercom.io>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-01 16:17:15 -04:00
Jason Blalock
8db87df17c
[Feature/Plugin API] Add clipboard wrapper methods to context app (#3977)
Co-authored-by: Jason Blalock <jasonblalock@users.noreply.github.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2021-09-01 17:40:11 +00:00
Giuseppe B
e8551bd792
Insomnia v4 support for CLI (#3055)
* Initial draft for insomnia-adapter.js

* Added global options on cli types

* Added command description on cli

* Updating commands to support global flag

* First adapter implementation

* Fix object representation for send-request package

* Improved command description

* Fix test expected result

* Added db & adapter tests

* Improved flow on the InsomniaAdaptor

* Reverting to previous version

* Applying requested fixes

* Revised insomnia-adapter.js

* Applying requested changes

* Fixed new path for fixtures

* Introducing typescript support

* A few minor updates

* fixes from rebase

* update type mapping

* Use __dirname for fixture paths

* and tests for malformed data or unexpected version

* Update docs & use src with generate config cmd

* runs lint:fix

* minor error message copy adjustment

Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-01 17:17:19 +00:00
Opender Singh
7ffc391428
add eslint rules for semi colons (#3989)
* add rules for semi colons

* run lint fix

* remove invalid eslint disable
2021-09-01 10:50:26 -04:00
Opender Singh
c7f07fd63e Merge branch 'release/2021.5.2' into develop 2021-09-01 09:51:26 +12:00
Jack Kavanagh
a6e52d97aa
fix(tag-editor) cast to boolean (#3982)
* fix(tag-editor) cast to boolean

* Update packages/insomnia-app/app/ui/components/templating/tag-editor.tsx

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-08-31 19:57:17 +00:00
Timothy Lim
84fc8f38a7
Request History: Set dropdown value to the response instead of null (#2735)
Co-authored-by: Timothy Lim <tim.lim@intercom.io>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-31 06:21:02 +00:00
Opender Singh
ba459095e9 add back empty lines 2021-08-31 17:28:00 +12:00
Opender Singh
ed7853cc3b Don't resolve plugin prompt promise until modal has closed, to avoid a race condition (#3970)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 17:16:28 +12:00
Dimitri Mitropoulos
b7d11d3130 fixes "Hide menu bar" setting (#3961)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 17:16:17 +12:00
Opender Singh
f191b3a070 bump version to 2021.5.2 2021-08-31 17:14:17 +12:00
Opender Singh
c8926d75ae
Don't resolve plugin prompt promise until modal has closed, to avoid a race condition (#3970)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 04:52:01 +00:00
Dimitri Mitropoulos
9353a6fb00
fixes "Hide menu bar" setting (#3961)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 16:31:08 +12:00
Opender Singh
59827aad84 Merge branch 'release/2021.5.1' into develop 2021-08-31 09:52:45 +12:00
David Marby
d4048846aa version packages lib@2.3.2 2021-08-30 22:47:18 +02:00
David Marby
6d70ae098d Skip migrating collections that has a missing remote project instead of cancelling the migration (#3973) 2021-08-30 18:19:10 +02:00
David Marby
665abdcedc
Skip migrating collections that has a missing remote project instead of cancelling the migration (#3973) 2021-08-30 18:18:21 +02:00
David Marby
4d8710cbad Bump version to 2021.5.1 2021-08-30 18:16:09 +02:00
dependabot[bot]
e6e9e2a748
Bump jszip from 3.6.0 to 3.7.1 in /packages/insomnia-importers (#3902)
Bumps [jszip](https://github.com/Stuk/jszip) from 3.6.0 to 3.7.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/master/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.6.0...v3.7.1)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-27 12:15:21 -04:00
Opender Singh
39eb725a55
🧹 Remove axios, use generics for send-request in insomnia-testing (#3949) 2021-08-27 04:02:59 +00:00
Dimitri Mitropoulos
422d5a809c
adds markdown linting (#3931) 2021-08-27 15:44:01 +12:00
Hademumel
7135114768
add search for graphQL schemas (#3388)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-26 05:43:56 +00:00
Opender Singh
376ac03703 version packages lib@2.3.1 2021-08-26 08:15:00 +12:00
Opender Singh
1405c4c63c bump version to stable 2021-08-25 13:08:32 +12:00
Opender Singh
09e3e370a2 Merge branch 'release/2021.5.0' into develop 2021-08-25 13:06:30 +12:00
Dimitri Mitropoulos
7f7b9f5614
renames base project to default project in code and copy (#3939)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-25 12:51:40 +12:00
Dimitri Mitropoulos
2bf4370fd2
Inso -> Inso CLI (in docs) (#3936) 2021-08-23 20:21:19 -04:00
Opender Singh
4d0ec3f7b2 version packages lib@2.3.1-alpha.3 2021-08-23 12:55:10 +12:00
Opender Singh
a263881b5f bump to alpha.2 2021-08-23 12:49:38 +12:00
Dimitri Mitropoulos
f1808a4956
fixes outdated Insomnia Designer documentation references (#3927) 2021-08-20 17:50:41 +00:00
Opender Singh
774a8dc792
Space -> Project rename & update code-references (#3928) 2021-08-20 11:12:36 -04:00
Dimitri Mitropoulos
6e5f051902
Space Sync Error improvement (#3923) 2021-08-20 07:49:56 -04:00
Dimitri Mitropoulos
f3bfbf76aa
removes usage of deprecated graphql constant (#3926)
see: https://github.com/graphql/graphql-js/pull/2124/files
2021-08-18 16:38:38 -04:00
James Gatz
0ef92797cd
remove extra symbol (#3921) 2021-08-17 15:42:44 +02:00
Opender Singh
1dd421e4f0 version packages lib@2.3.1-alpha.2 2021-08-16 12:59:26 +12:00
Opender Singh
bbdd77d795 bump version 2021-08-16 12:57:29 +12:00
Opender Singh
afbbb0eaa3
Update mock implementation and move the segment event enum (#3913) 2021-08-12 22:35:43 +00:00
Dimitri Mitropoulos
407432aa02
adds eslint-config-helpers (#3912) 2021-08-12 18:01:54 -04:00
James Gatz
9b7dbe5011
Display the settings modal for remote spaces and update the copy for … (#3885)
* Display the settings modal for remote spaces and update the copy for deleting a remote space

* Improve confirmation dialog copy

* Replace baseSpace check with spaceHasSettings

* Use the strings constant for the space word copy

* Use the strings constant for the space word copy in the modal
2021-08-12 20:14:48 +00:00
Opender Singh
5a50b19595
Introduce segment event enum (#3904)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-08-12 19:37:33 +00:00
James Gatz
82629046e9
Use markdown-preview__content classname in the compiled html container (#3910) 2021-08-12 20:56:23 +02:00
James Gatz
d3738df992
Fix footer subtext alignment in modals (#3908) 2021-08-12 16:52:30 +02:00
Opender Singh
63fd9bc3a5
Add segment metrics for plugin data context (#3903) 2021-08-12 03:04:48 +00:00
Opender Singh
18e7f49b43
Lint rules for equivalence and arrow func spacing (#3897) 2021-08-12 01:25:34 +00:00
James Gatz
632b8020f7
Display a checkmark for the selected sort option in the SpaceSortDropdown (#3896)
* Display a checkmark for the selected sort option in the SpaceSortDropdown

* Update packages/insomnia-app/app/ui/components/dropdowns/space-sort-dropdown.tsx

Co-authored-by: Opender Singh <opender94@gmail.com>

* Move the placement hacks for the dropdown icon and tooltip into a separate file

* Fix lint errors

Co-authored-by: Opender Singh <opender94@gmail.com>
2021-08-11 14:23:29 +03:00
Opender Singh
251287062d
Use useAsync (#3888) 2021-08-10 23:57:13 +00:00
Opender Singh
6a1abbf3db
Migrate collections into their remote space (#3876)
* initial implementation

* take vcs as a parameter (so it's easier to mock and test)

* update console log and exit early if not logged in

* add unit tests for migration

* add async filter and replace vcs find by root document

* lint fix

* fix memory driver and add test for hasProjectForRootDocument

* setup check on interval

* move migration logic and interval from main process to render process, because session state and a VCS instance dont work in the main process yet

* update test

* replace constructor with static class creator

* replace interval with login logout hook

* remove effect helpers

* empty commit to trigger CI
2021-08-10 23:35:05 +00:00
James Gatz
7cb1cbef0d
Prevent opening new windows in the app (#3874)
* Force auxclick (middle-click) events to be handled as click events

* Prevent opening new windows

* Formatting: Remove parentheses from arrow fn
2021-08-10 12:28:12 +03:00
Opender Singh
0debbe9c9c version packages lib@2.3.1-alpha.1 2021-08-10 16:17:55 +12:00
Opender Singh
72de1c2d8b bump version 2021-08-10 16:14:15 +12:00
Paul Johnson
366a54f630
Allow optional specification of Origin header for Auth Code flow + PKCE (#3783)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-09 22:30:32 +00:00
Dimitri Mitropoulos
8478fbc27f
adds descriptors to ordering labels (#3892) 2021-08-09 15:34:46 -04:00
Opender Singh
f48cef02bd
Update some ESLint rules (#3883) 2021-08-08 05:08:56 +00:00
Opender Singh
853cefca75
React ESLint rules (#3884) 2021-08-07 08:03:56 +00:00
Opender Singh
be2c347cf1
Pull a project into the correct space (#3873)
* use selector and improve types

* Loading remote projects now requires a team id; it is no longer optional

* activate with workspace or workspace id

* extract helper

* normalize graphql return type for a remote project to include the team

* pull into the space as defined by the project team id, not by the active space. If the space doesn't exist, create it

* use helper

* make testing easier by putting the active space name as the first breadcrumb

* fix tests

* add the active space into the title

* refactor and add tests

* remove todo
2021-08-05 23:30:31 +00:00
James Gatz
e683a02b16
[feat] Sort Dashboard Cards (#3850)
* Add sort order for space items

* Add ability to sort dashboard cards

* Fix TS errors

* Fix lint errors

* Add sort options for modified time

* Move workspace-card to a new file and use redux global state for persistence

* Remove ordering from the space model

* Use currying for the workspace mapping function and clean up types

* Expand testcase for activespace initialization

* Fix lint errors

* Remove date defaults and check if modifedLocally is defined

* Fixup: Use global selector for space order

* Fixup: Decouple space order initialization from active space

* Fixup: Use named exports in SpaceSortDropdown and rename handler in WrapperHome
2021-08-05 20:38:58 +03:00
Opender Singh
4dda066254
Update help text to disable cert validation (#3875)
* update help text

* fix snapshots
2021-08-05 10:39:26 +03:00
Giuseppe B
bae8195dfd
Fix for GraphQL - now autocomplete does not reset anymore (#3468) 2021-08-02 10:12:58 +00:00
Dimitri Mitropoulos
70d5797d94
use optional chaining (#3867) 2021-07-30 15:32:08 +12:00
Opender Singh
706b0f076a
Disable cert validation option while running tests in inso (#3492) 2021-07-30 03:10:19 +00:00
Dimitri Mitropoulos
5e00656807
adds jsx indentation rules (#3860) 2021-07-29 08:52:17 -07:00
Ben Walker
b8cc881d36
Populate refresh token from a client credentials OAuth2 call (#3794) 2021-07-29 05:35:03 +00:00
Opender Singh
8b011d68cf
Types for DnD, reuse and connect sidebar components to redux (#3853) 2021-07-29 05:12:59 +00:00
Opender Singh
7397370f4b
Use activateWorkspace action to activate a workspace (#3856)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-07-29 04:55:31 +00:00
NAVAL
21b02cc61a
add: support for plain PKCE challenge method (#3843) 2021-07-29 04:31:02 +00:00
Opender Singh
37815afd2e
Duplicate from dashboard and from settings (#3820) 2021-07-28 21:49:02 +00:00
Dimitri Mitropoulos
6431378392
[followup] Local GraphQL schema UX improvements (#3847) 2021-07-28 19:26:55 +00:00
David Marby
cecd95f0d7
Correctly log uncaught errors/unhandled promises (#3857) 2021-07-28 14:57:52 -04:00
Opender Singh
a12ccc3faf
Use strings in Space Dropdown (#3835) 2021-07-26 16:05:37 +00:00
Opender Singh
9eba2867a3
Create VCS instance even if no active workspace (#3836) 2021-07-26 15:18:12 +02:00
Opender Singh
2cfaab472d
Remove the share modal (#3846) 2021-07-26 22:05:45 +12:00
Opender Singh
7abde2a017
Ensure a base space always exists (+ fix gRPC sub-environments) (#3819) 2021-07-26 00:49:34 +00:00
John Chadwick
eb67958846
Refactor markdown preview to minimize unsafe HTML. (#3842)
Fixes INS-805.
2021-07-23 12:55:47 -07:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
Dimitri Mitropoulos
92206c4f93
UI for Local/Remote spaces (#3824) 2021-07-22 10:56:14 -04:00
Opender Singh
fcd546b005
clear models (#3830) 2021-07-22 12:21:41 +00:00
Opender Singh
b7ca6366d0
git clone into the active space (#3775) 2021-07-20 01:05:08 +00:00
Daniel H
45000573c4
Add text/plain body type (#3793)
Co-authored-by: Daniel H <>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-07-19 22:34:01 +00:00
Grégoire Lodi
7831682278
Load local GraphQL schema (#3803)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-07-19 22:02:12 +00:00
John Chadwick
10c9940628
Implement color scheme badge artifact workaround. (#3823)
* Implement color scheme badge artifact workaround.

Color scheme badges have a small gap artifact caused by an interplay
between anti-aliasing and alpha blending. Here, we use pseudo-classes to
ensure one opaque pixel of intersection between the shadow border and
the color badge.

* Improved workaround for color badge bug.

This improved workaround has fewer limitations and reduces visual
artifacts during transitions.

* Don't fade ring when hovering in OS theme mode.

This tiny change makes the transition look a lot better.
2021-07-19 12:44:24 -07:00
John Chadwick
b07cd1cf16
Upgrade Electron to 11.2.3. (#3798)
* Upgrade Electron from 9.3.5 to 11.2.3.

* bump version

* update preid to alpha

* version packages lib@2.3.1-alpha.0

* Downgrade electron-builder to 22.11.3.

We tried to upgrade electron-builder to 22.11.7, but this fails
because electron-builder 22.11.4 introduces imports into fs/promises.
This module is only available in Node 14+, so we have to stick to
22.11.3 until we update to Electron 12.

* Revert npm script changes from alpha release.

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-07-16 13:35:32 -07:00
Opender Singh
d241093ec2
Import into the active space (#3795) 2021-07-14 00:10:49 +00:00
Dimitri Mitropoulos
ca0f6eb9d0
Improvements to theme selection (#3506) 2021-07-13 23:49:32 +00:00
Opender Singh
769d6c16d4
Remove checkbox background (#3812) 2021-07-13 14:45:47 -07:00
Johan Hammar
60ef1a83f9
Add menu separators in view and help menus (#3802) 2021-07-11 19:28:35 +12:00
Florian Hämmerle
92e0970281
response-timer: use tabular-nums for uniform width (#3800) 2021-07-09 17:03:11 -07:00
Opender Singh
bbadeac090 Merge branch 'hotfix/INS-782-exportFormat' into develop 2021-07-08 09:16:59 +12:00
Opender Singh
72dd8f28d7 bump version 2021-07-07 11:48:23 +12:00
Opender Singh
ff49cb3093 don't call done callback unless it exists 2021-07-07 11:47:54 +12:00
Opender Singh
d5a1f44f15
Don't auto create a workspace if none exist (#3776) 2021-07-07 08:30:50 +12:00
Opender Singh
3e8b5b1c20
Force to design workspace when coming from git (#3774) 2021-07-05 21:22:27 +12:00
Opender Singh
17de9ef556 convert from map to find 2021-07-02 09:04:06 +12:00
Dimitri Mitropoulos
9f3705a8a8
adds eslint rule for requiring default case statements (#3779) 2021-07-01 20:47:10 +00:00
Opender Singh
b84bb5d6e7
Update packages/insomnia-app/app/ui/redux/modules/global.tsx
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-07-02 08:20:30 +12:00