Commit Graph

660 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Mike Ellan
1e9767ad35
Revert "2377 paste issue fix (#2386)" (#2389)
This reverts commit 60cb5fb9dd.
2020-07-10 15:00:38 -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
a35664d4dd
Stub console log during db initialization (#2351) 2020-07-07 10:59:56 +12: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
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