insomnia/packages/insomnia-app/app/models
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
..
__mocks__ Add trailing commas to ESLint + Prettier 2018-12-12 12:36:11 -05:00
__tests__ Strips newlines when parsing GraphQL curl command (#2888) 2021-02-09 14:00:53 +13:00
helpers Update workspace or api spec name as appropriate (#3122) 2021-03-02 10:32:32 +13:00
api-spec.js Prompt for import as collection or document (#3130) 2021-03-03 10:16:48 +13:00
client-certificate.js Introduce flow $Shape<T> to db models (#2002) 2020-03-18 11:58:57 -07:00
cookie-jar.js Introduce flow $Shape<T> to db models (#2002) 2020-03-18 11:58:57 -07:00
environment.js Introduce flow $Shape<T> to db models (#2002) 2020-03-18 11:58:57 -07:00
git-repository.js Stop automatically appending .git to git repository URLs (#3054) 2021-02-09 09:17:47 +01:00
grpc-request-meta.js Add support for gRPC request actions (#2794) 2020-11-02 13:55:22 +13:00
grpc-request.js Support template tags with gRPC (#2926) 2020-12-18 00:38:21 +13:00
index.js Data migration workflow from Designer to Core (#3051) 2021-02-10 08:55:30 +13:00
o-auth-2-token.js Introduce flow $Shape<T> to db models (#2002) 2020-03-18 11:58:57 -07:00
plugin-data.js Introduce flow $Shape<T> to db models (#2002) 2020-03-18 11:58:57 -07:00
proto-directory.js Prevent deletes and validate proto files when uploading a directory (#3024) 2021-01-28 11:00:43 +13:00
proto-file.js Prevent deletes and validate proto files when uploading a directory (#3024) 2021-01-28 11:00:43 +13:00
request-group-meta.js Introduce flow $Shape<T> to db models (#2002) 2020-03-18 11:58:57 -07:00
request-group.js Initial designer merge 2020-04-26 13:33:39 -07:00
request-meta.js fix: remove request id validation (#2885) 2020-12-02 09:29:30 +13:00
request-version.js Add support for YAML content type 2019-08-09 12:52:43 -04:00
request.js Strips newlines when parsing GraphQL curl command (#2888) 2021-02-09 14:00:53 +13:00
response.js Add plugin bundle to default config (#3092) 2021-02-26 10:10:21 +13:00
settings.js Update onboarding flow (#3101) 2021-02-26 09:13:37 +13:00
stats.js Add additional metrics to the notification call (#2921) 2020-12-09 17:39:53 +01:00
unit-test-result.js POC for Unit Test UI (#2315) 2020-07-01 14:17:14 -07:00
unit-test-suite.js POC for Unit Test UI (#2315) 2020-07-01 14:17:14 -07:00
unit-test.js POC for Unit Test UI (#2315) 2020-07-01 14:17:14 -07:00
workspace-meta.js Add pull dropdown to homepage (#3074) 2021-02-12 14:52:43 +13:00
workspace.js Prompt for import as collection or document (#3130) 2021-03-03 10:16:48 +13:00