Commit Graph

3757 Commits

Author SHA1 Message Date
Filipe Freire
4606325e78
[INS-2118] Fix missing insomnia-plugin-default-headers for inso CLI (#5375) 2022-11-02 18:19:25 +00:00
Thiago Seus
782c05d872
Add aria-live and aria-atomic to make screen reader and other assistive technologies detect when the HTTP status changes (#5369) (#5370) 2022-11-02 17:37:17 +00:00
Filipe Freire
ef451ef293 Merge branch 'release/2022.7.0-beta.4' into develop 2022-11-02 16:46:25 +00:00
Filipe Freire
d2bfee8d87 Bump app version to 2022.7.0-beta.4 and lerna package versions 2022-11-02 15:05:46 +00:00
Filipe Freire
8bc11f2b89 v3.6.1-beta.3 2022-11-02 15:05:27 +00:00
James Gatz
7cc5c4f98a
fix: Type safe modals (#5368)
* add typescript generics to get modal options

* login and ask modal fixes

* fix git sync modal types

* add request type guards

* auth key row

* ask modal type fixes

* fix typings in state/show modal options

* fix protofiles modal

* fix request settings modal and bring back websocket settings

* allow partial repo in git repo modal

* update nunjucks modal to properly show the template editor

* fix account dropdown test

* fix code editor typing
2022-11-02 14:15:52 +00:00
Jack Kavanagh
34cba80275
Refactor: split editor and input (#5352)
* create new code input component

* remove unused props

* fix

* avoid ref

* remove multiline paste hack

* remove password type from code editor

* split

* listen for onChange/onPaste prop changes

* eliminate onBlur and onFocus

* remove handle

* remove code-input

* fix: update onBlur prop

* optional keyDown

* fix prettify by reverting to old logic

* remove 4 unused  one line editor handles

* onChange required prop

* remove auth input row test

* remove unused onClick

* remove raw viewer, make refs consistent

* unmount editors

* simplify onKeydown

* fix onblur
2022-11-02 13:13:33 +01:00
Filipe Freire
ee90c5c06b
[INS-2105] Fix release-publish deprecation warnings (#5359) 2022-11-02 08:40:36 +00:00
Jack Kavanagh
d9575f498c
reset error state (#5363) 2022-11-02 07:19:57 +00:00
Jack Kavanagh
47d78993b6
codemirror should update on some prop changes (#5361)
* codemirror should update on some prop changes

* remove input from onelineeditor

* remove forceEditor and new row on enter key

* remove brittle test
2022-11-01 14:18:57 +01:00
James Gatz
802e151f8e
remove environment-highlight color setting (#5357) 2022-10-31 11:59:38 +00:00
James Gatz
96487827bc
fix git clone not showing the document in project view (#5358)
* revalidate the data when cloning a document

* properly redirect to a design document
2022-10-31 11:32:23 +00:00
Jack Kavanagh
9d2cb34107
fix codemirror: check and gutter setting (#5354)
* fix check and gutter setting

* remove force focus

* remove row Ref

* ignore focus test

* remove onPaste hack
2022-10-31 10:00:26 +00:00
Filipe Freire
ffaa74e88b
Bump version of release-build dependency (#5342) 2022-10-31 08:54:01 +00:00
Jack Kavanagh
41e3ed8ab7
fix first click on req settings (#5351) 2022-10-28 16:23:29 +01:00
Filipe Freire
b503b54a31
Fix, bundle plugins no longer published on npm (#5348) 2022-10-28 15:50:55 +01:00
Jack Kavanagh
d270573444
remove tag pushing (#5345) 2022-10-28 12:49:45 +00:00
James Gatz
40d294e8ae
Feat/project route data loading (#5327)
* remove activity router

* add global error route

* make vcs a singleton

* move modals outside of root

* add project route data loader

* add project actions

* add rename/delete project actions

* lift data dependencies up and move modals

* add remote projects action/loader

* add overlay to duplicate modal and use invariant in actions

* use revalidate to refetch the route data on imports

* remove unused type checks

* more invariants and some renaming
2022-10-28 12:04:09 +00:00
kreosus
1a09035743
INS-2087 Prelease Test for Plugins (#5337)
Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>

Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>
2022-10-27 17:04:45 +00:00
Filipe Freire
d3bded4fe0
[INS-2078] Dashboard PreRelease tests (#5330)
* [INS-2077] Dashboard PreRelease tests

* Add create,rename,delete project test

* Add test for filter in the dashboard

* Rename/duplicate/delete collection & design tests
2022-10-27 17:49:45 +01:00
Jack Kavanagh
2bdd84ad22
make all packages private (#5339)
* make all packages private

* remove lerna json and publish scripts

* clean up npmignores

* remove major npm github ci logic
2022-10-27 17:55:30 +02:00
Jack Kavanagh
9f624deae0
Refactor/code-editor (#5272)
* code-editor fc

* add useEffect

* one line editor

* row first pass

* drag and drop is broken

* remove row drag and drop

* keyvalueeditor, no focus handling

* remove unused kvpeditor props

* remove autobind

* package lock

* remove decorators

* package lock

* kvp editor diet

* row diet

* one line editor diet

* sort props

* code editor diet

* inline toolbar

* move to right side of kvp

* combine codemirror options settings

* fix

* fix on mount

* polish

* remove lint toggle logic

* make additional claims plain text

* fix button alignment

* fix staging modal

* remove error

* remove placeholder

* minor fixes

* update tabpanel footer

* key value editor toolbar

* add toolbar to key-value editor

* update show/hide details button

* show error on copy as curl

* update onPaste logic to use a ref

* remove unused focus logic

* synchronise graphql features

* remove onInit prop

* fix defaultValue sync

* fix designer imports

* Revert "remove onInit prop"

* simplify gql editor

* simplfy again

* replace operationName

* whatever

* fix graphql editor

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

* fix query variable json handling

* fix focus

* fix root env update INS-2100

* remove unused

* fix filtering

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-10-27 13:11:06 +00:00
Arun Nalla
41320cdd4c
fix: parameter order for date-fns#differenceInMinutes (#5332)
* fix: parameter order for date-fns#differenceInMinutes

* fix: conditionally choose parameter order
2022-10-26 16:17:52 +01:00
Filipe Freire
c501ae9963
Add /delay endpoint to WS express server (#5326) 2022-10-26 08:38:10 +00:00
Arun Nalla
ae2d91c2de
fix: leave focus on send button instead of autochanging to url bar (#5325) 2022-10-25 14:09:38 +01:00
Brian Goad
7dd07ba2fe
Fixes 944 | Remove the check for returning more than one JSON result in Response Plugin (#5192)
* Remove the check for returning more than one result in JSON. If it's an array of objects, the following lines will just stringify. This allows the response to be parsed by JSONPath

* Update test to permit more than one result

* add edge-case

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-25 09:25:39 +00:00
Antoine Jacquemin
d102de2850
Fix how path variables are escaped for Swagger (#5246)
* path escapte fix 

paths in swagger are not correctly escaped and won't be correct. You can try with following swagger:

openapi: 3.0.0
info:
 title: SampleAPI
 version: "1.0"
tags:
  - description: Sample API
    name: Sample Echo API
paths:
  /healthcheck/$echo:
    get:
      parameters:
        - in: query
          name: message
          required: true
          schema:
            type: string
          description: The echo message
      responses:
        "200":
          description: An echo message.
      summary: Return a echo message.
      operationId: getEcho
      tags:
        - Generate echo message
  /batchs(Material='{Material}',Batch='{Batch}'):
    get:
      parameters:
        - in: path
          name: Material
          required: true
          schema:
            type: string
          description: The echo message
        - in: path
          name: Batch
          required: true
          schema:
            type: string
          description: The echo message
      responses:
        "200":
          description: An echo message.
      summary: Return a echo message.
      operationId: getBatch
      tags:
        - Generate echo message
servers:
  - url: https://httpbin.org/anything

* Update test for new regex fix

* Update common.test.ts

* Update common.ts

* Update common.test.ts

* Update common.ts

* Update common.test.ts

* Update common.ts

* Patch-Regex-Text

* Update services.test.ts

* Update httpbin.expected.json

* Update link-example.expected.json

* Update petstore-expanded.expected.json

* Update petstore.expected.json

* Update request-validator-plugin.expected.json

* Update uspto.expected.json

* Update generate.js

* Update generate.js
2022-10-24 16:00:34 -04:00
Jack Kavanagh
38a943d0f3
Remove remaining autobind decorated components (#5321)
* html wrapper

* sidebar request group row

* time from now

* check for updates button

* toast

* plugins

* rename component

* fix plugin load

* add fix for the timenow delay

Co-authored-by: Mark Kim <mark.kim@konghq.com>
2022-10-24 17:28:03 +00:00
Jack Kavanagh
1bf7b7bc2b
refactor: transform git modals to fc (#5179)
* transform git modals to fc

* second pass

* add GitRepositorySettingsModal

* fixes

* tweaks

* sit sync dropdown second pass

* git branches second pass

* git staging second pass

* repo settings second pass

* fix types

* fix button color

* fix refresh
2022-10-24 17:39:14 +02:00
James Gatz
4ca4b54e96
add url shim for swagger-client issue (#5322) 2022-10-24 13:07:25 +02:00
Filipe Freire
8e0c2042b2
Update actions/cache on homebrew.yml (#5313) 2022-10-21 15:39:10 +00:00
Jack Kavanagh
2f76cb0c6d
Remove/debounced-input (#5308)
* first pass

* remove debounced input

* fix onPaste type errors
2022-10-21 15:01:50 +00:00
Jack Kavanagh
4f9027ad94
bump electron 21 (#5173)
* bump electron 20

* bump to 21

* use node 16.16

* remove and bump deps

* package.lock

* fix package lock

* try 21.0.0

* oops

* remove ts-node

* package locks

* fix redirect and eror handling

* remove console.log

* remove react 18 override

* fix import

* update react-virtual api

* bump node-libcurl and electron

* bump node-libcurl to 2.3.5-6

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-21 14:41:00 +00:00
Jack Kavanagh
043a6991ea
fix warning (#5315) 2022-10-21 14:06:58 +00:00
Jack Kavanagh
35108a0c0a
Refactor/fc-tag-editor (#5309)
* first pass

* second pass

* third pass

* fifth pass

* first fc pass

* fc second pass

* fix types
2022-10-21 13:50:18 +00:00
Jack Kavanagh
1d491548a0
Refactor/cookie-modals (#5307)
* cookie modal fc

* second pass

* cookie modify modal third pass

* third pass

* new cookie

* Rm : char

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-21 15:36:09 +02:00
James Gatz
adbea24657
Add app routes and upgrade react-router (#5304)
* upgrade to react-router 16.4

* inline loading indicator svg to avoid foc

* move app and wrappers to routes folder
2022-10-21 11:19:37 +02:00
Jack Kavanagh
24fe4ce24a
remove addIcon prop (#5312) 2022-10-20 16:36:49 +02:00
kreosus
2708cb23ce Merge branch 'release/2022.7.0-beta.3' into develop 2022-10-20 11:40:56 +00:00
kreosus
ba39cbe955 Bump app version to 2022.7.0-beta.3 and lerna package versions 2022-10-20 10:57:32 +00:00
Jack Kavanagh
70dbaa73fa
webview fc pass (#5306)
* fc pass

* nitpick
2022-10-20 10:50:17 +00:00
Jack Kavanagh
52e2511624
set default maxRedirects to 10 and timeout to 30000 ms (#5216) 2022-10-19 17:16:35 +00:00
Jack Kavanagh
1e3e69771d
class->fc env editor (#5305)
* class->fc env editor

* rm console.log

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-19 15:51:37 +00:00
Jack Kavanagh
b1c70ee81d
modal->fc workspace env modal (#5300)
* extract workspace env modal

* env editor save on blur

* remove sub env

* remove sort

* remove sortable-hoc package

* fix types
2022-10-19 16:55:08 +02:00
Jack Kavanagh
9eaf12f7e8
modal->fc prompt (#5301)
* extract

* fix default value
2022-10-19 13:27:30 +00:00
Jack Kavanagh
91202d0a12
workspace duplicate, settings (#5267)
* workspace modals

* fix render loop in env modal

* simplify env modal

* unpick set active env

* simplify loading

* simplify

* reload subenvironment

* reload sub environments

* use selector

* revert workspace edit modal

* fix first click doesn't show

* fix type check
2022-10-19 12:56:51 +00:00
Jack Kavanagh
92b8b3baf1
modals->fc transform remaining (#5278)
* remaining

* inline

* state =>

* tweaks

* simplfy wrapper

* extract prompt modal

* fix hotkey

* remove duplicate modal

* isJSON as object arg

* remove dispatch

* tweaks

* more tweaks

* fix nunjucks modal

* last tweaks
2022-10-19 12:32:32 +00:00
Jack Kavanagh
02c1c130ff
variable editor class-fc (#4989)
* first pass

* remove react hacks and simplify
2022-10-19 12:40:45 +02:00
Filipe Freire
45845f7fe3
[INS-2051] Reorganize smoke tests README (#5264)
* [INS-2051] Reorganize smoke tests README

* Add images to smoke-tests readme

* Split CLI part of doc, rm notes

* Reorganize README a bit

* edit intro

* playwright badge
2022-10-19 08:58:49 +01:00
James Gatz
0b30be3f6b
Upgrade to react 18 (#5296)
* upgrade to react 18 and use new createRoot api

* fix types and remove excessive functions in wrapper-home

* update types with implicit children to PropsWithChildren

* fix: remove error objects as children

* remove excessive function from account.tsx

* remove excessive function from general.tsx

* update tests and remove deprecated @testing-library/react-hooks

* remove unused import

* update package-lock
2022-10-18 11:56:55 +00:00