Commit Graph

4463 Commits

Author SHA1 Message Date
jackkav
875a8cba1f update nix shell 2024-01-24 22:47:23 +01:00
Jack Kavanagh
557e5c0c6e
feat: mock resources (#6760)
* project ui changes

* project ui changes

* create mock server model

* model mock server similarly to design doc

* use spec modelling and nav

* layout pass

* rename requestbin to mock-route

* sidebar ui pass

* load mock server

* add url bar

* can navigate to headers

* Refactor mock server and mock route creation and
retrieval

* route crud

* sidebar layout

* add delete guuard

* patch route

* Add mock response tab to request pane

* wire up mock servers in requests

* Update mock server and route selection in
RequestPane

* make it work without internet

* can create bin

* pass body and headers to bin

* can fetch logs but cant see em

* split out response pane for hmr

* basic table

* extract mock url bar

* add header tab

* made a dumb cache

* url bar pass

* send request and create response

* wire up timeline

* wire up preview

* timeline useeffect

* move to action

* fix types

* empty states

* rebase updating aria

* use har type

* can edit bins

* cookie support

* wire up status

* status text

* magic status text

* ui

* always use put rather than create bin

* add url to mock route

* scroll bar

* add content types

* validation

* fix flake

* improve logs

* fix outlet warning

* fix send to mock endpoint

* switch table to grid

* handle errors

* rotate log

* create mockbin on open if needed

* add full url ux

* reverse log order

* binId from store

* remove http method

* rename prefix

* use server Id for bin id

* fix copy

* show log har

* fix url bar

* fix button padding

* tailwind

* method select

* remove default status text

* full tailwind

* fix breadcrumb

* default to json

* move copy to end, remove save

* error msg

* only patch when needed

* fix ws colors

* fix command palette

* add isMock helper

* revert local storage mechanism

* fix redirect

* fix ignore upsert

* extract to constant

* ui test

* hide actions from mock-server

* fix code editor onBlur

* lift update to route

* refactor to return only errors

* add url to mock server model

* select mock ui pass

* can modify url in settings

* use server url from db if selected

* hide url option

* fix lint error

* extract to file

* remove binResponse

* can sync

* move things around

* rename name path sync

* fix type check

* capture kvp onBlur

* fix error message

* basic mock test

* wire up mock patcher and navigate

* rename component

* remove url prop of route

* fix lint

* fix test

* temporary skip e2e test

* fix constant url

* fix migration

* remove console logs

* rename function

* only create a single hidden request

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-01-24 16:38:31 +01:00
saisatishkarra
653d497763
Add SAST scanning using semgrep (#7015) 2024-01-22 19:52:56 -06:00
James Gatz
df0a791941
fix: re-initialize the parameter editor state when switching between requests (#7005)
* re-initialize the one-line editor when the request changes

* fix lint?

* cleanup lint
2024-01-19 17:31:36 +00:00
James Gatz
fac18eeba0
fix style issue for bulk editor (#7004) 2024-01-19 17:20:05 +00:00
James Gatz
7d3bf008e6
remove styled from avatar components (#7002) 2024-01-19 16:39:03 +00:00
James Gatz
287a5e4021
remove unused breadcrumb component (#7003) 2024-01-19 13:31:04 +00:00
James Gatz
7ce9947f09 Merge branch 'release/8.6.0' into develop 2024-01-18 22:08:16 +00:00
James Gatz
5082975c7d Bump app version to 8.6.0 2024-01-18 21:40:54 +00:00
James Gatz
a8c1da727a
Request path parameters (#6994)
* add path parameters to the request/ws-request model

* render path params

* show path params on the ui

* fix rendering of params

* cleanup params ui in ws

* cleanup request model

* add empty state info

* update styles

* certificate-styles

* fix tests

* cleanup code

* fix e2e tests
2024-01-18 22:35:32 +01:00
James Gatz
b24008c41d
update test and use the filechooser api (#6995) 2024-01-18 14:42:26 +01:00
James Gatz
cbd58dd0be
Add certificates modal and clean up workspace settings (#6993)
* Add new modal for managing certificates

* update workspace settings modal

* disable delete button while deleting an item

* improve styles and add password viewer

* better copy for add/manage certificates

* fix weird key issue

* tooltips

* show filename

* fix add cert form

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-01-17 11:45:34 +00:00
James Gatz
7ae1685c56
chore(copy): Update copy for untracked projects and certificates (#6984)
* copy updates

* add info icon
2024-01-15 11:38:13 +01:00
James Gatz
3159291456
Show all parents of a request that matches a filter (#6983) 2024-01-12 14:34:47 +01:00
Jack Kavanagh
4120f91939 Merge branch 'release/8.5.2-beta.0' into develop 2024-01-12 07:32:14 +00:00
Filipe Freire
3e4e860268 Bump app version to 8.5.2-beta.0 2024-01-11 13:58:02 +00:00
Jay Wu
b2e390f707
fix(curl): revert to use openssl on macos [INS-3445] (#6981) 2024-01-11 17:55:47 +08:00
James Gatz
20491d9728
Improve export modal UX (#6978)
* improve styles for export modal

* fix e2e test
2024-01-10 14:57:11 +00:00
James Gatz
e20c257260
fix overflow of workspace grid (#6972) 2024-01-08 11:54:53 +02:00
James Gatz
4085d34bb0
feat(command-palette): Add command palette for quick switching between requests and workspaces (#6968)
* Add command palette for quick switching between requests and workspaces

* truncate text

* small style update

* add smoke test for command-palette

* fix shortcut for different platforms

* wait for request to switch
2024-01-05 13:16:07 +02:00
Filipe Freire
54a989a13d
fix: issue #6952 CVE in deps (#6959)
* bump vite to 4.5.1

* bump graphql and replace deprecated babel plugin

* bump testing-library/jest-dom

* bump axios

* Revert "bump testing-library/jest-dom"

This reverts commit 22a7df578111874bb30498e22991a9803a087a5f.

* bump chai

* This reverts commit b8a3d999b5410651644160c2385a6c9167abeff8.

* skip failing test on macos

* bump postcss

* fix lint
2024-01-05 09:57:02 +00:00
Filipe Freire
336a7ede6c
chore: try different nedb fork (#6960) 2024-01-04 15:08:28 +00:00
Alberto
d2599d6f42
make websocket immutable headers read-only in UI (#6872) 2024-01-03 13:32:50 +00:00
James Gatz
5dd64dd3cb Merge branch 'release/8.5.1' into develop 2023-12-21 15:16:16 +00:00
Jack Kavanagh
86c5b96a82 Bump app version to 8.5.1 2023-12-21 12:22:58 +01:00
James Gatz
acbc6aea3f
fix focus issue for modals inside other modals (#6945) 2023-12-21 11:11:28 +00:00
Jack Kavanagh
b168e73225
bump: node 18.18.2 electron 28 (#6926)
* node 18.18.2 electron 28

* bump node-libcurl

* mergeASARs false

* bump playwright

* playwright beta

* playwright alpha

* fix test
2023-12-21 11:13:36 +01:00
James Gatz
6fca82f936
chore(e2e-tests): Fix flaky test for debug sidebar (#6933)
* Use more specific locators for the sidebar

* use count for number of elements

* skip delete test for now
2023-12-21 10:52:10 +01:00
James Gatz
0cbebdb84d
improve truncation styles on sidebar workspace/environment/cookies (#6940) 2023-12-21 10:50:34 +01:00
James Gatz
89dca9d468
fix(environments-modal): increase the size of the environment modal (#6941)
* increase the size of the environment modal

* update the modal to not dismiss when other modals are opened inside of it
2023-12-21 10:50:03 +01:00
James Gatz
b0ff381078 Merge branch 'release/8.5.0' into develop 2023-12-20 10:43:10 +00:00
gatzjames
00cbc9aee8
fix past-due redirect 2023-12-20 11:10:32 +01:00
gatzjames
0e21ae72e1
fix error message style 2023-12-20 11:00:35 +01:00
Jack Kavanagh
68c33dff42 Bump app version to 8.5.0 2023-12-20 09:31:03 +00:00
James Gatz
6ad2f6a619
add payment link for past due warning (#6937) 2023-12-20 10:15:23 +01:00
zhengjitf
4a30e4f284
fix: extra closing brackets in graphql variable cause render crash (#6914)
* fix: extra closing brackets in graphql variable cause render crash (#6899)

* Fix code style
2023-12-19 18:25:20 +01:00
Jay Wu
0cc8e40edd
fix(ssl): verify host on macos [INS-3424] (#6935)
* fix(ssl): verify host on macos [INS-3424]

Always verify host on macos even when `Validate certificates` is disabled.

* Update packages/insomnia/src/main/network/libcurl-promise.ts

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2023-12-19 15:17:33 +01:00
James Gatz
e78834e946
fix clickable area for links inside breadcrumbs (#6934) 2023-12-19 12:08:08 +01:00
James Gatz
b59637527d Merge branch 'release/8.5.0-beta.0' into develop 2023-12-18 21:30:16 +00:00
James Gatz
725c2fd5fd Bump app version to 8.5.0-beta.0 2023-12-18 20:46:24 +00:00
James Gatz
ac03fb439b
feat(environments-modal): Improve environments modal UX (#6929)
* update environments modal

* add drop indicator styles

* Add editable input

* close button

* fix renaming issues

* fix drag and drop issues
2023-12-18 22:29:34 +02:00
James Gatz
de3934bd60
feat(untracked-data): Display a warning when there are untracked data in the app (#6927)
* show a warning when there are untracked data in the app

* update copy
2023-12-18 20:51:27 +01:00
James Gatz
45ee1a14a4
feat(due-payments): add warning in project for due payments of organization (#6915)
* add warning in project for due payments of organization

* update styles

* use the billing info to display the due payment warning

* add fallback for billing response

* add comment

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-12-18 18:29:22 +01:00
James Gatz
19fc3d1174
fix(git): Sync repo data on collection/repo updates (#6922)
* use loader to revalidate the data

* formatting

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2023-12-18 13:50:06 +01:00
James Gatz
eda7df8364
fix(untracked-workspaces): Migrate untracked workspaces and display them in the UI (#6883)
* Initial automatic migration

Co-authored-by: Mark Kim <marckong@users.noreply.github.com>

* add continue statement

* add untracked workspaces ui in the data tab

* fix moving a project

* fix sentry hack

---------

Co-authored-by: Mark Kim <marckong@users.noreply.github.com>
Co-authored-by: Mark Kim <mark.kim@konghq.com>
2023-12-14 14:48:18 +00:00
Jay Wu
2ca5ca38a1
fix(tls): Use the system CA certificates to verify https servers by default (#6924)
* fix(tls): Use the system CA certificates to verify https servers by default

* remove CurlSslOpt.NativeCa until we can prove it

* add CurlSslOpt.NativeCa back and fix test errors
2023-12-14 22:28:04 +08:00
Jack Kavanagh
e3caa557be
Test/ssl-cert-flow (#6750)
* client cert ui

* first pass

* use import to avoid url onChange timing issue

* re order test

* use 4001 port, refresh certs

* move test to critical

* expose cacert create over maain
2023-12-14 16:03:26 +08:00
Jay Wu
a55bb0e02c Revert "fix(ssl): Use the system root CA certificates to verify https servers"
This reverts commit 151578a74d.
2023-12-13 22:32:47 +08:00
Jay Wu
151578a74d fix(ssl): Use the system root CA certificates to verify https servers 2023-12-13 22:32:05 +08:00
zhengjitf
e74f38e121
fix: deleting Scratch Pad causes fatal error and application does not recover (#6910) (#6912) 2023-12-13 11:39:21 +01:00