Commit Graph

1137 Commits

Author SHA1 Message Date
Opender Singh
ef2fc3baec
Validate protofile during upload (#2864)
* feat(insomnia-components): add async-button

* feat: show error if parsing protofile fails during upload/add

* chore: flow is poop

* feat: use try-finally
2020-11-25 10:02:28 +13:00
Giuseppe B
e5a73190ee
Fix for random UI crash (#2840)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-11-24 17:40:36 +13:00
Julien Giovaresco
6d259a4e73
Fix Copy as CURL with Multipart (#2740)
The issue was located in the `exportHar` function. It was not handled `file` param correctly.
For this type of file, the `value` attribute is empty, therefore we should take instead the `fileName`

Closes #2282
2020-11-24 14:33:16 +13:00
Opender Singh
4a9235f10f
Add GrpcRequest and ProtoFile as accepted models for git sync (#2846) 2020-11-24 14:31:09 +13:00
Opender Singh
9b1d5ae657
Remove form-control styles from gRPC url bar (#2863) 2020-11-24 14:17:57 +13:00
Mike Ellan
c71eefd0ee
gRPC URL bar spacing in Designer (#2859) 2020-11-24 12:39:27 +13:00
Opender Singh
ad21c515e2
Remove hinting and hide copy/move buttons (#2852) 2020-11-24 12:16:23 +13:00
Johan Hammar
07f9fa676e
Remove redundant help menu item (#2797)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-11-19 13:52:34 +13:00
Tom Prats
b1259dd5af
Adds sorting to GQL Documentation Browser (#2732)
Co-authored-by: David Marby <david@dmarby.se>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-11-19 13:34:24 +13:00
Jasmine Wang
bbbf12799e
Add resizing for Design Preview and Testing Results panes (#2712) 2020-11-19 13:13:24 +13:00
Opender Singh
f1add8e010 chore: bump versions 2020-11-18 21:59:13 +13:00
Opender Singh
0ccc8db39b
Update proto-files-modal.js 2020-11-18 21:57:55 +13:00
Opender Singh
24a28dcda8 deps: fix node-libcurl to 2.2.0 2020-11-18 11:23:35 +13:00
Opender Singh
3960a57cad chore: bump versions 2020-11-18 11:23:35 +13:00
Mike Ellan
ec8f72c09b
Show scrollbar when horizontal tab list exceeds available width. (#2844) 2020-11-18 11:22:26 +13:00
Opender Singh
0b58a748af
Support for server and bidi streaming (#2814) 2020-11-17 11:59:02 +13:00
Opender Singh
5c1885a540
Support reuploading a proto file (#2832) 2020-11-17 11:01:50 +13:00
Opender Singh
ccd270a9fb
gRPC with Insomnia export format V4 (#2830)
* feat: initial commit to export grpc entities

* feat: grpc requests and protofiles in v4 export format

* test(export): add grpc requests and protofiles in export tests

* test(models): add isProtoFile tests
2020-11-14 12:31:18 +13:00
Opender Singh
8f8acf83f2
Allow changing the protofile for a request (#2828) 2020-11-13 12:03:36 +13:00
Mike Ellan
74ba36609d
Updating base font sizes to fix previous merged PR (#2824) 2020-11-12 08:36:32 -05:00
David Marby
8e057eedc3
Fix version control beta merge conflicts where objects have been deleted (#2790) 2020-11-12 13:40:19 +01:00
Opender Singh
6f3c41659f
Add TLS/SSL support (#2827) 2020-11-12 12:42:52 +13:00
Opender Singh
f858b6625d
gRPC state management (#2813) 2020-11-12 11:44:03 +13:00
Mike Ellan
7a8b1b4953
Add protofile modal design integration (#2820)
* Add proto file modal design integration
2020-11-10 16:30:16 -05:00
Opender Singh
d18ba8e6d8
Support for gRPC Unary and Client streaming (#2809) 2020-11-10 13:30:27 +13:00
David Marby
17ea1b1812
Add the ability to delete synced workspaces from the API (#2795) 2020-11-09 23:56:13 +01:00
Mike Ellan
450b8353f9
Introduce stub UI for gRPC request and response panes (#2817) 2020-11-09 14:36:35 +13:00
Opender Singh
175834efa9
Unsafe deletion of a protofile (#2798) 2020-11-03 13:30:43 +13:00
Opender Singh
e6bdbf27ea
Extract foundational components from request and response panes (#2799) 2020-11-03 11:09:45 +13:00
Opender Singh
dd86bd3369
Add support for gRPC request actions (#2794) 2020-11-02 13:55:22 +13:00
Opender Singh
e77fe3248d
Remove unrelated items from request actions and request settings (#2793) 2020-10-29 12:00:29 +13:00
Opender Singh
5f1c1bb747
Allow sidebar to show grpc requests (#2786) 2020-10-29 11:44:37 +13:00
Opender Singh
d1e1da53e5
Save a GrpcRequest after protofile selection (#2785) 2020-10-29 11:23:07 +13:00
Opender Singh
33ef367f3f
fix: hide gRPC from url bar method dropdown for HTTP requests (#2792) 2020-10-29 08:45:20 +13:00
Opender Singh
edb0a8561d
Add GrpcRequest and GrpcRequestMeta database models (#2784) 2020-10-28 13:05:54 +13:00
Julien Giovaresco
5852d27d3f
Fix color picker display when updating an environment color (#2711)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-27 20:02:49 +13:00
Antoine
a511ea5ed9
Adding deprecated warning icon/message in graphQL docs (#2749)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-27 14:24:21 +13:00
David Marby
b78508d54a Bump versions to 2020.4.2 2020-10-26 20:46:49 +01:00
David Marby
543dc2df99
Use the correct notification icon for Core (#2772) 2020-10-23 21:19:20 +02:00
Opender Singh
65a333cac3
Fetch workspace protofiles from redux instead of refreshing after every action (#2764) 2020-10-23 11:27:46 +13:00
Opender Singh
f2737ff706
Allow for renaming of a protofile (#2763) 2020-10-23 11:06:37 +13:00
Opender Singh
b2bf1146f9
Add file selector to upload a .proto file (#2757) 2020-10-23 10:48:00 +13:00
Mike Ellan
c081fd2003
Insomnia core & designer app iconography (#2766)
App window logo updates and fix.
2020-10-22 16:43:00 -04:00
David Marby
1817872f31
Fix fetching notifications (#2765) 2020-10-22 21:35:42 +02:00
Opender Singh
c73092e294
Modal prompt to select protofile (#2756) 2020-10-23 08:14:46 +13:00
Opender Singh
bd4ed35dab
Add gRPC as a new request method (#2755) 2020-10-22 10:26:09 +13:00
Opender Singh
cc71660c96
Create protofile database model & unit tests (#2754) 2020-10-22 10:02:43 +13:00
David Marby
edcfcf5cef
Beta sync fixes (#2753)
* Fix trailing whitespace in vcs

* Add logging to sync graphql queries

* Don't remotely create a sync project when opening the share dialog

* Fix pulling workspaces with a missing default branch

* Fix the sync merge modal

* Fix workspaces dissapearing when switching to an empty default branch
2020-10-21 12:42:36 +02:00
Martin Pastore
52de6d819d
fix: resize all texts when font size change on preferences (#2710)
* fix: resize all texts when font size change on preferences

* fix: add missing rem conversion

Co-authored-by: Mike Ellan <52717970+sonicyeti@users.noreply.github.com>
2020-10-20 17:22:26 -04:00
Jasmine Wang
d544d754ca
Removing unused / redundant styles (#2752) 2020-10-20 16:50:57 -04:00
Emanuele Concas
29ff23343b
Add Show App Logs Folder to help (#2728)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-21 00:01:47 +13:00
Ben Scholzen
294777b0ed
Add PKCE support (#2652)
* Add PKCE support

* Fix failing unit test and add new test for PKCE

* Update packages/insomnia-app/app/network/o-auth-2/grant-authorization-code.js

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

* Update packages/insomnia-app/app/network/o-auth-2/grant-authorization-code.js

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

* Fix prettier report

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-20 20:58:16 +13:00
Julien Giovaresco
d201cd1807
Rename button label of the Save and Download action save dialog (#2727)
The label was `Send and Save`, it is confusing because actually the request was already sent.
2020-10-20 20:36:04 +13:00
Julien Giovaresco
ceead25167
Fix infinite request spinner when cancelling "Send and Download" (#2721)
We were hiding the spinner at the end of the _handleSendAndDownloadRequestWithEnvironment method. However, we
were exiting early we the user cancel the save dialog (L672).

To prevent that, I've moved the code in a finally block, therefore we make sure that the spinner will be hidden

Closes #2718
2020-10-20 19:45:48 +13:00
Antoine
27d5881684
Reloading GraphQL docs on schema reload (#2747) 2020-10-20 17:35:53 +13:00
David Marby
b0b7613f26
Fix sync issues when switching between workspaces (#2724) 2020-10-15 23:42:16 +02:00
David Marby
4fc8b21827
Add file logging (#2716) 2020-10-13 18:05:41 +02:00
Timothy Lim
a9e22075fb
Prevent newlines for singleline Code editor (#2704)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-13 18:46:25 +13:00
Isaac Moore
81ad8ba2c8
Change bulk header editor setting verbiage (#2717)
This change is to be consistent with #2713.
2020-10-13 16:15:51 +13:00
karolineKarkoschDrKlein
984881c0cb
Don't clear oAuth2 session on restart (#2701)
* Don't clear oAuth2 session on restart

Offer button to user where it can be cleared without restart

* PR improvements

* remove accidental newline

* PR improvements 2

* cleanup

* capitalize insomnia
2020-10-10 09:33:21 +13:00
Selamanse
03d83a8f52
Cancel the active request instead of the most recent request (#2696)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-09 06:17:37 +13:00
Antoine
0092723a8d
del. top/btm padding from CodeMirror-dialog #2646 (#2697) 2020-10-08 10:39:56 -04:00
Opender Singh
1bbbf38a96
Support hyphen - and other special characters in variable names (#2601) 2020-10-02 07:49:05 +13:00
Mike Ellan
9bf5d29160
Toast based logo fixes, consistent names, fixing positioning (#2676)
* Toast based logos locally sourced, consistent names, fixing positioning
* Pulling unused classes
* Using APP_ID_INSOMNIA over appName method, styling footer, adding alt tags
* Removing gravatar from src and component library
2020-09-30 17:05:00 -04:00
Julien Giovaresco
64c7b429aa
Expose network context to requestHook & responseHook scopes (#2662)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-29 15:10:51 +13:00
Julien Giovaresco
9bdb13c6bb
Bump httpsnippet to fix Copy as Curl not respecting header case (#2668)
Closes #2615
2020-09-27 01:07:33 +12:00
Mike Ellan
19a9d6a7e7
Export import unit tests (#2663)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-25 12:16:51 +12:00
Julien Giovaresco
9d4390de2f
Introduce a checkbox in Basic Auth form to choose ISO-8859-1 encoding for credentials. (#2642)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-25 08:58:28 +12:00
Rajiv Singh
875bae217b
Corrected verbiage in move folder to workspace modal (#2661) 2020-09-24 17:54:29 +12:00
Julien Giovaresco
c9f009a838
Change default keyboard shortcut to bring up the keyboard settings (#2649)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-24 15:35:28 +12:00
Opender Singh
47e68b228f lib@2.2.25 2020-09-23 10:38:00 +12:00
Opender Singh
3b2981043c Bump to 2020.4.1 2020-09-23 10:31:40 +12:00
Opender Singh
98127bfa70 Bump version to beta.1 2020-09-22 12:07:04 +12:00
Opender Singh
c2d989e1e0 lib@2.2.24 2020-09-22 11:45:33 +12:00
Opender Singh
919422fc57 Bump versions 2020-09-22 09:12:35 +12:00
Opender Singh
4885d00e0f
Update pdfjs-dist (#2645)
* add e2e test and update pdfjs version and interface changes

* Remove test focus

* Simplify

* Update test because canvas sizes vary

* Update
2020-09-21 20:45:36 +12:00
Gregory Schier
a1c96fb6ac
Remove whitelist logic for pivot release (#2460)
Co-authored-by: David Marby <david@dmarby.se>
2020-09-18 15:40:30 +02:00
dependabot[bot]
92c37bf413
Bump node-forge from 0.8.5 to 0.10.0 in /packages/insomnia-app (#2612)
* Bump node-forge from 0.8.5 to 0.10.0 in /packages/insomnia-app

Bumps [node-forge](https://github.com/digitalbazaar/forge) from 0.8.5 to 0.10.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/0.8.5...0.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Marby <david@dmarby.se>
2020-09-18 15:18:38 +02:00
dependabot[bot]
3314c23ecf
Bump papaparse from 4.6.3 to 5.2.0 in /packages/insomnia-app (#2590)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-09-18 06:05:53 +12:00
Julien Giovaresco
c4affa1650
Add shortcuts to foldAll and unfoldAll JSON nodes (#2626)
Use `Shift Cmd -` or `Shift Ctrl -` to fold all nodes
Use `Shift Cmd =` or `Shift Ctrl =` to unfold all nodes

Closes #2252
2020-09-17 14:00:10 +12:00
Mike Ellan
51d3a5de32
Editor toggling, visual design spec. integration, various stylistic tweaks (#2598)
Collapsable editor and visual design integration.
2020-09-15 12:26:04 -04:00
Tobias Rundbom
4a1ee5f9c5
Save and pre-select last used export format (#2586)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-15 17:24:06 +12:00
Joe Flint
f10b36d335
Handle server-side OAuth2 redirects to non-existent protocols (#2557)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-15 17:01:57 +12:00
Opender Singh
1b416d8027
Release branch for 2020.4.0 (#2576) 2020-09-15 08:55:18 +12:00
Mike Ellan
af6a9b6a78
Unit testing sticky headers (#2588) 2020-09-04 12:08:05 -04:00
Arjun Kesava P
1bcc2168cd
fix: Added manual prettify for multipart editor (#2571)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-31 13:41:26 +12:00
Opender Singh
e521d0651d
Fix hard-coded path in electron mock (#2565)
* Fix hard-coded path in electron mock

* Disable failfast strategy

* Remove path mocking, as it is no longer needed becasuse CI runs on all OSs, and it causes issues with database initialization for unit testing

* Update

* Update packages/insomnia-app/app/sync/git/__tests__/mem-plugin.test.js

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

* Update packages/insomnia-app/app/sync/git/__tests__/mem-plugin.test.js

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

Co-authored-by: David Marby <david@dmarby.se>
2020-08-30 23:17:15 +12:00
Mike Ellan
1774bc72e2
Unit testing test output (#2533)
* Adding list group component with stubbed badge & list item

* Cleaning up stories, error padding tweak

* Results list item padding fix

* Review feedback and component provisioning

Shift to functional components
Abstract both list and list item away for re-use
Roll unit test result specific styling into UT source
Roll supporting UI over including badges > extend SC for flavors
Shift timestamp to render the value, JSX handling formatting

* Renaming UT specific badges

* List group and unit test wrapper component updates

- Pulled unit test results list item into SB
- All unique aspects of UT results are bundled in the IC which extend base item
- Cleansed UT wrapper of inline components
- Setting up list group and list group item base for middle area

* Abstrating badges, timestamp and updating unit test wrapper

* Update packages/insomnia-components/components/list-group/unit-test-result-badge.js

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

* Update packages/insomnia-components/components/list-group/unit-test-result-item.js

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

* Dep cleanup, PR feedback

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-27 18:09:13 -04:00
Mike Ellan
37abf4df59
Unit tests buttons & select input styling (#2534)
* Button conversion, styling dropdown

* Cleaning up select input

* Adding play icon to run tests

* Button icon styling
2020-08-25 14:56:58 -04:00
Opender Singh
deaded4674
Add e2e Core tests to PR workflow (#2536)
Co-authored-by: David Marby <david@dmarby.se>
2020-08-25 08:40:40 +12:00
Opender Singh
c3678d6e37
Build and package to a folder prefixed by the application id (#2537) 2020-08-22 17:59:56 +12:00
Opender Singh
5ecb69a8e5
Expose styled-components on the window object for UI plugins (#2528) 2020-08-21 06:44:08 +12:00
Seanghay
827783ee94
Bump up httpsnippet to 1.22.0 for Kotlin and Axios code generation support (#2526) 2020-08-20 16:17:52 +12:00
Opender Singh
c5d36a5223 lib@2.2.21 2020-08-18 11:07:08 +12:00
Opender Singh
653c546883
Add bitbucket cloud docs, add documentation tooltip to git settings modal header (#2518) 2020-08-18 08:57:21 +12:00
Opender Singh
c24d3138a7
Convert radio button group to be a fully controlled component (#2520) 2020-08-18 08:45:43 +12:00
Opender Singh
be90615025
Don't try to render swaggerui if the preview is hidden (#2519) 2020-08-18 08:42:10 +12:00
Bartolomej Kozorog
d9fe05b230
Add tooltip with docs for git authentication key generation 2020-08-16 12:40:38 +12:00
Opender Singh
61b27ae3c4
Add release date to about menu (#2505) 2020-08-13 08:59:30 +12:00
Raphaël Barbazza
48783e5063
fix: made radio-button-group a controlled component (#2499)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-12 14:02:21 -04:00
Opender Singh
b26ce1cfdb Create an alias for styled-components in Webpack for development 2020-08-12 13:51:37 +12:00
Opender Singh
1e424fc083 Package styled-components 2020-08-11 16:57:35 +12:00
Opender Singh
17d31eeb50 lib@2.2.20 2020-08-11 12:29:05 +12:00
Opender Singh
ad91b46b40 Bump versions for beta release 2020-08-11 11:46:59 +12:00
Ken
b6aaa4d82b
Copy info to clipboard (#2480)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: John <john_v@outlook.co.nz>
2020-08-11 09:14:11 +12:00
Opender Singh
fc934698ed
Fix webpack file watching, remove styled-components from insomnia-components bundle (#2497)
* Reinstall webpack...

* Reinstall webpack...

* set styled-components as an external

* Remove script
2020-08-11 07:12:53 +12:00
Opender Singh
cb991ba956
Revert "Fix app reloading and insomnia-components in watch mode" (#2496)
This reverts commit 971134fae2.
2020-08-07 08:49:45 +12:00
Opender Singh
971134fae2
Fix app reloading and insomnia-components in watch mode (#2493)
* Fix fsevents

* Add node_env for netlify
2020-08-07 08:48:49 +12:00
Mike Ellan
55e428bbe3
Checking format to offset line number if spec string is JSON parsable. (#2467)
* Checking format to offset line number if spec string is JSON parsable.

* Cleaning up server component detection, removing unused function
2020-08-06 14:39:37 -04:00
Mike Ellan
4668670159
Bring path validation into paths component. Error boundry around sidebar, error boundry formatting. (#2484) 2020-08-05 08:47:28 -04:00
Huli
a36e22c294
Replace textarea with code editor for response raw viewer (#2475)
* Replace textarea with code editor

* Add raw-editor class and props to make style consistent

* Merge raw-editor style into general.less

Co-authored-by: Li Hu <li.hu@onedegree.hk>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-05 07:17:20 +12:00
Mike Ellan
784357f089
Sidebar code mirror interactions (#2433)
* Lifting path clicked up to sidebar root

* Abstracting out path click to story (and app)

* Adding click to scroll, updating sidebar components

* Scroll fix for sidebar

* Cleaning up log

* PR feedback

* PR Feedback, fix schemas & request body rendering

* PR feedback & cleanup

* Prop value checking, selection positioning

* Pulling remote import

* Styled components into insomnia-app, obj destructuring, typing

* Refactoring item path mapping

* Abstracting the mapping of specs for position, bumping down styled components version.

* Directly passing ... rest args initial work

* Pulling logs, removing array concatenation

* Pulling click handler out of render method

* Rolling position mapping into scroll positining method

* Opening up type, could be number/string/array

* Update package-lock.json

* Grabbing height from window, typing API vars, checking path

* Creating scroll method dedicated to design mode

* Moving typing of spec related content to Props def.

* Type checking on sections, invalid section component
2020-08-03 13:57:12 -04:00
Opender Singh
e9fb34490a
Fix a bug with bulk query edit (#2479) 2020-08-03 22:13:08 +12:00
Huli
e3f9e3c1d4
Consistent export dropdown verbiage (#2476)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-03 17:32:51 +12:00
Opender Singh
b50a4bf623
Support config file for inso (#2420) 2020-07-29 11:47:36 +12:00
Gregory Schier
c5283ab14a
Pivot Release for Core Signing Cert change (macOS) (#2453)
* Upgrade Electron to 8, bump Node version, fix font-manager

* Specify nodeIntegration as true

* Get <webview> working again

* Get <webview> working again

* Electron 9.0

* Escape parens in plugin install exec path (newer Electron added them)

* Bump versions for first alpha

* Electron 9.1

* Convert all Electron APIs that switched from callback to Promise

* Fix send-and-download feature

* Remove user-agent override hack for OAuth 2 login window

* Bump alpha version

* Fix issue regarding chokidar

* Add package-lock.json

* Upgrade chokidar because @babel/cli uses an older incompatible version of fsevents

* Fix source maps

* Read .nvmrc in GitHub actions

* Address remaining PR feedback

* Use Designer release env for Core

* Bump version

* Add signing requirements for new cert (attempt #1)

* Fix config

* Fix release script

* Fix whitelist cert

* Try updating cert checksum again

* Remove darkModeSupport option

* Revert version bump
2020-07-28 14:11:14 -07:00
Gregory Schier
93c91ebdbe
Upgrade Electron (#2403)
* Upgrade Electron to 8, bump Node version, fix font-manager

* Specify nodeIntegration as true

* Get <webview> working again

* Get <webview> working again

* Electron 9.0

* Escape parens in plugin install exec path (newer Electron added them)

* Bump versions for first alpha

* Electron 9.1

* Convert all Electron APIs that switched from callback to Promise

* Fix send-and-download feature

* Remove user-agent override hack for OAuth 2 login window

* Bump alpha version

* Fix issue regarding chokidar

* Add package-lock.json

* Upgrade chokidar because @babel/cli uses an older incompatible version of fsevents

* Fix source maps

* Read .nvmrc in GitHub actions

* Address remaining PR feedback
2020-07-27 22:18:26 -07:00
Opender Singh
b29be4ac2b
Handle silent failures for git push operation (#2432) 2020-07-28 11:48:55 +12:00
Mike Ellan
886c4d75b5
Editor search selection contrast (#2441)
* Increase readability for search result based selections.

* Bumping up highlight
2020-07-24 16:17:45 -04:00
Opender Singh
e43348d48a lib@2.2.19 2020-07-24 13:00:52 +12:00
Mike Ellan
b7bc88a326
Design sidebar (#2328)
* updated lock file

* Rolling sidebar from SB into application

* Type fix on the method label output

* Update packages/insomnia-components/components/sidebar.js

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

* PR Feedback - Keys, useCallback Hook

* stubbing component breakout

* PR Feedback

- Breaking out most UI elements into components
- Filter component in place
- Various CSS tweaks

* Removing unused file

* Updating toggle

* Resuable sidebar section (#2359)

* Introduce resuable sidebar section
* Stop eslint complaining
* add react-use
* Lint fixes
* Make the storybook story less wide

* Component development

Abstracting out line level components i.e.
Section > Header > Filter > Panel > Items

Various code fixes

* Cleaning up section visibility state

* Reverting visibiilty state updater

* Adding paths on click for spec scrolling

* refreshing package-lock to resolve conflict

* PR feedback for sidebar components

* Update packages/insomnia-components/components/sidebar/sidebar-header.js

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

* Including lock

* Merge fix

* Component structuring, prop clean-up, css updates

* Cleaning up components, pr feedback, fixing styling

* array index reference clean-up/clarity

* Leveraging useToggle rather than manual useState toggling

* Cleaning up logs

* Hide info section if missing from spec.

* Update packages/insomnia-components/components/sidebar/sidebar-responses.js

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

* Update packages/insomnia-components/components/sidebar/sidebar-schemas.js

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

* Pull fragment

* Destructuring and filter cleanup

* Clearing filter value and DOM on section collapse

* Merge latest

* Merge conflict cleanup

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-07-22 09:13:06 -04:00
Opender Singh
5fb1caf941
Improve codemirror fold marker theme (#2406) 2020-07-14 15:24:55 +12:00
Jinay Jain
d52fc75ab9
Fix #2376: remove extra "to" in error (#2402) 2020-07-14 11:27:54 +12:00
Gregory Schier
938cb9ad54
Fix autocomplete and make the code a bit better (#2394) 2020-07-10 14:11:23 -07:00
Gregory Schier
5e8f1ee13e Bump versions 2020-07-10 14:07:50 -07:00
Mike Ellan
1e9767ad35
Revert "2377 paste issue fix (#2386)" (#2389)
This reverts commit 60cb5fb9dd.
2020-07-10 15:00:38 -04:00
Mike Ellan
fad1b671dc
Version bump (#2388)
* updated lock file

* Version bump
2020-07-10 14:43:18 -04:00
Mike Ellan
fb7cc34e8d
Revert "Support toggling of auto beautify in editor. (#2305)" (#2387)
This reverts commit 19b29023d5.
2020-07-10 14:36:07 -04:00
Mike Ellan
60cb5fb9dd
2377 paste issue fix (#2386)
* updated lock file

* Fix for C&P related CodeMirror and input value relay
2020-07-10 13:28:36 -04:00
Gregory Schier
4e56d2c26d
Release for 2020.3 (#2356)
* Bump verions

* Remove enableUnitTestingBeta setting (#2358)

* Bump versions
2020-07-09 14:59:22 -07:00
Opender Singh
0aa12f83df lib@2.2.15 2020-07-08 08:55:56 +12:00
Opender Singh
a35664d4dd
Stub console log during db initialization (#2351) 2020-07-07 10:59:56 +12:00
Gregory Schier
8d6e797465 Version bump 2020-07-02 12:43:00 -07:00
Erik Plaggenmars
19b29023d5
Support toggling of auto beautify in editor. (#2305)
* Updated code editor to support toggling of beautify in editor.

Added a button to toggle beautify. When toggled text is 'beautified' immediately and when text is pasted into the editor or when the editor is blurred.

Removed _prettify method because it is no longer used.

* Changed toggle of auto beautify to dropdown selection.

The toggle has been replaced by a dropdown selection, the text in the beautify button will change accordingly. In manual mode, the button can still be clicked.

* Updated label of the beautify button.

* Changed caret up to cog icon + minor change to button label

* Changed cog icon to wrench icon.

Co-authored-by: Mike Ellan <52717970+sonicyeti@users.noreply.github.com>
2020-07-02 10:57:58 -04:00
Opender Singh
1b5315fe55 lib@2.2.13 2020-07-02 11:39:48 +12:00
Opender Singh
8459c85780 bump app version for alpha 3 2020-07-02 11:31:22 +12:00
Opender Singh
9af2054ccf lib@2.2.12 2020-07-02 11:29:00 +12:00
Opender Singh
d91e6735a7 lib@2.2.11 2020-07-02 11:19:48 +12:00
Gregory Schier
eae0d8d433
Unit test improvements (#2337)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* Unit test UI tweaks

* More PR comment addresses

* Change test name
2020-07-01 15:57:42 -07:00
Gregory Schier
3883dc6feb
POC for Unit Test UI (#2315)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* More PR comment addresses
2020-07-01 14:17:14 -07:00
Gregory Schier
48348e04c1
Swap out switch for new activity toggle component (#2335)
* Swap out switch for new activity toggle component

* Extra check

* Remove some more theme stuff

* Some PR feedback
2020-06-30 16:54:56 -07:00
Gregory Schier
984d6051ab
Rename emptyValue to blankValue (#2336) 2020-06-30 16:52:56 -07:00
Gregory Schier
bab945a6a1
Alternate send request callback for app to use (#2334) 2020-06-30 15:40:15 -07:00
Gregory Schier
9440bfe098
Add support for snippets in autocomplete (#2333)
* Add support for snippets in autocomplete

* Add snippet styling

* Use correct font color
2020-06-30 15:37:06 -07:00
Gregory Schier
f2060da23e Fix for when request is null 2020-06-30 15:32:58 -07:00
Gregory Schier
b0d0dd9359 Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-06-30 14:01:45 -07:00
Gregory Schier
05b2e7d345 Fix devtools hotkey 2020-06-30 14:00:58 -07:00
Jody Heavener
9f68e36eb4
Default to rendered request URL when name is not present (#2230)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-07-01 08:53:01 +12:00
Gregory Schier
45861b6393
POC to get Insomnia networking available outside of app (#2329)
* Hacked insomnia lib package to get Insomnia's networking in tests

* Some small tweaks

* Got it mostly working

* Tweak

* Fix

* Fix pkg

* Fix some things

* Add comment

* Comment out log

* Some tweaks after doing a self code review

* Fix test

* Update app name for `insomnia-send-request`

* Update package-lock

* Update package-locks

* Fix tests

* Add gitignore

* Fix tests hopefully

* Fix accidental dep deletions

* Fix tests again

* Mock for all tests

* Update tests again

* Don't compile for Electron for tests

* Update release scripts to disable tests
2020-06-30 12:36:15 -07:00
Nicholas Raphael
d4c475fa57
Feature: Show Dev Tools with hotkeys (#2309)
* add key combinations for dev tools hotkey

* add Dev Tools accelerator to View menu remove from Develop menu

* remove changes from hotkey.js

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-29 11:48:53 -07:00
Gregory Schier
55be1de2bd lib@2.2.10 2020-06-29 10:51:46 -07:00
Gregory Schier
85f4bf31be Update packages from lib@2.2.9 publish 2020-06-25 15:50:39 -07:00
Opender Singh
2586ee5ad7
Bundling improvements for insomnia-components (#2297)
* Bundling improvements for insomnia-components

* Update

* Update
2020-06-17 07:46:13 +12:00
Sergey
f399c9e95f
Sort enviroment variables in the dropdown on edit (#2295) 2020-06-16 10:29:29 -07:00
Mike Ellan
a200e31e61
Adding copy support for preview input fields (#2296) 2020-06-15 16:21:44 -04:00
Opender Singh
65105da797
The One With Hooks (#2286)
* Add

* Update

* Remove extra peer dep

* Remove extra peer dep undo

* Undo stuff

* Convert two components (validation)

* Undo packed dep change

* Fix for react-dom alias to @hot-loader/react-dom (#2292)

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-06-13 16:56:15 +12:00
Sergey
723b31c731
Fix contrast ratio of lists and header3 (#2287) 2020-06-12 13:47:15 -07:00
Gregory Schier
6b4f009a67
Add fallback status messages for HTTP/2 (Closes #2273) (#2275) 2020-06-10 11:16:09 -07:00
Gregory Schier
53c21fba37
Add ability to specify HTTP version (#2276)
* Add ability to specify HTTP version (Closes #2245)

* Fix default HTTP version

* Format w/ Prettier
2020-06-10 11:15:56 -07:00
Gregory Schier
ec81568d43
Add Snapcraft release to Core and Designer (#2268)
* Try building snap package

* Custom snap workflow

* Fix names

* Put back node install

* Try moving env

* Add fontconfig lib

* Fix libfontconfig-dev

* Fix git tag priority

* Fix env

* Fix git ref

* Wow, fix ref again

* Remove Node 10 requirement

* Wow I'm silly

* Back to Node 10

* Ditch electron-builder Docker container

* Try apt-get witihout sudo

* Try snapcraft action

* Install snapcraft

* Log into snapcraft

* Install correct version of snapcraft

* Install snapcraft via snap

* Change Designer executable name

* Publish snap to stable

* Try snap store publish overrides

* Fix buildContext reference

* Delete debug release-snap workflow

* Remove electron-builder container

* Remove unnecessary env

* Add back node 10 version check

* Revert non-working snap channel override
2020-06-09 17:32:01 -07:00
Gregory Schier
7f4a5529e9
Fix usable of nested objects in environments (#2249) 2020-06-09 14:14:05 -07:00
Opender Singh
96defb1ec2 Bump versions to 2020.2.2 2020-06-09 13:28:45 +12:00
Opender Singh
62593e9282 lib@2.2.8 2020-06-09 13:27:38 +12:00
Gregory Schier
8d01d57363
Prevent linting from breaking code-editor persistence (#2267)
* Prevent linting from breaking code-editor persistence (Fixes #2234)

* Fix whitespace
2020-06-08 16:58:36 -07:00
Gregory Schier
edf874ce5c
Fix responses not being found if deleted active environment (#2265)
* Fix responses not being found (Closes #2237)

* Fix active envirnoment set

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-08 15:32:49 -07:00
Opender Singh
dfa981f6b5
Persist tab selection per document (#2231) 2020-06-06 13:37:58 +12:00
Nicholas Raphael
2b9edee71b
Display nicer error message given empty input when installing plugins (#2238)
* Fixes #2208: Displays nicer error message given empty input when installing plugins

* change error message on plugin install failure

* added detail error output and new installPluginErrMsg state variable

* fixed lint errors

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-06 13:11:33 +12:00
Opender Singh
43e8429b21
Rollback pending changes in git sync commit dialog (#2226) 2020-06-04 08:48:47 +12:00
Gregory Schier
803c604b42
Fix template tag enums not being quoted (Closes #2235) (#2239)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-03 10:58:50 -07:00
Opender Singh
393a363a25
Force a view refresh on changing branches (#2233) 2020-06-03 17:32:36 +12:00
Opender Singh
e219bebee3 Bump core version to 2020.2.1 2020-06-03 16:35:22 +12:00
Opender Singh
c0cc74d27c
Conditionally disable legacy sync for Insomnia Core (#2243) 2020-06-03 16:27:05 +12:00
Gregory Schier
819f4b9cf5 Bump versions for 2020.2 2020-05-29 13:59:00 -07:00
Gregory Schier
85b4ddceec Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-05-29 13:58:21 -07:00
Gregory Schier
96e951821a Default the toast Gravatar email from app config 2020-05-29 13:58:09 -07:00
Opender Singh
fae26d65ac
Fix windows tests (#2227) 2020-05-29 10:45:37 +12:00
Gregory Schier
4d02e6af8a Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-05-28 14:41:57 -07:00
Gregory Schier
2d74e15c54 Fix rimraf recursion on fsevent 2020-05-28 14:41:51 -07:00
Opender Singh
b850de4d6f Bump versions for beta release 2020-05-29 09:27:33 +12:00
Opender Singh
4cabc17bbd lib@2.2.7 2020-05-29 09:24:51 +12:00
Opender Singh
8e1730e6a4 Update to disturl 2020-05-29 07:50:13 +12:00
Gregory Schier
d003727838 Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-05-28 12:36:04 -07:00
Gregory Schier
9ecd7d3c42 Update target in npmrc 2020-05-28 12:35:52 -07:00
Opender Singh
040641f5fc
Git sync commit on Windows always shows all objects as unversioned (#2215) 2020-05-29 06:44:17 +12:00
Opender Singh
bbc3103fe6
Don't create empty commit if no changes exist (#2217)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-29 06:23:31 +12:00
Opender Singh
5cf2f59e46
Git clone fails on Windows. This fixes it. (#2194)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-29 06:13:13 +12:00
Gregory Schier
4387381fd1
Upgrade node-libcurl (#2223)
* deps: bump node-libcurl to latest prerelease version

* Add .npmrc, bump Electron to 3.1.13, remove electron-rebuild

* Minor tweaks

* package locks

* Bump version

* Switch to font-manager and fix fsevents rimraf

* Try generating npmrc inside build/

* Try uninstall of fsevents instead

* Bump

* Try npm env vars

* Extra .npmrc

* Try npm env vars in all CI

* Fix insomnia-cookies dependencies

* Fix typo

* Loosen nvmrc version

* Remove npm uninstalls

* Build outside of Docker

* Remove Docker, build all on GH Actions

* Bump Core version

* Disable Snapcraft for now

* Bump

* Disable snap for Designer too

* Update product name for Core

* Update test.yml

* Remove Travis file

* Make userData folder explicit and add Curl types

* Remove old Kong icon

* Remove curl.js adapter

* Revert productName

* Fix release date

* Try remove windows build tools from CI

* Add comment about Snap deploys

* Remove the pane border on Windows (no longer necessary)

Co-authored-by: Jonathan Cardoso Machado <me@jonathancardoso.com>
2020-05-28 10:09:51 -07:00
Vorashil
963cf7d2ad
Fix for warning not displaying when using an environment variable with '-' (#2212) 2020-05-25 10:12:31 +12:00
Gregory Schier
2800c9c9e7 lib@2.2.6 2020-05-20 20:15:22 -07:00
Gregory Schier
5252137f3c lib@2.2.5 2020-05-20 20:14:45 -07:00
Opender Singh
08534699e7
Fix GitLab sync (#2162)
* Down with hardcoded slugs

* Type the error modal

* Set username

* Update

* Update

* add username

* Revert .flowconfig

* Address comments

* Simplify

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-15 14:11:06 +12:00
Opender Singh
443d6df08d
Initial pass to combine eslint and prettier (#2166) 2020-05-15 10:54:07 +12:00
Opender Singh
29027c4d4a
Various k4k8s config gen bugs (#2136) 2020-05-15 08:27:43 +12:00
Mike Ellan
4f39486eb7
Storybook Sidebar Provisioning & WIP Implementation (#2125)
* Migrating dimensions, latest SVG, stubbing sidebar

* Revert "Migrating dimensions, latest SVG, stubbing sidebar"

This reverts commit 5014a68f52.

* Revert "Revert "Migrating dimensions, latest SVG, stubbing sidebar""

This reverts commit 28c130c8d8.

* Post merge bootstrap & build

* Linting

* Updating Story Heirarchy

* Migrating legacy tooltip component

* Reverting spacing integration into core dimensions

* Cleaning up comments, tweaking CSS var usage

* Removing static height

* Cleaning up static CSS values, re-organizing sliding panel, fixing search icon

* adding flow def for autobind in new SB instance

* PR feedback, removing new vars/updating markup

* Fixing lint > flow error on type
2020-05-14 14:00:29 -04:00
Opender Singh
200c354a3a
Handle empty security object in openapi3 (#2170) 2020-05-14 14:11:15 +12:00
Opender Singh
d6998ad684
Wrap SwaggerUI component with an error boundary that can invalidate (#2131) 2020-05-13 10:05:29 +12:00
Mike Ellan
75a129c038
Code block and render error coloring for dark/light themes (#2156) 2020-05-11 16:53:13 -04:00
Gregory Schier
97214012c6
Improve card filtering (#2134) 2020-05-07 12:32:48 -07:00
Gregory Schier
9554c4675f
Fix FileInputButton breaking when path is null (#2129) 2020-05-06 16:08:17 -07:00
Opender Singh
453745d3e2 Fix linting whitespace error 2020-05-06 17:00:31 +12:00