Commit Graph

96 Commits

Author SHA1 Message Date
Jack Kavanagh
56e8f36a71
Test/move-to-smoke (#6420)
* remove line that flakes

* remove sort from filter test

* move some prerelease to smoke

* flatten and fix test

* fix test locator
2023-08-30 10:57:14 +02:00
James Gatz
a9f32d9241
update to document rename tests (#6413) 2023-08-29 11:29:13 +00:00
Filipe Freire
df77275576
chore: Add test to check for backups on new version to critical tests (#6403)
* chore: Add test to check for backups on new version to critical tests

* check for backups folder contents

* change env var on gh actions file

* fix
2023-08-28 14:06:47 +00:00
James Gatz
81039277af
Project route UI improvements (#6400)
* project tailwind/aria-components

* update tests

* add failing test

* update e2e tests

* fix workspace name issue

* fix scroll issue

* bye test

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-08-28 15:53:37 +02:00
Jack Kavanagh
5407006663
Paste curl modal (#6384)
* remove pad left on pinned

* refactor filter logic

* first pass

* always create new curl req

* use terminal icon

* fix from curl folder

* wire up request create

* fix paste curl in url bar

* fix types

* fix test

* fix for initial draw isvalid check

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-08-25 15:18:48 +00:00
James Gatz
15edd954a4
UI improvements - Debug Sidebar - drag and drop sort and filter (#6323)
* make it work

* wip

* manual sort

* wip

* fix dnd

* collapsed sub-folders

* fix reorder on scroll

* ws, grpc labels

* environments modal

* draft-filter

* ancestors

* sorting take 2

* pin/unpin

* drag and drop only for manual sort order

* context menu actions

* remove react-dnd

* request group plugins

* plugin actions

* cleanup type

* more type cleanup

* remove unused file

* add connection status for ws/sse

* update smoke tests

* cleanup condition in reorder action

* await await

* plug pluggins

* update prerelease tests

* prerelease tests

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-08-22 16:12:29 +00:00
Filipe Freire
59c07bc461
fix: #6334 updating requestgroup caused render error (#6342)
* fix: #6334 updating requestgroup caused render error

* add test

* fix rename

* redirect on move

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-08-22 09:18:25 +02:00
Jack Kavanagh
8fa8b9beb8
fix export from outside workspace (#6307)
* add test

* simplify export requests modal logic

* fix export

* fix type check

* fix test
2023-08-18 11:19:35 +02:00
Jack Kavanagh
5ecc3aba4a
Fix/prerelease-tests-again (#6322)
* fix cookie flake

* fix dropdown selector
2023-08-18 10:38:19 +02:00
Jack Kavanagh
f83ccbb36f
Fix/prerelease-tests (#6314)
* dashboard tests

* fix prerelease tests
2023-08-17 15:18:48 +01:00
Jack Kavanagh
3d4c4dd2d4
fix (#6303) 2023-08-16 22:24:29 +02:00
Jack Kavanagh
2d3e4e4b3c
Paste from Curl (#6295)
* test curl fill

* clean up updatemimetype

* clean up mime type setting

* add from curl request type

* remove paste handling

* add request group dropdown button

* fix test

* comment out from curl test
2023-08-16 11:45:20 +02:00
Jack Kavanagh
917905e27e
fix httpsnippet validation error (#6283)
* add e2e

* add check for curl output

* match up httpsnippet versions

* remove ajv
2023-08-15 13:26:55 +02:00
Jack Kavanagh
87953708ab
git sync ux add->authenticate (#6260)
* add->authenticate

* update doc

* fix test
2023-08-11 11:54:39 +00:00
Jack Kavanagh
96011e8db5
add critical smoke tests to avoid broken beta deploy (#6259)
* fix lint errors

* use only ubuntu for tests

* add critical test to release recurring

* fix path

* fix paths again
2023-08-11 08:22:01 +00:00
jackkav
a8e436ea1d fix prerelease tests 2023-08-04 22:30:00 +02:00
Jack Kavanagh
454319f487
remove redux (#6225)
* workspaces fetcher

* sync items branches

* cond render two sync modals

* use ws loader

* move vcs hook

* remove redux

* remove redux

* lock file

* fix prerelease
2023-08-04 19:17:18 +02:00
Jack Kavanagh
52e969d803
response routing (#6214)
* pass 1

* refactoring notes

* simplify select children

* remove switcher

* add responses

* filter by env

* patch settings

* patch settings

* remove selector

* history dereduxed

* move folder settings to conditional render

* fix types

* fix types

* fix types

* fix types

* fix lint

* migrate group settings to remix

* fix use effects

* conditional render of export modal

* more sidebar refactoring

* unpack sidebar children in export list

* unpick sidebar children

* clean up

* remove console log

* mostly working connect

* clean up

* conditionally render cookie modals

* cond render env modal

* cond render sync delete

* fix

* fix

* flatten syncitems

* remove helper

* clean

* fix grpc initial re-render

* redirect to last active request

* optimize

* fix lint

* improve typing

* add settings hotkey

* env modal hotkey

* remove active response null setting

* fix shakey test

* move delete response to action

* fix type

* fix windows flake

* cond render sync branches

* fix loading bug

* add spinner

* delete request

* fix stream with temporary hack
2023-08-04 12:42:00 +02:00
Jack Kavanagh
97de81107c
Fix prerelease smoke test flake (#6210)
* flatten

* fix title

* fix button flake and aria labels
2023-07-28 10:08:35 +02:00
Jack Kavanagh
6b9cc35719
redux removal part 2 (#6198)
* remove selectors

* fix type

* fix prerelease plugin test

* remove redux tests

* add cookie jar update function

* fix typing hack

* fix type
2023-07-26 11:34:34 +02:00
Jack Kavanagh
3cdd4c8491
SSE/EventStream support (#6147)
* new request

* add button

* s

* fix formatting issue

* detect event stream

* hide dropdown

* wip

* add basic test

* pass 1 can make connection

* implement event stream open pass 2

* wire up ready state

* wiring up close and error pass 3

* can open and close connections

* clean header

* listen to timeline

* extract options to function

* fix bug in ws

* add debug stuff to timeline

* don't rely on redux to set active response

* fix close type

* rename sse to event stream

* get request flag from request model

* copy websocket response pane

* hide response data

* flatten ws and curl responses

* fix test

* fix catch

* reset file

* use realtime event watcher

* rename some files

* fix types

* fix e2e test

* fix lint

* consistent empty states

* pin to bottom

* remove todo

* add SSE logo

* add sse to readme
2023-07-19 09:58:37 +00:00
Jack Kavanagh
6f60482853
fix gitsync (#6152)
* buffer in node rather than the renderer

* handle no internet
2023-07-13 19:09:02 +02:00
James Gatz
5b7f45e910
Universal Insomnia/Git Sync for all files (documents/collections) (#5945)
* share design documents and tests with insomnia sync

* share collection and documents with insomnia/git sync

* checkpoint

* redirect when cloning (pulling) a new remote project

* backend workspace card

* redirect logic

* local changes styles

* loading indicator

* fix sync button styles

* use interval to refetch git

* open the repo modal first before switching to git sync

* use gitRepositoryId from metadata

* fix sync option update

* cleanup fetcher check

* fixes

* cleanup pull-push

* undo logo change

* clean git-vcs

* use cloud icon for insomnia sync

* cleanup card

* more cleanup

* better return type for fetchfetcher

* update git tests

* fix tests

* fix some prerelease tests

* fix cloning without an api spec

* fix some more tests that expect a file to exist

* fix lint error
2023-07-05 16:51:55 +00:00
Jack Kavanagh
90b9516d55
make all migration functions non-async (#6043)
* make all migration functions non-async

* migrate is not a promise

* simplify scope migration

* remove apispec and fix test

* fix tests

* fix tests, for real this time

* removed api spec from collection

* default doc name to my-spec.yaml again

* fix apispec typing

* remove pointless generic

* fix type

* Create an api spec on first launch

* Remove flaky firstLaunch data creation

* fix test

* create apispec only when scope is deisgn

* oauth test left

* gitlab test

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2023-06-27 20:46:43 +02:00
Jack Kavanagh
d1106381ee
add support for multiple workspaces in one import file (#6044)
* many ws

* squashed import commits

* split import to project and workspace

* import logic

* fix the collection to design bug

* rename type

* fix tests

* tidy workspace loader

* multiple ws imports should always create new ws

* fall back to default project

* env var to bool

* fix tests

* fix app/import

* provide import context in title

* fix api spec import

* clean up

* ask about private envs everytime

* fix loading

* fix export private dialog
2023-06-27 15:43:51 +00:00
Filipe Freire
62f7f3d74f
chore: fix prerelease environment editor tests (#5964) 2023-05-15 16:20:52 +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
Jack Kavanagh
0e55e0682f
oops (#5916) 2023-04-25 14:49:05 +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
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
Filipe Freire
97a4d10048
INS-2434: basic Kong 3.x support on Inso CLI (#5827)
* INS-2434: Kong 3.x support on Inso CLI

* fix test

* Add basic support for kong 3.0 on Insomnia UI
2023-03-14 15:17:28 +00:00
Filipe Freire
34f22bb648
fix windows pdf request smoke test flake (#5729) 2023-01-27 09:28:00 +00:00
Filipe Freire
bfb2821993
Environment Editor PreRelease Smoke Tests (#5502)
* Create initial test file and fixture

* fix create environment dropdown minor bug

* Add tests, datatestid & edit fixture
2023-01-26 08:39:32 +00:00
Filipe Freire
7417acb7b9
Git Sync prerelease tests (#5705)
* WIP-clone-bad-values

* WIP

* test

* WIP-clone-bad-values

* WIP

* wip

* Git-Sync-Test

* improve a bit the locators

* Update settings.json

* fix role from button to menuitem

Co-authored-by: kreosus <kristofer.huffman@konghq.com>
2023-01-20 16:04:50 +00:00
Pavlos Koutoglou
e38ece1ab7
Feature/ins-2070-bug-updowntabshifttab-not-working (#5615)
* Update version of react-aria package

* Create dropdown hint component

* Create dropdown button component

* Create the popover component

* Create the menu item component

* Create the menu section component

* Create the menu component

* Create the dropdown related components

* Change the hotkey html tag

* Added full width option for prompt-button

* Replace the dropdown with the new

* Add some default props for dropdown

* Used themed button into dropdown button

* Added style prop for dropdown

* Remove checkmark from menu item

* Added styled props to popover

* Remove inner button from account toolbar

* Added new dropdown into cookie-list

* Revert package update

* WIP

* Delete button component and replace it's usage with dropdown button

* Fix spacing

* Added className for code-editor dropdown

* Remove the old dropdown

* Change import

* Revert some ref changes

* Added ref to dropdown

* Fixed some styles

* Fix issues like autosave and added isDisable prop

* Add title

* Remove insomnia-common imports

* Remove insomnia-common imports

* Fix code format

* Change style and fix code format

* Fix styles

* Replace dropdown import

* Fix divider style

* Fix last icon in sidebar create dropdown

* Fix issue with dropdown and the resizing screen

* Fix linter issues

* Moved the prompt button into itemContent component

* Change styled component

* Fix issue with sidebar-request-row to display the dropdown on hover

* Remove the item content in a separate component

* Remove unused css

* Destructure children props

* Fix trigger prop for grpc-method-dropdown

* Added prompt button when user delete test suite

* Hide empty dropdown items from section

* Fix linter issues

* Added Checkmark into item content

* Fix issue with linter and shortcut component

* Fixed linter issues

* Revert fragments

* Fix linter issues

* Added props for multiple select and disable

* Fix close issue with sidebar dropdown

* Update disable and stay open prop for all dropdowns

* Added aria-label for dropdown, section, items

* Added selected style for item

* Added logic for disabled items

* Fixed issue with selected items

* Fix issue with selection of grpc method dropdown

* Added aria-label to code-editor

* Fix issue with onClick and prompt

* Hide sections if it's empty

* Remove on select from item content

* Pass closeOnSelect props in the menu

* Removed dataTestId from dropdown items in request-actions

* Fix debug sidebar dropdown tests

* Change the cookie editor interactions tests

* Fix dashboard interactions tests

* Fix design-interactions tests

* Fixed grpc-interactions tests

* Fix plugins interactions tests

* Fix preferences interactions tests

* Fixed request-pane-tab tests

* Fixed app smoke tests

* Update git-sync smoke tests

* Fix space issue

* Fixed graphql smoke test

* Fixed oauth smoke test

* Fixed oauth smoke test

* Fixed websocket smoke test

* Fixed cookie-editor-interactions tests

* Remove the dropdown unit test

* Made small refactoring and remove unnecessary props

* Fix issue with grpc-method-dropdown

* Change the grpc smoke test

* Added default role props

* Update all tests that use project role

* Remove console.log

* Fix issue with themes

* REmove dropdown import from index.less file

* Remove handleClick and add some comments

* Use getItemCount from react-stately

* Remove method-dropdown css

* Fix shortcut button style

* remove extra space on sync-dropdown

* fix lint

* Remove unused prop

* Fix issue with remote workspace dropdown

* remove divider on first section if empty

* remove unused showGrpc option in method dropdown

* Fix issue with workspace-dropdown

* Fix git-sync-dropdown issues

* Fix issue with remove workspaces dropdown

* Fix sync-dropdown component

* Added disable style

* Moved server reflection and proto file outside of the dropdown

* Fix style when item is selected

* Fix issue with grpc smoke test

* Fix issue with menu props

* Disable server reflection button if url is empty

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2023-01-20 16:49:52 +02:00
Filipe Freire
b7028eb62a
Reproduce GraphQL unknown operation named issue (#5681)
* Add smoke check to reproduce #5665

* add debug code

* clean up

Co-authored-by: Mark Kim <mark.kim@konghq.com>
2023-01-17 10:55:39 -05:00
Filipe Freire
7168d01cf4
Add prerelease test for #5664 / INS-2267 (#5668)
* Add prerelease tests for #5664 / INS-2267

* Add note on how to run non recurring tests

* improve copy
2023-01-13 17:17:01 +01:00
kreosus
08edada6b8
Debug head test (#5638)
* Created Debug Head tests

* Added Open Generate code and copy as curl test

* delete duplicate debug-head file

* trying to add data-testid

* add todo messages

* revert datatestid for codemirror

* revert datatestid for codemirror

* fix

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-11 16:06:46 +00:00
kreosus
6dffc7fcf2
Preferences prelease test (#5603)
* Added Open Generate code and copy as curl test

* Improvements to the Generate code test

* added tests for preferences

* fixed selectors

* fixed test selectors

* removed extra whitespace

* fix lint

* Improve a bit the preferences tests

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-04 17:10:31 +00:00
Filipe Freire
9644f9a7b6 Merge branch 'release/2022.7.0' into develop 2022-12-15 15:14:08 +00:00
James Gatz
f7beb00379
Add routes for git operations (#5523)
* Add repo-clone-modal

* remove unused var

* remove disabled uri input

* clone/setup git repository

* git branches

* log modal and branches modal

* git staging modal

* delete unused file

* remove unused test

* fix test lint

* fix e2e test

* display the correct file type in the staging modal

* fix check all checkboxes
2022-12-15 15:04:38 +00:00
Filipe Freire
25cd66fd1a Fix grpc prerelease smoke check 2022-12-15 14:28:07 +00:00
Filipe Freire
b53187c908
Remove import for existing workspace (#5524)
* Remove import for existing workspace

* remove the new button click from all smoke tests

Co-authored-by: jackkav <jackkav@gmail.com>
2022-12-14 17:47:49 +00:00