Skip to content

Name the firmware status column and show the available version - #85

Merged
jfmlima merged 1 commit into
mainfrom
fix/firmware-status-badges
Aug 7, 2026
Merged

Name the firmware status column and show the available version#85
jfmlima merged 1 commit into
mainfrom
fix/firmware-status-badges

Conversation

@jfmlima

@jfmlima jfmlima commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Purpose

Fixes #80. Rename the dashboard "Status" column to "Firmware Status", replace raw badge values with readable labels ("Up to Date", "Auth Required"), and show which version an update would install: "Update Available (2.0)".

Context

Both scan paths already knew the available version and discarded it: the device's own Shelly.CheckForUpdate result carries it, and the manager-side settling pass from #84 holds the full index release. It is now captured as DiscoveredDevice.available_firmware_version, returned by /scan, and rendered in the badge.

The status column filters and sorts on the displayed label (via accessorFn), so searching "Update Available" or a version matches what the table shows.

Notes

  • The version is assigned before the status flips to UPDATE_AVAILABLE, so a malformed version string from a device leaves it DETECTED instead of half-updated.
  • Gen1 devices report updates without a version; their badge degrades to plain "Update Available".
  • CLI output still prints raw status values and no available version — pre-existing, out of scope for [Feature]: rename status column and show proper badges #80.

The dashboard status column reports firmware state but was labelled
"Status", and its badges leaked raw enum values (update_available,
no_update_needed) with no hint of which version an update would install.

Both scan paths already know the answer at scan time and discarded it:
the device's own Shelly.CheckForUpdate result carries the version, and
the manager-side settling pass holds the full index release. Capture it
as DiscoveredDevice.available_firmware_version, include it in the /scan
response, and render "Update Available (x.y)" in the badge, with
readable labels for the other statuses.

The version is assigned before the status flips to UPDATE_AVAILABLE so
a malformed version string from a device leaves it DETECTED instead of
half-updated.
@jfmlima
jfmlima merged commit e7fae42 into main Aug 7, 2026
22 checks passed
@jfmlima
jfmlima deleted the fix/firmware-status-badges branch August 7, 2026 12:40
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.

[Feature]: rename status column and show proper badges

1 participant