Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insomnia Sync improvements #6738

Merged
merged 30 commits into from
Nov 6, 2023

Conversation

gatzjames
Copy link
Contributor

@gatzjames gatzjames commented Oct 31, 2023

changelog(Improvements): Multiple improvements done to Insomnia Sync feature: Push/Pull status is reflected properly; Disabled states for actions that cannot happen; Added Pending UI for actions (push/pull/switch branch etc.); Accessibility improvements for all UI related to Insomnia Sync; Switching branches, Restore changes on history, and pulling should now properly reflect on the UI; Added consistent error handling and improved error messages.

Improvements in Insomnia Sync:

  • Move Insomnia Sync in loaders/actions to be wired with all other data.
  • Push/Pull status is reflected properly
  • Disabled states for actions that cannot happen yet (e.g. snapshot without changes)
  • Pending UI for actions (push/pull/switch branch etc.)
  • Accessibility improvements for all UI related to Insomnia Sync
  • Switching branches and pulling should properly reflect on the UI
  • Consistent error handling and improved error messages
  • Sync dropdown sections and button to switch to Git Sync
  • Restore changes on history modal should restore the file to that state

Closes INS-3278

@gatzjames gatzjames requested a review from a team October 31, 2023 09:59
@gatzjames gatzjames self-assigned this Oct 31, 2023
@gatzjames gatzjames force-pushed the feat/insomnia-sync-improvements branch 2 times, most recently from 942b955 to 855b774 Compare October 31, 2023 17:08
@gatzjames gatzjames force-pushed the feat/insomnia-sync-improvements branch from 471513b to 242a424 Compare November 2, 2023 16:56
@gatzjames gatzjames marked this pull request as ready for review November 2, 2023 19:37
return vcs;
};

export default VCSInstance;
Copy link
Contributor

@jackkav jackkav Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a rationale for using default export here?

jackkav
jackkav previously approved these changes Nov 6, 2023
},
{
id: 'revert',
name: 'Revert Changes',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be useful to hae a tooltip here to indicate that its for reseting to latest commit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change to 'Revert to latest commit'

@@ -25,6 +26,8 @@ interface Props {
gitSyncEnabled: boolean;
}

const ONE_MINUTE_IN_MS = 1000 * 60;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what interval did sync update with previously?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should document the polling mechanisms in the app

@gatzjames gatzjames force-pushed the feat/insomnia-sync-improvements branch from d72640a to 63f1763 Compare November 6, 2023 14:10
@gatzjames gatzjames merged commit a6dabb2 into Kong:develop Nov 6, 2023
7 checks passed
@gatzjames gatzjames deleted the feat/insomnia-sync-improvements branch November 6, 2023 14:24
Copy link

sentry-io bot commented Nov 10, 2023

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot destructure property 'status' of 'syncData2' as it is undefined. children(ui/components/dropdowns/sync-dropdown) View Issue

Did you find this useful? React with a 👍 or 👎

jackkav pushed a commit to jackkav/insomnia that referenced this pull request Mar 13, 2024
* almost there

* pending ui in sync dropdown

* branches pending ui

* fix snapshot staging issue

* staging modal fixes

* error handling on sync dropdown

* remove unused path

* switch to git repo button

* branch modal ui update

* change get method color

* staging modal ui

* onclose

* update export data modal

* fix websocket color

* remove export all button from scratchpad

* dropdown sections

* fetch remote branch properly

* test issue

* restore changes now works properly

* cleanup

* cleanup vcs usage

* cleanup sync items from workspace

* cleanup vcs from modals

* remove fragment

* turn vcs to instance to avoid module import side-effects

* fix e2e tests

* poll sync updates every minute

* change to named export

* Add some docs about data fetching in the app (sse,polling,fetch)

* improve revert changes copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants