Admin: replace the status strip with a one-line live bar, uptime as a plain value #104

Closed
opened 2026-11-07 23:48:58 -05:00 by cmoriarty · 2 comments
Owner

Part of #103. On the mockup canvas, Picked column: Top bar · 2C, uptime as a value.

What happens

The status strip under the page title has four blocks: Stream checks, Ready for Emby, Sites and Uptime.

  • Ready for Emby is useful, but drawn the wrong way.
  • Uptime is a green line with yellow marks for restarts and no time axis, so it reads as arbitrary.
  • The owner wants the live figures in one small bar at the top.

The idea

One bar directly under the nav, staying at the top of the Admin page. Left to right:

  1. Playing. A blue dot, the game and its site chip.
    • Nothing playing: a hollow dot and the next game, its start time and a ✓ if it's ready.
    • The channel is in trouble: an amber dot; the stalling site, an arrow, the site it will swap to, and a countdown ring.
  2. Ready for Emby. A TV icon and the count. Click opens a popover listing the ready games and their sites; the playing one gets a blue dot.
  3. Stream checks. A search icon and one word, green Normal. Red None found · 20 min when followed live games have had no stream found for that long; Paused when paused. Click jumps to the Stream checks section.
  4. Sites. A globe icon, the working count in green and the held-back count in amber with a clock. Click jumps to Sites, filtered to Held back.
  5. Server uptime. A server icon and a value: 8 h 56 min, 2 d 4 h.
    • In the first 10 minutes after a restart, an amber restart icon sits beside it.
    • The tooltip gives the last restart's time and how long the app was down.
    • The uptime graph goes away; restarts stay in History.
  6. Pause checks at the right. It is the only Pause control on the page.

Every item has a tooltip and an aria-label that say in words what the icon means.

When #100 is built, its background-channel switch, count and Mbit/s go in this bar too.

Data it needs

  • Already in GET /api/admin: most of it (status.lineup, status.sites, status.uptime.started_at, now.channels).
  • New: the checks verdict and how long it has held, worked out on the server from the check events and the followed live games.
  • New: the swap countdown. The time until the channel swaps, as an epoch. The Playing ticket needs the same deadline.
  • New: how long the app was down at the last restart, from the last stop and start events.

Done when

  • In the unit lane:
    • the verdict is Normal / None found (with minutes) / Paused, for fixtures of each;
    • the downtime of the last restart comes from its stop and up events.
  • In the frontend tests:
    • the bar renders its three states (normal, a rough night, nothing on) from fixtures;
    • the Ready popover lists the ready games;
    • uptime renders as 8 h 56 min and 2 d 4 h;
    • the old status strip and its uptime graph are gone.
Part of #103. On the [mockup canvas](https://claude.ai/artifact/81TFkGA3agPRSmkL38L4yJ), Picked column: **Top bar · 2C, uptime as a value**. ## What happens The status strip under the page title has four blocks: Stream checks, Ready for Emby, Sites and Uptime. - **Ready for Emby** is useful, but drawn the wrong way. - **Uptime** is a green line with yellow marks for restarts and no time axis, so it reads as arbitrary. - The owner wants the live figures in one small bar at the top. ## The idea One bar directly under the nav, staying at the top of the Admin page. Left to right: 1. **Playing.** A blue dot, the game and its site chip. - **Nothing playing:** a hollow dot and the next game, its start time and a ✓ if it's ready. - **The channel is in trouble:** an amber dot; the stalling site, an arrow, the site it will swap to, and a countdown ring. 2. **Ready for Emby.** A TV icon and the count. Click opens a popover listing the ready games and their sites; the playing one gets a blue dot. 3. **Stream checks.** A search icon and one word, green **Normal**. Red **None found · 20 min** when followed live games have had no stream found for that long; **Paused** when paused. Click jumps to the Stream checks section. 4. **Sites.** A globe icon, the working count in green and the held-back count in amber with a clock. Click jumps to Sites, filtered to Held back. 5. **Server uptime.** A server icon and a value: `8 h 56 min`, `2 d 4 h`. - In the first 10 minutes after a restart, an amber restart icon sits beside it. - The tooltip gives the last restart's time and how long the app was down. - The uptime graph goes away; restarts stay in History. 6. **Pause checks** at the right. It is the only Pause control on the page. Every item has a tooltip and an `aria-label` that say in words what the icon means. When #100 is built, its background-channel switch, count and Mbit/s go in this bar too. ## Data it needs - **Already in `GET /api/admin`:** most of it (`status.lineup`, `status.sites`, `status.uptime.started_at`, `now.channels`). - **New: the checks verdict and how long it has held**, worked out on the server from the check events and the followed live games. - **New: the swap countdown.** The time until the channel swaps, as an epoch. The Playing ticket needs the same deadline. - **New: how long the app was down** at the last restart, from the last stop and start events. ## Done when - **In the unit lane:** - the verdict is Normal / None found (with minutes) / Paused, for fixtures of each; - the downtime of the last restart comes from its stop and up events. - **In the frontend tests:** - the bar renders its three states (normal, a rough night, nothing on) from fixtures; - the Ready popover lists the ready games; - uptime renders as `8 h 56 min` and `2 d 4 h`; - the old status strip and its uptime graph are gone.
Author
Owner

Deployed 2026-11-08 06:11Z in PR #111 (merge a133e29, container 71367c5163eb); OpenSpec change archived in b4d5b94. Live now: the status strip and the uptime graph are gone; the top bar shows the playing game and its site (or the next game), Ready for Emby with its list behind the count, the checks in one word, sites working and held back, uptime as a value (with a restart mark and the downtime on hover), and Pause checks. Left open until it has been seen on a game night with a swap in progress.

Deployed 2026-11-08 06:11Z in PR #111 (merge a133e29, container 71367c5163eb); OpenSpec change archived in b4d5b94. Live now: the status strip and the uptime graph are gone; the top bar shows the playing game and its site (or the next game), Ready for Emby with its list behind the count, the checks in one word, sites working and held back, uptime as a value (with a restart mark and the downtime on hover), and Pause checks. Left open until it has been seen on a game night with a swap in progress.
Author
Owner

Closed at the owner's word (2026-11-08): the fix is merged to develop in PR #111 (merge a133e29) and deployed. A new issue will be opened if a problem shows up.

Closed at the owner's word (2026-11-08): the fix is merged to develop in PR #111 (merge a133e29) and deployed. A new issue will be opened if a problem shows up.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker#104
No description provided.