Skip to content

Backup/restore progress UI - #232

Merged
sastraxi merged 7 commits into
mainfrom
feat/backup-progress-ui
Aug 12, 2026
Merged

Backup/restore progress UI#232
sastraxi merged 7 commits into
mainfrom
feat/backup-progress-ui

Conversation

@sastraxi

@sastraxi sastraxi commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Progress bar

Created a reusable uilib/progress_bar.py from the NAM capture panel. Per-instance colour stops (HEAT_STOPS for NAM's fixed-duration capture, STEEL_STOPS for archiving) with matching label pairs, and tweaked padding / tick count to keep things looking sharp.

Backup / restore features

  • modalapi/archive.py runs the (un)archive subprocess off of the UI thread with size-weighted progress
  • ui/archive_panel.py shows a fullscreen modal with the archive progress visualized using the new progress bar.
  • atomicity: instead of re-adding to the same archive, util/data-backup.sh builds a new one and swaps it in on success
  • backups are now cancellable; restores remain uncancellable

Fixed

  • no longer look at mtime to determine whether or not to restore individual files; always restore (removes -u)
  • the archive is no longer purely additive; e.g. deleted pedalboards are deleted from the backup
  • no longer uses sudo (all files are pistomp-owned) so that we can cancel the subprocess if desired
  • button now vertically centres its label properly

@sastraxi
sastraxi requested a review from rreichenbach August 12, 2026 04:17

@rreichenbach rreichenbach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good.

@sastraxi
sastraxi merged commit 3c4ed07 into main Aug 12, 2026
2 checks passed
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.

2 participants