Fix static-looking Unraid dashboard widget status and light-theme contrast
Problem
A forum user reports that the Unraid dashboard widget appears to show a static status. The action icons in its upper-right corner are also difficult to distinguish because of their colors. The supplied screenshots show a light Unraid theme.
Observations from the screenshots
- The widget shows 4 backup jobs: 3 successful, 1 warning, 0 failed, 0 running, and 4/4 repositories online.
- Its latest backup detail reads "14m ago - Duration 1h 45m"; the cache timestamp reads "09/28, 06:00 AM".
- The application dashboard screenshot shows "Updated: 08:46", with 3 successful runs, 1 skipped run, 0 warnings, and 0 errors.
- Both views show 4/4 restore verifications.
- The widget title, several labels and values have very low contrast against the light background. The refresh, open, settings, and collapse icons are also hard to recognize.
The screenshots alone do not establish that polling or cache updates are broken. The installed plugin version, exact reproduction sequence, and original forum permalink were not supplied.
Preliminary findings on origin/main
Inspected source commit: 969c4ad (abbreviated).
plugin/borg-backup-ui-dashboard.pagepollswidget-status.phpevery 15 seconds. The refresh button calls the same endpoint.plugin/widget-status.phponly reads the precomputed JSON cache; it does not regenerate it.api/unraid_dashboard_widget.pystores the latest backup's relative age and upcoming schedule labels as formatted strings. The widget renders these strings unchanged when reading the same cache. Relative text can therefore remain static even when polling works.- Both the Python cache builder and the widget's JavaScript classification count skipped jobs as warnings. This explains a possible semantic mismatch with the separate Skipped category in the application dashboard.
- Widget CSS includes hard-coded pale text colors and dark icons on gray action backgrounds, without a corresponding light-theme palette.
These are code findings, not a confirmed reproduction on the reporting user's system. An older cache timestamp can be expected between relevant events and must not, by itself, be treated as a polling failure.
Scope of the future fix
- Investigate event-driven cache freshness and the distinction between last data update and last widget fetch.
- Keep relative backup age and upcoming schedule labels accurate as time passes, without adding periodic Borg calls or array-backed status scans merely for display refreshes.
- Align skipped/warning presentation with the application dashboard, while preserving genuine overdue warnings.
- Make text and action icons readable in supported light and dark Unraid themes, including hover and keyboard focus states.
- Preserve the widget's read-only, disk-sparing behavior.
Acceptance criteria
- With an unchanged cache, relative time labels advance correctly and date-relative schedule labels do not remain incorrect across midnight.
- A new backup or restore-test result is reflected after the relevant cache update and next successful widget fetch.
- Manual refresh behavior and the displayed timestamp are unambiguous; unavailable or invalid cache data produces visible feedback.
- A skipped run is distinguishable from a warning and matches the application's classification unless a separate condition, such as overdue status, warrants a warning.
- Widget text and action icons are clearly readable in both light and dark themes.
- Focused regression coverage verifies time-dependent rendering, status classification, and refresh behavior; theme appearance is visually checked.
User impact and release notes
User-visible bug: stale-looking time labels, inconsistent status categories, and poor readability reduce confidence in backup status. A pending user-facing release-note fragment should accompany a future fix.
Current task boundary
Issue creation only. No implementation, pull request, test-channel build, or release is requested at this stage.