borg-backup-ui
borg-backup-ui copied to clipboard
Show contextual action hints on detail pages
Summary
Reuse the central health/action items on detail pages so users see relevant guidance in context.
User problem
A user can land on Jobs, Restore Tests, Repositories or Settings and still not know whether the current page contains the problem they should act on. The dashboard should summarize issues, but detail pages should explain the same issue where the user can fix it.
Design proposal
Add a compact contextual hint strip near the top of pages or selected detail panels.
Suggested examples:
Jobs page, selected Photos - USB:
[ Warning ] Restore test overdue for this job. [Run test] [Open policy]
Repository page:
[ Warning ] Repository check is older than the configured check interval. [Start check]
SMB profile settings:
[ Error ] SMB profile Borg-VM is not currently mounted. Backups using this target cannot run. [Mount] [Check profile]
Visual direction:
- Keep the page layout unchanged where possible.
- Show only hints that are relevant to the selected page or selected object.
- Use one-line compact cards with an optional details expansion.
- Avoid duplicating the full dashboard action list on every page.
Implementation concept
- Consume the central collector from issue #308.
- Filter items by page and selected entity:
- job_key for Jobs and Restore Tests
- repository_key for Repositories
- storage_key/profile_key for settings areas
- migration/setup categories for Settings > System Health & Migration
- Add a small reusable UI component for contextual hints.
- Keep actions stable and page-local where possible.
Acceptance criteria
- Jobs, Restore Tests and Repositories can show relevant action items for the selected object.
- Settings pages can show relevant storage/profile/setup hints.
- The same underlying issue is not phrased differently across pages.
- OK pages stay quiet; no permanent decorative banners.
- Hints include a clear next step when one exists.
Out of scope
- Do not redesign every page.
- Do not add new health checks that run Borg commands automatically.