Skip to content

Commit

Permalink
feat(Insomnia-Sync): Add diff view (Kong#7152)
Browse files Browse the repository at this point in the history
* diff view

* wip

* fully works

* stage items per workspace

* Add indicators for the type of change

* cleanup code

* clean up ui

* fix type issue

* rm todo

* fix snapshot issue and update tests
  • Loading branch information
gatzjames authored and jackkav committed Mar 13, 2024
1 parent e00ebcf commit f051869
Show file tree
Hide file tree
Showing 11 changed files with 957 additions and 343 deletions.
196 changes: 196 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/insomnia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-mock": "^29.7.0",
"json-diff-kit": "^1.0.23",
"json-order": "^1.1.0",
"less": "^3.8.1",
"license-checker": "^25.0.1",
Expand Down
1 change: 1 addition & 0 deletions packages/insomnia/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
Expand Down
2 changes: 2 additions & 0 deletions packages/insomnia/src/sync/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface StageEntryDelete {
key: string;
name: string;
blobId: string;
previousBlobContent?: string;
}

export interface StageEntryAdd {
Expand All @@ -75,6 +76,7 @@ export interface StageEntryModify {
name: string;
blobId: string;
blobContent: string;
previousBlobContent?: string;
}

export type StageEntry = StageEntryDelete | StageEntryAdd | StageEntryModify;
Expand Down
Loading

0 comments on commit f051869

Please sign in to comment.