Commit Graph

2762 Commits

Author SHA1 Message Date
James Gatz
826890cc39
feat(Insomnia Cloud Sync): Update filesystem driver for VCS sync (#7111)
* use fs/promises and uuid instead of math.random

* Update packages/insomnia/src/sync/store/drivers/file-system-driver.ts

* Update packages/insomnia/src/sync/store/drivers/file-system-driver.ts

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-27 15:07:29 +00:00
Hexxa
3fe4d89e8c
feat(hidden-window): add globals, iterationData and variables interfaces in pre-request scripting (#7103) 2024-02-27 09:37:34 +00:00
Hexxa
d7a0bc1e58
feat(hidden-window): enable baseEnvironment in the pre-request scripting (#7102)
* feat(hidden-window): enable baseEnvironment in the pre-request scripting

* fix: input empty selected environment data to avoid incorrect environment manipulation and overriding

* test: add a test for folder environments overriding

* fix: smoke tests failed because of env overriding
2024-02-23 20:00:20 +08:00
James Gatz
62a73fa3ec
add labels for branch names when resolving conflicts (#7105) 2024-02-22 13:12:35 +01:00
James Gatz
a7125a2314
Sync improvements (#7098)
* Conflict modal

* Better error handling for staging modal

* move pull dropdown items to project view

* add unsynced files to command palette

* add scratchpad check

* loading indicator for pulling remote projects on palette
2024-02-21 17:45:39 +01:00
Hexxa
7718df0489
feat(hidden-window): enable the insomnia object with the environment api [INS-3379] (#7097)
* feat(hidden-window): enable the insomnia object with the environment api

* fix: tests and lint errors

* fix: app building is flaky

* fix: fallback to the original environment instead of an invalid id

* chore: improve comment and remove unused code
2024-02-21 18:02:59 +08:00
Jack Kavanagh
4e14e2bc16
mock feature feedback (#7089)
* add mock preview mode dropdown

* clean up url bar

* add helper

* add try it drop down

* fix lint

* advanced buttons
2024-02-15 13:00:10 +01:00
Jack Kavanagh
812cd80740
bump: vite to v5 and fix (#7023)
* bump to v5 and fix

* change bundler back to node

* add fsevents to external?

* hacks

* note

* revert resolutions

* move gsap and nunjucks to front end code that is bundled by vite

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-02-14 12:31:37 +01:00
Filipe Freire
2d5c80e079
Revert "fix: add viewport meta tag (#7049)" (#7090)
This reverts commit 444877e1e1.
2024-02-14 12:10:36 +01:00
Jack Kavanagh
8ff2c6b522
feat(prereq): add cancellation (#7078)
* add cancellation

* add cancel test

* fix test

* remove folder check
2024-02-13 10:28:46 +01:00
Jack Kavanagh
8ecf47c0a7
move mkdir to init (#7085)
* move to init

* fix tests

* fix tests
2024-02-13 10:16:57 +01:00
Mark Kim
444877e1e1
fix: add viewport meta tag (#7049)
* fix: add viewport meta tag

* fix: set zoom factor default to 1

* fix: adding zoom factor everywhere for now
2024-02-13 09:15:26 +00:00
Jack Kavanagh
039c12160c
E2e/mock-test-fixture (#7086)
* fix export

* add fixture

* use fixture
2024-02-13 09:01:32 +00:00
Jack Kavanagh
8f1a50328e
refetch logs (#7084) 2024-02-13 09:36:44 +01:00
jackkav
d7d86837f0 fix mock flake 2024-02-09 16:17:03 +01:00
James Gatz
45edba1269
chore(tailwind): Move grpc-method-dropdown to tailwind (#7074)
* grpc-method-dropdown tailwind

* fix disabled prop
2024-02-09 16:11:21 +01:00
Jack Kavanagh
c0707c884f
Add pre-request tab and minimal execution context (#7065)
* works

* add preload

* promise api

* tidy

* create hash works

* return errors from worker

* basic wiring

* remove preload

* move build output to folder

* async execution

* add simple context object

* smoke test

* fix types

* fix unit tests

* remove createHash remote function

* tidy

* naming

* fix test

* add errors to preview and timeline

* basic require support

* fix types

* fix warning

* can get logs

* fix console.log patch

* logs

* fix test

* remove log

* skip mock test

* fix test

* fix types

* can write to timeline

* add watcher

* improved dx

* can console.log in the script

* simplify

* enable contextIsolation

* fix types

* use vite for hidden window build and dev

* fix type

* rename

* move pre request test to critical

* fix typo

* close ports

* unskip test
2024-02-09 10:51:55 +00:00
Rinku Chaudhari
eec2d2015a
fix: request settings for scratchpad leading to welcome screen (#7068)
* fix: request settings for scratchpad leading to welcome screen

* fix: added missing dependencies and semicolon

* use existing fn to check for scratchpad

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-02-08 11:40:13 +00:00
James Gatz
4383d0b38c
Insomnia logo tailwind (#7073) 2024-02-07 18:11:36 +00:00
James Gatz
4010dd5358
chore(tailwind): Transform empty design state to tailwind (#7071)
* design-empty-state tailwind

* example spec from file instead of fetching

* styles

* fix spec test
2024-02-07 18:00:01 +00:00
Jack Kavanagh
112a1c8060
feat: append to timelines (#7070)
* working pass

* fix tests

* fix await issue with streams

* fix test

* fix mockbin test

* move to main

* inso cli test
2024-02-07 18:51:10 +01:00
jackkav
71c995c696 fix mock test 2024-02-07 14:55:11 +01:00
Insomnia
51b9ef76e9
🚀 8.6.1 (#7014)
* Bump app version to 8.6.1

* feat(unit-tests): Unit test reordering (#7020)

* re-orderable test suites

* re-orderable tests

* fix ts

* Use db methods for sorting

* sort suites and unit tests in inso

* fix suite rename

* Fixes https://github.com/Kong/insomnia/issues/7011 (#7012)

* Fixes https://github.com/Kong/insomnia/issues/7009 (#7010)

* chore: edit changelog process [INS-3456] (#7001)

* fix(workspace): Add default name for when creating a workspace (#7046)

* Add default name for when creating a design/collection

* workspace update and creation

* fix filter history keys not being valid selectors (#7040)

* remove invalid wide css prop (#7041)

* feat(environment): update environments icons (#7050)

* update environments icons

* fix workspace name

* fix one line editor being scrollable (#7059)

* change 8.0 to 8 (#7061)

* Cleanup page containers and add hint container in the page (#7060)

* feat(pane-tabs): Consistent styles for tabs (#7062)

* response/request pane tab counts

* tab dropdown colors

* fix updates to db leading to errors in loader fetchers (#7033)

* feat(command-palette): add button to open the command palette (#7064)

* add button for quick search

* update button styles in project

* make it look good with gh stars

* fix ts issue

* changelog

---------

Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Jeroen Van den Berghe <vandenberghe.jeroen@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2024-02-06 12:16:54 +00:00
Jack Kavanagh
33e80d56cd
Adds a hidden window (#7063)
* init new window

* fix tests

* preload listener

* merge processes and windows

* trigger CI

* fix types

* mock test flake
2024-02-05 14:37:05 +01:00
Sri Krishna
302172d4c5
Add ability to use Buf Schema Registry as a schema source for gRPC requests (#6975)
* Add support for Buf Reflection Api

* Add test; Change tooltips to links

* style

* Remove label class

* request tests

* Update copy

* Rename prop; Fix alignment, input

* Add user agent header

* use onBlur and simplify

* fix lint

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-02-05 09:56:23 +00:00
Jack Kavanagh
9d3ebf944e
Clean/remove-babel-transform (#7038)
* remove babel transform

* lock file
2024-01-31 15:51:35 +01:00
Jack Kavanagh
b5ecd5c261
Remove/changelog-stuff (#7036)
* cleanup

* lock
2024-01-31 13:22:06 +01:00
Jack Kavanagh
4ab203a1e1
Bump/esbuild (#7035)
* esbuild 18

* lock

* esbuild 19

* lockfile

* update esbuild watcher
2024-01-31 12:21:18 +01:00
Jack Kavanagh
01e048faab
add mock test (#7031)
* add mock test

* add custom testing headers

* use insomnia fetch

* fix types

* normalise error structure

* using insomniaFetch for log

* fix warning

* add modal for vaults

* remove status code assertion

* use org id

* check status code
2024-01-30 16:57:01 +01:00
Nick Graham
2d0042a83c
feat: template tag to encode hex to base64 (#6211)
* feat: template tag to encode hex to base64

* review, flatten, simplify

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-01-29 14:20:25 +01:00
Jack Kavanagh
97b1d7f3ac
Bump/types (#7025)
* bump types

* lockfile
2024-01-29 13:55:11 +01:00
dependabot[bot]
094f9c237f
chore(deps-dev): bump vite from 4.5.1 to 4.5.2 (#7007)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 13:54:15 +01:00
Jack Kavanagh
515ff1e34b
Bump/stoplight pkgs (#7024)
* bump stoplight

* lockfile
2024-01-29 13:49:40 +01:00
Jack Kavanagh
dd791fe349
Bump/jest-29 (#7027)
* bump jest pkgs

* fix tests
2024-01-29 13:49:07 +01:00
Jack Kavanagh
9a1545c964
feat: mock second pass (#7022)
* fall back hidden request

* redirect after add new route

* add session id

* remove custom HAR types

* remove any type hack

* fix tests

* fix tests

* fix test

* add mock server export

* clean console

* test request clean up

* list routes on imports

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-01-29 13:00:24 +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
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
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
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