borg-backup-ui
borg-backup-ui copied to clipboard
Add dashboard backup protection summary and action center
Summary
Add a compact dashboard section that answers the user's first question: is backup protection OK, or is there anything that needs attention?
User problem
The dashboard already shows detailed backup, restore and storage data, but users still have to interpret the table themselves. A user should not need to scan every location and row to understand whether action is required.
Design proposal
Place a calm, compact status band at the top of the dashboard, above the existing metric cards.
Suggested layout:
Backup protection Updated: 13:00
[ OK ] All monitored backups are healthy
No open action items.
If warning/error:
[ Warning ] 3 action items need attention
- Photos - USB: restore test overdue [Open Restore Tests]
- Borg-VM: SMB storage is not reachable [Open SMB profile]
- Appdata - Local: repository check is old [Open repository]
Visual direction:
- One full-width status band, not a large hero.
- OK/warning/error color only as accent, not as a full bright page section.
- Show at most 3 action items directly, with a link to show all.
- Keep existing dashboard cards and location table below.
Implementation concept
- Add a backend dashboard summary payload or extend the existing dashboard API with a protection summary.
- Start with simple severity levels:
ok,warning,error. - Use existing data only; no new background jobs.
- Include a stable target link/action for each item so users can jump to the relevant page.
Signals to include initially
- Failed or warning backup status.
- Overdue backups.
- Failed, overdue or open restore tests.
- Repository check failed or stale.
- Storage target currently unavailable.
- Migration/system health blocker.
Acceptance criteria
- Dashboard shows a clear overall state: OK, warning or error.
- Dashboard shows concrete action items when attention is needed.
- OK state is quiet and does not add visual noise.
- Existing dashboard metrics and location grouping remain available.
- No credentials, raw Borg output or secrets are shown.