Commit Graph

149 Commits

Author SHA1 Message Date
David Marby
65a53f45fd Fix .npmignore 2021-05-19 14:37:56 +02:00
Dimitri Mitropoulos
860565f3a6
fixes react controlled input error (#3391)
* fix ts-expect-error

* removes useless await

see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md

We're not quite ready to have this rule on everywhere, but in this case I can see that it's correct to follow.

* add comment about magic number

and moves the assignment to the one place it's used

I opted not to make a ticket because we are recently running out of tickets and this seems to be a relatively small thing @reynolek please confirm this is the correct course of action.

* initialize ref to reflect reality (and include actual type)

* fixes root cause of error, inlines one-liners

the error with the type of `_handleInputColorChange` was due to `onChange` being the wrong prop to use (where `onChange` is the one we want).

* use onChange instead of onInput to access correct types

ultimately, since react's behavior diverged from the DOM behavior to match onInput, this should have no effect on any functionality since react assigns this event to `onChange` anyway.  see https://github.com/facebook/react/blob/master/fixtures/attribute-behavior/src/attributes.js#L2089

* clears remaining ts-expect-errors in file

* updates fallback call per review feedback
2021-05-19 08:24:01 -04:00
Opender Singh
b2040dacd2 publish npm packages lib@2.3.0-beta.0 2021-05-19 09:21:52 +12:00
Opender Singh
1ff28abb11
chore: add repository, bug urls, and license to plugins missing it (#3379) 2021-05-13 07:31:33 -04:00
Dimitri Mitropoulos
5fe277ee02
remove duplication of all jest configs (#3375)
* use jest-preset for all but app

* separate properties that are the same as the preset

for some reason, it doesn't work.  you get:
```
Preset ../../jest-preset.js not found.
```

This needs to be investigated.

* removes unused/unneeded npm script in `app`, `test:jest`
2021-05-13 07:29:02 -04:00
Opender Singh
162ca5aec0
Fix vercel deployments (#3378) 2021-05-13 10:49:58 +12:00
Dimitri Mitropoulos
78c4a18f0b
makes all package.json author fields consistent (#3338)
* makes all package.json author fields consistent

* adds Preston Alvarado as a contributor per review feedback.
2021-05-12 08:31:07 -04:00
Opender Singh
26a94a695a
keep the previous svgr assets dir in gitignore (#3372) 2021-05-12 07:58:22 -04:00
Dimitri Mitropoulos
5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00
Opender Singh
14ebadd8f9 publish npm packages lib@2.2.35 2021-04-29 08:50:33 +12:00
Opender Singh
141685488d publish npm packages lib@2.2.35-beta.3 2021-04-22 11:14:08 +12:00
Opender Singh
6022ea2493 publish npm packages lib@2.2.35-beta.2 2021-04-22 11:10:30 +12:00
Opender Singh
d90328e406 publish npm packages lib@2.2.35-beta.1 2021-04-22 11:01:51 +12:00
Opender Singh
5e71430587 publish npm packages lib@2.2.34-beta.0 2021-04-22 09:43:12 +12:00
Opender Singh
e094a1f678 lib@2.2.33 2021-03-30 10:03:21 +13:00
David Marby
05dfa7fa48
Replace Netlify with Vercel for Storybook (#3212) 2021-03-19 14:52:45 +01:00
Opender Singh
5ba91ceb21 lib@2.2.29 2021-03-03 11:12:19 +13:00
Opender Singh
6f3d2666f8
Add option to disable migrating workspaces (#3108) 2021-02-26 12:01:46 +13:00
Opender Singh
554af8974b
Move share button and put settings on all pages (#3076) 2021-02-12 15:20:35 +13:00
Opender Singh
8e7c85c5ff
Add pull dropdown to homepage (#3074) 2021-02-12 14:52:43 +13:00
Opender Singh
b6247b8b4e
Update layout of the homepage (#3069) 2021-02-11 12:37:10 +13:00
Opender Singh
29fed74346
Data migration workflow from Designer to Core (#3051) 2021-02-10 08:55:30 +13:00
Opender Singh
26fb78ab99
Remove Core and Designer specific cases (#3034) 2021-02-03 12:19:22 +13:00
Giuseppe B
c4babfc129
Autobind replacement and react-hot-reload update (#3022) 2021-02-03 11:23:42 +13:00
Opender Singh
42ab4e4465
Multi proto file support (#3006) 2021-01-25 15:50:53 +13:00
dependabot[bot]
dd2017d8b8
Bump ini from 1.3.5 to 1.3.8 (#2940) 2020-12-15 05:22:01 +00:00
Opender Singh
402eb75f9a
Tooltip with an initial empty message does not unmount correctly (#2927)
* fix: tooltip with an initial empty message causes issues

* test: add failing test

* fix: breaking test is fixed with the fix

* test: expand on tests

* chore: rename test

* test: add checks for the child element

* test: add comments

* chore: spacing

* fix: oopsie
2020-12-15 09:27:11 +13:00
Opender Singh
27987201ad
gRPC URL bar improvements - streaming type & package groups (#2883) 2020-12-09 17:42:50 +13:00
Opender Singh
f5a0e9eb7c lib@2.2.26 2020-11-26 16:12:14 +13:00
Opender Singh
26202a88b3
Fix design sidebar filter hitbox (#2873) 2020-11-26 15:47:54 +13:00
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
Mike Ellan
7a8b1b4953
Add protofile modal design integration (#2820)
* Add proto file modal design integration
2020-11-10 16:30:16 -05: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
David Marby
403ddf20ad Merge branch 'release/2020.4.1' into develop 2020-09-23 23:17:12 +02:00
Mike Ellan
52ae23deec
Sidebar method styling & click regions (#2632)
Method badges & styling updates
2020-09-22 19:36:56 -04:00
Opender Singh
c2d989e1e0 lib@2.2.24 2020-09-22 11:45:33 +12:00
Mike Ellan
336bbad922
Section visibility toggle (#2634)
* Moving click handler up to parent item, preventing dupe calls on checkbox

* Alignment and setting CBs to read only

* Label alignment when sibling of input

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-18 16:58:06 -04:00
Opender Singh
0451ca4631
Ignore x- keys for methods in the design sidebar paths section (#2622) 2020-09-17 14:00:45 +12:00
Mike Ellan
74a3967fce
Auto focus filter and improve click targets in design sidebar (#2617)
* Set cursor focus on active filter

* Click targets and info panel fix

Fixing inconsistently treated click targets and info panel items.

* Font (for SVGs) sizing and layout fixes.

* Layout & alignment fixes

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

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

* Spacing increase on first child elment in panel, click specificity

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-16 11:11:42 -04: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
Opender Singh
1b416d8027
Release branch for 2020.4.0 (#2576) 2020-09-15 08:55:18 +12:00
Mike Ellan
625ac84c1f
Addressing alignment on buttons within dropdowns (#2589) 2020-09-04 11:52:06 -04:00
Opender Singh
225ecf3da4
Fix netlify/storybook deployment issues (#2572) 2020-08-31 21:58:54 +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
Opender Singh
567ee026c4
Add matrix and remove double bootstrapping from insomnia-components (#2550) 2020-08-26 08:45:58 +12:00
Opender Singh
c5d36a5223 lib@2.2.21 2020-08-18 11:07:08 +12:00
Opender Singh
c24d3138a7
Convert radio button group to be a fully controlled component (#2520) 2020-08-18 08:45:43 +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
17d31eeb50 lib@2.2.20 2020-08-11 12:29:05 +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
d0ac82592d
Updating storybook styling (#2489)
Branding our SB instance.
2020-08-06 10:00:21 -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
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
Mike Ellan
c73566f12a
Storybook categories & component organization (#2465) 2020-07-29 16:54:09 -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
9af2054ccf lib@2.2.12 2020-07-02 11:29:00 +12:00
Opender Singh
b99228d080 Rename insomnia-cli to insomnia-inso 2020-07-02 11:28:05 +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
55be1de2bd lib@2.2.10 2020-06-29 10:51:46 -07:00
Gregory Schier
dc2ca9ac88
Add multi-switch component, refactor radio group, and add success icon (#2324)
* Add multi-switch component, refactor radio group, and add succeess icon

* Fix dark theme for storybook

Co-authored-by: Mike Ellan <52717970+sonicyeti@users.noreply.github.com>
2020-06-26 10:45:11 -04: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
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
Gregory Schier
471fa1d7d8
Prevent insomnia-components from bundling entire crypto module (#2291)
* Fix insomnia-components from bundling entire crypto module

* Include package-lock.json
2020-06-12 20:31:37 -07:00
Opender Singh
62593e9282 lib@2.2.8 2020-06-09 13:27:38 +12:00
Opender Singh
4cabc17bbd lib@2.2.7 2020-05-29 09:24:51 +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
Mike Ellan
5780a7c438
Help Tooltip Component Migration (#2200)
* component migration to new SB instance

Migrating help tooltip to new SB instance at /insomnia-components/ also styling component directly via styled components

* Adding stories for positions and info vs. question

* lint fix

* Pulling left positioning out of delay story

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-21 14:17:14 -04: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
443d6df08d
Initial pass to combine eslint and prettier (#2166) 2020-05-15 10:54:07 +12:00
Opender Singh
011fa00535
Remove built files from source control and update bootstrap steps (#2165) 2020-05-15 08:57:03 +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
15d4789716
Move toggle-switch to insomnia-components, attach to themes (#2115) 2020-05-06 12:08:17 +12:00
Gregory Schier
cfb1a4e7d4
<Button> small variant and default color (gray) (#2106) 2020-05-02 11:20:46 -07:00
Gregory Schier
8276688758 lib@2.2.4 2020-05-01 20:40:27 -07:00
Gregory Schier
58fed78d06
Flatten insomnia-libcurl package (#2081)
* Remove unnecessary insomnia-libcurl package to flatter installation dirs

* Remove empty test folder

* Fix inlc mock
2020-04-29 12:59:46 -07:00
sonicyeti
869f042de5
Fixing hit area for card menu (#2076) 2020-04-29 15:37:39 -04:00
Gregory Schier
65d7fab79e lib@2.2.3 2020-04-29 11:15:38 -07:00
sonicyeti
d4d2a5fa14
re-rolling the style tweaks (#2068) 2020-04-28 16:38:31 -04:00
Gregory Schier
7de8246ff8 lib@2.2.2 2020-04-27 15:02:35 -07:00
Opender Singh
0e7b96c868
Add Swagger UI required prop (#2062) 2020-04-28 08:58:40 +12:00
Gregory Schier
c6a7c4d682 Initial designer merge 2020-04-26 13:33:39 -07:00
Opender Singh
b4b6464f9e
Remove insomnia-components (#2043) 2020-04-22 12:23:54 -07:00
Opender Singh
c3d4d89193
Prevent migrations from running for database.duplicate (#2040) 2020-04-22 11:59:09 +12:00
Gregory Schier
7bc219422e
Update Babel and ESLint and fix all related errors (#2032)
* Update Babel and ESLint and fix all related errors

* Update babel-jest
2020-04-09 10:32:19 -07:00
Gregory Schier
6ee442c019 pkg-v2.1.6 2020-02-12 10:02:11 -05:00
Gregory Schier
a03659de2b Add React UNSAFE_ method prefixes 2020-01-06 15:51:52 -05:00
Gregory Schier
f50bcfeafb pkg-v2.1.5 2020-01-06 15:07:32 -05:00
Gregory Schier
229c7cbda3 Fix insomnia-component exports (I think) 2020-01-06 15:06:54 -05:00
Gregory Schier
10d7255800 pkg-v2.1.4 2020-01-06 14:19:56 -05:00
Gregory Schier
1a6bdad517 insomnia-ui -> insomnia-components 2020-01-06 14:02:54 -05:00