Commit Graph

104 Commits

Author SHA1 Message Date
Opender Singh
d7b630f17b
Add formatting ESLint rules (#3425)
* add rules

* run lint:fix

* quick manual fix for lint errors

* indent fix

* add jsx prop multiline

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-27 14:00:32 -04:00
Eric Reynolds
7cb1051634
INS-674 - First pass at making the send button more visible (#3414)
* INS-674 - First pass at making the send button more visible

* [wip] adds rect for send button

* Update colors in the SVG to match send button

* Update the gRPC send button to also use theme colors

* Adding left margin to send button

Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-27 21:41:25 +12:00
Opender Singh
88ed96fc47 merge release branch with develop and resolve conflicts 2021-05-25 09:30:09 +12:00
Dimitri Mitropoulos
a060562697
Fixes clean scripts (#3400)
* removes (unused and unwanted) husky scripts

might as well, it's only taking up space for nothing in our node_modules

* adds `lerna run clean` to main clean script

we didn't have `clean` scripts in the packages before, but now that we do, it makes sense to.... hahah... _use them_.

Note that it's important that we run the package scripts first, because otherwise after the rimraf (which is now at the end) there's no `lerna` left to call.

* adds missing clean script to insomnia-components

although it looks like there are other changes at first glance, there shouldn't be any behavioral differences now except the fact that build will always generate SVGs (which, was an oversight/bug that it wasn't before).  We need this to occur so that when we clean it removes the things that were built, and when we build it replaces those same things.

* adds a postclean script to insomnia-app like every other package

I'll be honest, I'm not entirely sure what the reason is for having `postclean` scripts in every package with (mostly) `rimraf dist` (i.e. instead of just including that in the main clean script at the end), but that's clearly the convention - so for now I'm just following it

* removes references to old build artifact location

well, except for the .gitignore.  I guess I could remove it from the .gitignore, commit it, commit deleting it, which would clear it from everyone's projects... but I'll just leave it there for a bit in the .gitignore.  hopefully people either start fresh or run `clean` from the root every once in a while, which will clean this up.

After a few weeks or months we can remove these two references (in the package.json.clean and .gitignore) altogether if we feel like it.

* removes unused reference in config to build artifact

I searched high and low for every place I could find that consumes this file and none of them seem to use this field anyway.  And even if they did, it's wrong.  In fact, it's been wrong for a while I'd guess because (relative to the root, if that's what it was intended to mean).

As far as I can tell this was added c6a7c4d682 (diff-6918d2464ad7fb0f3e985d8587ce0c4218eeba6c6dea60c58642251f4db99ecb)

So I even checked out that commit and looked at all usages of that file at that time and it was, there too, unused (so far as I can tell).  Appears to be a case of wishful thinking that it'd be useful for something, not sure.
2021-05-19 09:56:10 -04:00
David Marby
34b8c17260 publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
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