Commit Graph

2354 Commits

Author SHA1 Message Date
Filipe Freire
0cb6ab18c3
INS-2697: adjust first time user experience (#6015) 2023-06-07 14:05:06 +00:00
Jack Kavanagh
9d735b9f4a
upgrade some bundling deps (#6000)
* upgrade some deps

* downgrade execa

* remove get-bin-path

* bin path

* update execa api

* update execa

* update execa

* use old api

* locks

* revert pkg upgrade

* pin pkg at 5.8.3
2023-05-30 09:56:51 +00:00
Filipe Freire
7b74188e91
fix #5976: set content-type on openapi3 imports (#5982)
* fix #5976: set content-type on openapi3 imports

* cr improvements

* fix

* fix
2023-05-23 15:56:26 +00:00
Filipe Freire
1b87404649
INS-2639: add kong 3.x support for inso generate k8s config (#5977)
* INS-2639: add kong 3.x support for inso generate k8s config

* Update packages/openapi-2-kong/src/kubernetes/generate.test.ts

Co-authored-by: Michael Heap <m@michaelheap.com>

* test

---------

Co-authored-by: Michael Heap <m@michaelheap.com>
2023-05-22 13:15:06 +00:00
Filipe Freire
1005897417 Bump app version to 2023.2.2 and lerna package versions 2023-05-17 14:28:10 +00:00
Filipe Freire
5ed99dbc20 v3.16.0 2023-05-17 14:27:49 +00:00
Filipe Freire
9d2bde7656
fix #5969 cannot select base environment (#5970)
* fix #5969 cannot select base environment

* CR fix

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

* CR fix

* Update workspace-environments-edit-modal.tsx

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2023-05-17 13:08:36 +00:00
Thijs Schreijer
480f9c0a36
update test to expose bug in regex generation (#5974)
* update test to expose bug in regex generation

sanitizing the path-variable name is not done correctly, as it sanitizes the entire path. So it also makes unintended changes.

* fix failing test, add +1 test

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-05-17 11:25:58 +00:00
Filipe Freire
54b700c327
INS-2633: fix self-hosted git url compatibility (#5968) 2023-05-16 15:01:56 +00:00
Filipe Freire
62f7f3d74f
chore: fix prerelease environment editor tests (#5964) 2023-05-15 16:20:52 +00:00
Jack Kavanagh
d7b0d0f8db
fix debugger in dep (#5963) 2023-05-15 16:07:25 +00:00
Jack Kavanagh
81d85af39c Bump app version to 2023.2.1 and lerna package versions 2023-05-15 14:27:18 +00:00
Jack Kavanagh
3c6cb084f9 v3.15.0 2023-05-15 14:27:04 +00:00
Filipe Freire
96b36d9c28
INS-2627: sanitize path-variable name regex capture for kong 3.x (#5958)
* INS-2627: sanitize path-variable name regex capture for kong 3.x

* add slugify, and extract function

* sanitize path param in plugins.ts
2023-05-15 13:57:39 +00:00
Jack Kavanagh
ea43bacfd2
show errors from the introspection (#5919)
* better error message

* remove log

* use narrower selector

* null check error
2023-05-15 09:06:53 +00:00
Filipe Freire
28f6e1803b
INS-2497: prevent git sync parse failure (#5954)
* INS-2497: prevent git sync parse failure

* fix import and add tests

* CR improvements
2023-05-15 09:03:59 +00:00
Filipe Freire
f5d6d529a5
Add drag and drop to 'Manage Environments' (#5940)
* wip: environments drag and drop with react-aria

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

* wip

* wip

* 1st working version

* wip

* working!

* wip

* rm outline

* type issues

* add redux hack

* set active

* refactor and rename

* add aria label to fix warning

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: jackkav <jackkav@gmail.com>
2023-05-09 14:13:57 +00:00
Filipe Freire
953ed0d80c
fix: #5922 logo is too large for MacOS (#5927) 2023-04-28 10:03:51 +00:00
Jack Kavanagh
bc5b9c5a36 Bump app version to 2023.2.0 and lerna package versions 2023-04-26 10:15:01 +02:00
Jack Kavanagh
5e21213a8a v3.14.0 2023-04-26 10:15:01 +02:00
James Gatz
d73d7c3324
Return null from actions that return nothings (#5917)
* fix returning null

* return null from actions that return nothing
2023-04-25 15:51:30 +00:00
Jack Kavanagh
0e55e0682f
oops (#5916) 2023-04-25 14:49:05 +00:00
Filipe Freire
47a1cea2be
Add better support for binary data on WebSocket connections (#5897)
* add /binary data endpoint to smoke test server

* add function to deal with diff event.data types

* step 1

* step 2

* final step

* CR improvements

* update deps & fix type-check
2023-04-24 16:40:51 +00:00
Jack Kavanagh
12d027fc24
toggled Swagger UI representation in spec designer (#5895)
* show a button

* re-add swagger-ui-dist

* can toggle right pane
2023-04-24 16:20:18 +00:00
James Gatz
5d077d5544
Import from command (#5901)
* app-commands remove unused prop

* add default value to import modal and move app commands hook to root

* remove use-app-commands

* fix on close handler

* check the previous value to avoid clearing the fetcher

* update from type to remove weird states

* second pass at useEffect

* add useFetcher discussion

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-04-21 13:04:31 +00:00
Zhizhen He
9f64e6de65
fix typos (#5896)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-04-21 10:32:30 +00:00
Filipe Freire
53db74ff6b
INS-2565: set coverage threshold to 35% min (#5903)
* INS-2565: set coverage threshold to 35% min

* improvement
2023-04-20 13:32:47 +00:00
Filipe Freire
53fe8865c8
chore: bump playwright to 1.32.3 (#5904) 2023-04-20 10:13:17 +00:00
James Gatz
48ab626938
Update the app loading indicator (#5900)
* update loading indicator

* sort orgs:projects to display them in the correct order

* update loading indicator
2023-04-19 11:19:06 +00:00
James Gatz
3913163fda
Feature/ins 2505 insomnia app improvements (#5894)
* style active items in the sidebar

* add sidebar style to test suite list

* redirect on the last opened organization route when switching orgs

* update navigation to work as going back to the previous open project
2023-04-18 08:53:08 +00:00
James Gatz
650897ac5c
guard against null requests in the history dropdown (#5890) 2023-04-13 09:54:10 +00:00
David Sandoz
76420c6748
Fix icon to follow Apple app icons best practices (#5867)
* Fix icon to follow macOS guidelines

Refs Kong/insomnia#2788

* Update icon with one created by the Insomnia team

Co-authored-by: Erick Rico <erick.rico@konghq.com>

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Erick Rico <erick.rico@konghq.com>
2023-04-03 10:38:54 +00:00
gatzjames
afcc5d300e
git prerelease tests update 2023-03-31 20:21:12 +02:00
gatzjames
afff7b1da7
make unary selector more specific 2023-03-31 19:49:33 +02:00
gatzjames
4c7922a046
fix unit test selection 2023-03-31 19:06:46 +02:00
gatzjames
9565391291
use the first sub-environment on new workspace imports 2023-03-31 18:33:41 +02:00
Filipe Freire
17b7cab641 rm workaround on env editor test 2023-03-31 17:28:54 +01:00
Filipe Freire
cb1d3718e2 fix env editor tests 2023-03-31 17:09:31 +01:00
Filipe Freire
443dfc1535 fixes to prerelease smoke tests 2023-03-31 16:46:58 +01:00
Filipe Freire
59019f0fa1 Bump app version to 2023.2.0-beta.1 and lerna package versions 2023-03-31 11:20:12 +00:00
Filipe Freire
44b3f3748a v3.14.0-beta.1 2023-03-31 11:19:54 +00:00
Alexander Samsig
e2d672ab04
Change environment variables generated by OpenApi and Swagger importers to use underscore-dot syntax, instead of custom variable access. (#5807) 2023-03-31 10:54:45 +00:00
89ht
0d26ad6323
Support charset information on swagger2 data import (#5781) (#5812) 2023-03-31 10:53:37 +00:00
Nick Hackman
bed21be8af
cURL: Support all --data flags and fix parsing of key=value pairs (#5818)
* test(curl): data-urlencode support key=value pairs

Updates tests to support key=value pairs in urlencode

Issue: https://github.com/Kong/insomnia/issues/5696

* fix(curl): data-urlencode support key=value pairs

Splits out the logic to handle the cases for the --data-urlencode flag from cURL.

docs: https://curl.se/docs/manpage.html#--data-urlencode
Issue: https://github.com/Kong/insomnia/issues/5696

* feat(cURL): support all data flags

This refactors the current implementation for handling --data[suffix] flags from cURL supporting all possible formats outside of reading files into Insomnia.

docs: https://curl.se/docs/manpage.html

Issues: https://github.com/Kong/insomnia/issues/5696, https://github.com/Kong/insomnia/issues/5400

* test(cURL): support all data flags

Combines a lot of tests and covers all cases provided in the cURL man pages.

* style: lint
2023-03-31 10:53:32 +00:00
James Gatz
29acc92559
Improve import UX (#5869)
* add import routes and modal

* fix paths

* fix paths

* save

* remove import.ts

* ui

* save

* fix tests

* fix tests

* fix tests

* remove outdated test

* update import tests

* lint and ts fixes

* add section title and fix some style issues

* close modals on import success

* error handling for empty content

* fix api spec imports

* Simplify importResources function

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>

* cleanup

* settings import button styles

* remove comment

* update tests

* comment for app-command imports

* fix test lint error

* update comments

* comment out app/import for now

---------

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>
2023-03-31 10:53:22 +00:00
James Gatz
5322001ab0
Fix scope filter on project view. (#5856)
* change empty scope to all and update selection mode

* don't allow empty selection
2023-03-21 15:06:39 +01:00
Dave Nicolson
55b5260aa4
Render webviews in UTF-8 (#5836) 2023-03-15 09:48:07 +00:00
Filipe Freire
dc7046f343 Bump app version to 2023.2.0-beta.0 and lerna package versions 2023-03-14 15:26:58 +00:00
Filipe Freire
ceeb05d6e6 v3.14.0-beta.0 2023-03-14 15:26:43 +00:00
James Gatz
83f96d5f6d
improve error handling for failed git fetch (#5844) 2023-03-14 15:19:16 +00:00