Commit Graph

1176 Commits

Author SHA1 Message Date
Dimitri Mitropoulos
d9677611f5
enables react-redux devtools (#3373)
* add react and redux devtools

* convert to try-catch

* updates package-lock.json

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 08:22:40 -04:00
Josh Soref
d0d3f27e90
Consistently use infinity (#3345)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2021-05-12 08:12:58 -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
663198c548 chore: bump version to 2021.3 stable 2021-04-29 08:47:18 +12:00
Opender Singh
dbdfaaa7a3 chore: bootstrap 2021-04-29 08:45:12 +12:00
Opender Singh
69d7514095
Tags for all of the plugins! (#3328)
* feat: add tags to regular plugins

* feat: plugin support for request validator plugins

* feat: add tags to security plugins

* feat: security plugins detecting the expected property

* chore: don't force publish and bump version

* publish npm packages lib@2.2.35-beta.4
2021-04-28 08:14:49 +12:00
Bruno Fusieger
1ea4b4b81f
Fix license metadata (#3233)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-23 08:21:22 +12:00
Opender Singh
4d07a0cfda chore: bump version to beta.1 2021-04-22 11:25:45 +12:00
Opender Singh
141685488d publish npm packages lib@2.2.35-beta.3 2021-04-22 11:14:08 +12:00
Opender Singh
44814d44c7 update versions 2021-04-22 11:12:25 +12:00
Opender Singh
6022ea2493 publish npm packages lib@2.2.35-beta.2 2021-04-22 11:10:30 +12:00
Opender Singh
64145a129e chore: bump versions in insomnia-app 2021-04-22 11:07:33 +12:00
Opender Singh
d90328e406 publish npm packages lib@2.2.35-beta.1 2021-04-22 11:01:51 +12:00
Opender Singh
8c6fcd8312 publish npm packages lib@2.2.35-beta.0 2021-04-22 10:02:24 +12:00
Opender Singh
a8bc2d3bd9 chore: update packagelock 2021-04-22 09:59:16 +12:00
Opender Singh
f03d60cd8d chore: bump to beta.0 2021-04-22 08:35:23 +12:00
Ramón Márquez
7e745c6bf6
Plugin API: Add getHeaders method to context.response (#3289)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-20 13:50:02 +12:00
AlexNaga
c4d72a21d1
fix: use insomnia default dark color during initial startup (#3303)
Co-authored-by: Alex <alex.naga@postnord.com>
2021-04-20 13:33:46 +12:00
Jessé Souza
88049326d9
Misspelled error message when installing a plugin fails (#3304) 2021-04-20 13:08:12 +12:00
David Marby
892f4c0752
Update the segment write key for production (#3295) 2021-04-15 18:19:07 +02:00
David Marby
c69433fecc
Prompt existing users about analytics (#3278)
* Prompt existing users about analytics

* Fix the tests

* Set hasPromptedAnalytics to true when going through the onboarding flow

* Add comments

* Show the analytics prompt after migrating if needed as well

* test: add a few more tests for analytics activity

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-15 16:33:21 +02:00
Eric Reynolds
67c2899e1d
fix(tracking data) - Honor data sharing (#3264)
* fix(tracking data) - Honor data sharing

* Utilizes the Data Sharing preference to determine what data is
sent to the notification endpoint

* fix(tracking data) - Move 2 variables that fall under Service Data

* Stop sending aggregated metrics to the notification endpoint

* Disable sending of segment events when analytics are disabled

Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
Co-authored-by: David Marby <david@dmarby.se>
2021-04-07 10:37:11 -07:00
Sayooj Sojen
351afde43f
Expose identity token for oauth2 (#3211) 2021-04-05 13:03:34 -04:00
Opender Singh
3b2306adb2
Improve git clone behavior when working with repositories with existing files (#3247) 2021-04-05 11:50:55 -04:00
Dimitri Mitropoulos
45c210eb41
SSH/SCP/HTTPS git URLs with/without .git suffix; update isomorphic-git
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-01 14:36:11 +13:00
Opender Singh
e094a1f678 lib@2.2.33 2021-03-30 10:03:21 +13:00
Opender Singh
0fb89dbec0 chore: bump version 2021-03-30 09:59:45 +13:00
Mike Ellan
643baafb99
Scroll support for unit testing (#3231)
Addressing unit testing scrolling regression.
2021-03-25 08:53:51 -04:00
Opender Singh
6e62f75839 Merge branch '2021.2.1' into develop 2021-03-25 11:18:42 +13:00
Opender Singh
f55dca8a41 lib@2.2.32 2021-03-25 09:57:06 +13:00
Opender Singh
f48d40a849 feat: bump node-libcurl 2021-03-25 09:56:14 +13:00
Mike Ellan
a115d360f9 Bumping version 2021-03-24 14:56:55 -04:00
Opender Singh
3fb647c007
Present Kong Admin API connection errors to user (#3205) 2021-03-24 15:38:09 +13:00
Opender Singh
ea711da7e0 Merge branch 'release/2021.2' into develop 2021-03-24 10:16:57 +13:00
Opender Singh
ba2871958b lib@2.2.31 2021-03-23 11:48:55 +13:00
Opender Singh
d200ea03ac chore: bump version 2021-03-23 10:04:12 +13:00
Mike Ellan
1052e2c489
Updating cards to display accurate latest change timestamp (#3201)
Updating cards to display accurate latest change timestamp
2021-03-22 14:58:30 -04:00
Mike Ellan
fd46942a6f
Integrating loading state, refreshing props > re-paint (#3208)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-03-22 14:39:33 -04:00
Opender Singh
c7714c2d21 chore: bump version 2021-03-19 16:26:15 +13:00
Opender Singh
eff9cda1b2
Use workspace scope enum everywhere appropriate (#3199) 2021-03-18 11:37:32 +13:00
Opender Singh
42aff871b3
Fix password editor props (#3200) 2021-03-18 10:10:44 +13:00
outils-tiers-metafactory
224cb13aa6
Closes stream to unlock file (#3015)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-03-18 10:09:30 +13:00
Mike Ellan
47dd90a22b
Rename workspace scope from designer to design (#3194)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-03-17 12:28:12 +13:00
Yunyu Lin
04d04850e8
Upgrade Electron to 9.3.5 (#3000)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-03-16 09:23:56 +13:00
Florian Stellbrink
565f389d36
Add OS dark mode support (#2868)
* Add settings for color scheme detection and themes

Default light and dark themes can still be changed.
For now its studio-light and default for core, and studio-dark and studio-light for designer.

* Add color scheme type and supporting methods

The detection of dark scheme is based on the background color at the moment.
This seems to work pretty well, but is not an ideal solution.
I think themes should at least get to override this.

* Add support for choosing light and dark theme to settings

This adds a checkbox to the theme settings that determines whether we use the OS color scheme.
If we don't (default) everything stays the same as before.
If we do, themes are rendered in two groups. One for the light themes and one for the dark themes. They can be chosen independently. None of this overrides the default theme choice.

* Add padding to the theme settings tab

Themes are still aligned by adding negative margin.
A bit of a hack, open for suggestions.

* Update theme on OS color scheme change

* Replace usages of setTheme with applyColorScheme

This makes sure that we don't override the user's choice.

* Update packages/insomnia-app/app/plugins/misc.js

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

* Remove dark mode heuristic

* Remove unused button value

* Update theme settings design

* Update packages/insomnia-app/app/ui/components/settings/theme.js

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

* Update packages/insomnia-app/app/ui/components/settings/theme.js

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

* Replace object literal lookups

Do not use object literal lookups to make code more readable

* Remove unused parameter

* Disable default theme select when auto detection is enabled

* Fix imports after rebase

* Update packages/insomnia-app/app/ui/components/modals/settings-modal.js

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

* Update packages/insomnia-app/app/ui/components/modals/settings-modal.js

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

* Remove theme header

* Disable hover animation and border on disabled theme buttons

* Clean up double negation in css

Replace :not(:disabled) with :enabled. Not sure what I was thinking there.

* Update index.js

Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-03-13 16:38:54 +13:00
Opender Singh
7aa56ef7f6
chore: remove redundant code (#3146) 2021-03-11 10:46:09 +13:00
Mike Ellan
84b9b84fdf
Card order by date modified (#3170)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-03-10 17:33:38 +13:00
Mike Ellan
f1539e2b40
On create nav to new (#3174) 2021-03-10 11:55:45 +13:00
Opender Singh
19d5a28e9e
Fix saving of number preferences (#3165) 2021-03-10 10:50:35 +13:00
Opender Singh
dc150ff015
Better handling of .DS_Store files during migration (#3164) 2021-03-10 10:45:59 +13:00
Opender Singh
2d5a78687e chore: bump version 2021-03-09 17:34:03 +13:00
Opender Singh
3a16a9daca lib@2.2.30 2021-03-05 08:56:48 +13:00
David Marby
460ab0168f Bump the version 2021-03-04 19:59:56 +01:00
Opender Singh
2c9bffd84c
Rename Workspace verbiage (#3145) 2021-03-04 19:09:34 +01:00
Opender Singh
d68509e81d
chore: update documentation links (#3144) 2021-03-04 14:33:46 +01:00
Opender Singh
23c05c4bb9
Pluralize document count label (#3143) 2021-03-04 11:51:38 +13:00
Dimitri Mitropoulos
c28aad3d8e
fix for sparse array in diff (#3142)
* fix for sparse array in diff

* updates test
2021-03-03 17:27:04 -05:00
Opender Singh
a7784d4160
Fix & add smoke tests (#3136)
* chore: refactor

* chore: fix one test

* chore: fix all tests

* chore: fix all existing tests

* chore: add prompting tests

* chore: ignore flaky test for now
2021-03-04 09:00:56 +13:00
David Marby
4dd6fc476a Bump version 2021-03-03 19:55:56 +01:00
Opender Singh
da3305cb42
Validate migration directories exist (#3137) 2021-03-03 19:43:17 +01:00
SaintAPI
f1dbd4fdd3
fix: only change environment on fresh import (#2979)
Co-authored-by: SaintAPI <comfygangsta@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-03-03 10:22:12 -08:00
SaintAPI
a2bc704f80
Differential (Additive/Removal) patching when switching between design / debug (#3124)
* fix(import) do differential patching for design activity imports

This patch adds differential patching for imports that occur during the switching between
design and debug tabs inside of Designer. As reported through #2971, and others, this patch
favors existing data over imported data, values that exist already on the document will remain
unchanged, only new values (including array based values) will be added / removed.

This also includes a bypass feature for urls, currently these options are not exposed through
the interface but could be. This feature is an object to allow for future properties for
preference-based patching.

- Adds `options.enableDiffBasedPatching` and `options.enableDiffDeep` to `importRaw` for backwards compat.
- Adds `options.bypassDiffProps.url` for url bypassing and use an object for future items.
- Adds `diffPatchObj` based on differential patching for objects (works with arrays as well).

Future ideas:

- `hasBeenModifiedByUser` property map object to allow changing properties that haven't been touched by the user with options.

fixes: #2971, #2882, #3038, #2442

* adds some basic tests

- also adds jest (which was (mistakenly) not there before)
- does not call `.hasOwnProperty` directly, per https://eslint.org/docs/rules/no-prototype-builtins (which, we will add more formally at a later date)

* don't special-case workspaces

this ensures the behavior of the initial PR is more preserved

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-03-03 12:57:09 -05:00
Mike Ellan
4e09e684d2
Migration flow stylistic updates (#3132) 2021-03-03 15:43:37 +13:00
Opender Singh
847bb58aec fix: add back app to the build context 2021-03-03 11:41:23 +13:00
Opender Singh
5ba91ceb21 lib@2.2.29 2021-03-03 11:12:19 +13:00
Opender Singh
8de837bc05 Bump version 2021-03-03 11:09:25 +13:00
Opender Singh
049964bb9b
Prompt for import as collection or document (#3130)
* feat: add prompt and update import logic

* feat: update usages and plugin api

* chore: WIP

* chore: convert to options

* chore: don't create workspace model until needed

* chore: add OR condition

* chore: add workspace name and don't change scope

* feat: prompt with appropriate name

* chore: rename

* chore: rename type

* chore: update signature

* chore: properly type the import functions

* feat: don't activate the workspace after importing

* chore: show loading on homepage

* fix: typo

* chore: fix tests and rename

* Update packages/insomnia-app/app/common/__tests__/import.test.js

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

Co-authored-by: David Marby <david@dmarby.se>
2021-03-03 10:16:48 +13:00
Dimitri Mitropoulos
4b993a7762
style updates for core theme (#3134)
[INS-452]
2021-03-02 11:14:19 -05:00
Opender Singh
edd447f38e
Add migration analytics events (#3123) 2021-03-02 12:13:51 +13:00
Opender Singh
00084b65f9
Update workspace or api spec name as appropriate (#3122) 2021-03-02 10:32:32 +13:00
David Marby
f445034738
Portable windows builds (#3125)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-02-28 15:54:18 +01:00
David Marby
e1812efdb3
Add initial segment events (#3121) 2021-02-26 20:57:19 +01:00
Opender Singh
6f3d2666f8
Add option to disable migrating workspaces (#3108) 2021-02-26 12:01:46 +13:00
Tharun Rajendran
3b81808e1d
show inline reveal password option for auth (#2974)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-02-26 11:14:11 +13:00
Forrest
ff1c70f437
Set a minimum value for fontSize setting (#3042)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-02-26 10:48:23 +13:00
David Marby
1b718165d7
Update the website links (#3120) 2021-02-26 10:33:38 +13:00
Opender Singh
b8f76deff9
Add plugin bundle to default config (#3092) 2021-02-26 10:10:21 +13:00
Opender Singh
eac7eb3535
Handle unsupported activity values (#3116)
Co-authored-by: David Marby <david@dmarby.se>
2021-02-26 09:55:07 +13:00
Opender Singh
f654f49dfb
Onboarding flow ent to end tests and automatic screenshots on failure (#3106)
Co-authored-by: David Marby <david@dmarby.se>
2021-02-26 09:39:59 +13:00
Opender Singh
5e31295174
Update onboarding flow (#3101) 2021-02-26 09:13:37 +13:00
Opender Singh
958ba79256
fix: remove button nesting (#3100) 2021-02-23 09:16:56 +13:00
David Marby
4064e85781
Bump the axios version (#3082) 2021-02-16 16:45:21 +01:00
Opender Singh
fdff07a81e
Update pull and create dropdown styling (#3080) 2021-02-16 17:07:26 +13:00
Opender Singh
07b4a1a527
Move config generators into workspace dropdown (#3079) 2021-02-16 15:16:45 +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
cf24515d48
Migration verbiage changes (#3073) 2021-02-12 09:18:34 +13:00
Opender Singh
b6247b8b4e
Update layout of the homepage (#3069) 2021-02-11 12:37:10 +13:00
Opender Singh
ba19f3c999
fix: should only open as design document if scope is designer (#3068) 2021-02-11 09:39:20 +13:00
Opender Singh
29fed74346
Data migration workflow from Designer to Core (#3051) 2021-02-10 08:55:30 +13:00
David Marby
09e910df57
Stop automatically appending .git to git repository URLs (#3054) 2021-02-09 09:17:47 +01:00
Gerry Tan
021b9f5810
Strips newlines when parsing GraphQL curl command (#2888)
Co-authored-by: Eric Reynolds <reynolek@gmail.com>
2021-02-09 14:00:53 +13:00
David Marby
5d7ebe84d5
Update the account URLs (#3047) 2021-02-05 11:58:28 +01:00
Giuseppe B
c06b504a12
Updating webpack configuration for development (#3043)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-02-04 10:29:15 +13:00
Opender Singh
4f062dbb28
Remove more designer and APP_ID code (#3040) 2021-02-03 20:07:11 +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
99b75213e0
Add migration for workspace scope and apply defaults (#3031) 2021-02-02 16:02:17 +13:00
David Marby
1e9868152c
Generate the bundled ssl trust store at compile time (#3030) 2021-01-28 11:46:19 +01:00