Skip to content

Add auto-save option#1580

Merged
BryonLewis merged 8 commits intomainfrom
auto-save
May 5, 2026
Merged

Add auto-save option#1580
BryonLewis merged 8 commits intomainfrom
auto-save

Conversation

@mattdawkins
Copy link
Copy Markdown
Member

@mattdawkins mattdawkins commented Jan 24, 2026

Summary

Add an auto-save annotations feature, configurable from Settings, with a small UX fix so it doesn't kick the user out of editing mode mid-edit.

Changes vs main

  • New auto-save toggle + interval setting wired into Settings (desktop + web Settings views).
  • Save icon updates to reflect auto-save state.
  • Auto-save no longer exits editing mode after the configured interval — the timer no longer fires while a track is actively being edited.

3 commits:

  • `add auto-save annotations feature with configurable toggle`
  • `add auto-save settings to Settings views and update save icon`
  • `Fix auto-save exiting editing mode after 2 seconds`

Copy link
Copy Markdown
Collaborator

@naglepuff naglepuff left a comment

Choose a reason for hiding this comment

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

Couple of small bits of feedback, but mostly looks good

Comment thread client/platform/web-girder/views/Settings.vue Outdated
Comment thread client/dive-common/components/Viewer.vue
- New auto-save toggle (off by default) in clientSettings, debounced 2s.
- Surfaced as a row in TrackSettingsPanel.
- Viewer triggers on pendingSaveCount increase; bails out if a save is
  in flight, and re-arms once saveInProgress goes false to flush queued
  edits.
- Toggle in desktop Settings.vue (Annotation Settings group).
- Toggle in web-girder Settings.vue.
- Save icon swaps to mdi-content-save-cog when auto-save is enabled.
save() now takes an optional exitEditingMode flag (default false). The
manual save path passes true to preserve the prior behaviour; auto-save
leaves the user in their current editing session.
@BryonLewis
Copy link
Copy Markdown
Collaborator

BryonLewis commented May 5, 2026

I've done a few commits to move stuff around and update it so it better integrates with the application:

  • Created a UserSettingsDialog.vue that is toplevel and opened by an icon next to the save icon. For right now it contains the autosave option and the multicam-tools (only in desktop) options. These weren't really track-settings so I moved them out fo the track settings menu area
  • Modified the logic for saving so that it won't save while an edit is in progress it will skip and wait
  • Added customization to the delay interval for saving so a user can specify with a default of 60 seconds and min of 60
  • Added some tooltips to the save icon to indicate the current state of the auto-saving

@BryonLewis BryonLewis requested a review from naglepuff May 5, 2026 12:10
@BryonLewis BryonLewis dismissed naglepuff’s stale review May 5, 2026 12:10

I did a review after and made some changes to get this in

@BryonLewis BryonLewis merged commit f2cb1c9 into main May 5, 2026
3 checks passed
@BryonLewis BryonLewis deleted the auto-save branch May 5, 2026 12:12
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