Commit Graph

1310 Commits

Author SHA1 Message Date
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
Mike Ellan
81e16a1c97
parameter style fix (#3256)
Setting parameter style to form if not provided.
2021-04-09 14:56:49 -04: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
da9ef1a009
Inject custom vars in target servers (#3237) 2021-03-25 09:23:54 -04: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
David Marby
05dfa7fa48
Replace Netlify with Vercel for Storybook (#3212) 2021-03-19 14:52:45 +01: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
7ca6c09c44
Deploy to portal smoke test works again (#3198) 2021-03-18 10:11:13 +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
8c724a30ed
Updating readme for single app merge (#3197) 2021-03-17 12:30:21 +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
dbb4070c7a Stop marking inso as private 2021-03-04 20:00:04 +01: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
01797751ac Ignore inso publish and update package-lock 2021-03-03 11:09:16 +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
David Marby
3ea65b4240
Use the correct the application data directory for inso (#3114) 2021-02-26 18:41:15 +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
Dimitri Mitropoulos
eb4ae99f84
use operationId where possible in o2k generation (#3072)
* use `operationId` if it exists for route name
* adds precedence for x-kong-name usages
2021-02-16 16:34:34 -05: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
Dimitri Mitropoulos
770be1b924
makes all route paths regexes in o2k (with ending markers) (#3066)
* adds jest to openapi-2-kong so tests can run
* removes special case since everything is a regex
* updates tests now that everything is a regex
2021-02-10 10:38:30 -05: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
David Marby
4edff40319
Bump the node-forge version for insomnia-send-request (#3053) 2021-02-09 06:25:53 +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
Opender Singh
b135a2c637
Prevent deletes and validate proto files when uploading a directory (#3024) 2021-01-28 11:00:43 +13:00
Fabriece Sumuni
7d89bc5b20
feat: remember the last used import Uri (#3018)
* feat: remember the last used import Uri

* refactor: move setItem call to importExport
2021-01-28 09:59:39 +13:00
David Marby
68949619fe
Remove legacy sync (#3028) 2021-01-27 13:01:53 +01:00
Josh Soref
b4862d8270
Log in (#3021)
* grammar: Log In/Log Into

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* grammar: Sign Up

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-01-26 19:36:47 +13:00
Opender Singh
c2e458ca1f
Add folder and file icons to proto files list (#3023) 2021-01-26 10:14:24 +13:00
Opender Singh
1fe337dd2d
Sync & Export support for ProtoDirectory (#3014) 2021-01-25 16:27:36 +13:00
Opender Singh
42ab4e4465
Multi proto file support (#3006) 2021-01-25 15:50:53 +13:00
Nate
139095de5a
Added ancestor tracking to example JSON objects to avoid infinite loop (#2919)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-01-22 15:28:32 +13:00
Opender Singh
32faadeb8c
Fix sizing in vertical layout while design preview is hidden (#3008) 2021-01-22 10:18:58 +13:00