Devices: show an Online label, for every device, apart from the playlist status #326
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage#326
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Product owner, 2026-11-18 (GRI-2051): "I can see that the scryglass client is offline under devices. But can you also add the online label?"
Today (dev
56dd99c)DevicesScreen.tsxhas one tag that mixes two things: the connection and the playlist rollout (describeRolloutStatus).offline-> "Offline (last seen ...)".rolloutLabel = assignment ? ... : null). A device with no playlist shows no connection state at all, online or offline.Change
Two separate tags on each device card:
The state is live: it changes when the device connects or disconnects, with no page reload. It is right on first load too (the snapshot from #248).
Server
If the rollout-status snapshot/stream does not report devices without a playlist, add the connection state for every visible device (for example
connected: boolinDeviceView, plus a connect/disconnect event on the stream). Campus scoping stays as it is.Done when
Implemented in PR #327: splits the device tag into a Connection tag (Online / Offline · last seen ... / Never connected) on every approved device, and a Playlist tag (Up to date / Updating) shown only once the device is online and has a playlist.
The #248 snapshot already reports every visible device regardless of playlist assignment, so no server change was needed — this is frontend-only. Added tests for all three required cases plus the live transition (connect → disconnect → reconnect, no reload). Local frontend gates (prettier, oxlint, tsc, vitest, build) all pass; waiting on CI now.
Merged in #327 (dev
5b0dd77). Deploy to the Scryglass server follows with #320 and #322.