Admin: the Playing card shows every link, the night's swaps and what happens next, live #105

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

Part of #103. On the mockup canvas, Picked column: Playing · 5A. It is interactive: press Play on the board to see the countdowns and filters work. Builds on #90, which has the data side of the swaps (what each dropped, why, which stream it landed on).

What happens

The owner's words: the card's tags for buffer, swaps, stalls and recovers are noise. When a stream is unstable, nothing on the card says why it swapped or when the next swap will come. The card should show every possible link for the game, which ones were checked and which swapped, and stay live instead of updating in steps.

The idea

One card per playing channel. A Warm background channel (#96) gets the same card with its Warm mark.

  1. Header.
    • Contents: a sport glyph, the game, a chip for how long it has played and a viewers chip.
    • Buttons: Swap now and Wrong game.
  2. The link playing.
    • Contents: the site, a picture chip (720p60), the time on this link, a health word and the link's grade (#94).
    • A bar for each recent segment wait, with a dashed line where "late" begins (the channel's real threshold).
    • A buffer gauge with its seconds.
    • This replaces the row of tags.
  3. Next. A short list, each line with a countdown and a ring:
    • next segment due;
    • the standby that takes over "if late";
    • the next standby re-check;
    • the next link back from cooling;
    • the next re-read of the link list.
  4. Tonight.
    • The timeline: a run for each stretch on a link, labelled by site, with swaps as ticks, filler hatched and a "now" line. Hovering a run gives the site and its times.
    • Counts as chips: swaps, sites played from, minutes of filler.
  5. Links. A table of every link for the game:
    • Columns: site, rank (signal bars), stream, state, last tried, why, grade, next.
    • Stream: links that carry the same stream share a letter (stream_identity / Entry.mark()).
    • State, as a pill: Playing, Standby, Backup, Cooling, Held back, Ready to try, Untried.
    • Why: an icon and a short value, for example a stall icon with 12 s, or no stream with ×3. The full reason shows on hover.
    • Next: a countdown and a bar for cooling links.
    • Filter chips with counts: All, Ready, Cooling, Waiting.

Data it needs

The channel view (_channel_view) gains:

  • links: every link the game has, with:

    • state;
    • last tried at;
    • the last outcome as a short code plus a sentence;
    • the cooling deadline (an epoch);
    • rank;
    • stream mark;
    • grade.

    Today the view carries only the standby and the second link.

  • Deadlines as epochs: next segment due, next standby re-check, next link back, next link-list re-read, and a swap in progress.

  • The night's runs: start and end for each link, filler stretches, each swap's cause (#90).

  • The late threshold the channel uses.

Done when

  • In the unit lane:
    • the channel view lists every link with the fields above;
    • its deadlines move as the channel's timers do;
    • its runs add up to the time played.
  • In the frontend tests:
    • from a fixture, the card renders the links table with filter counts that match;
    • a countdown renders from a deadline;
    • the timeline draws the runs and filler;
    • the tag row is gone.
Part of #103. On the [mockup canvas](https://claude.ai/artifact/81TFkGA3agPRSmkL38L4yJ), Picked column: **Playing · 5A**. It is interactive: press Play on the board to see the countdowns and filters work. Builds on #90, which has the data side of the swaps (what each dropped, why, which stream it landed on). ## What happens The owner's words: the card's tags for buffer, swaps, stalls and recovers are noise. When a stream is unstable, nothing on the card says why it swapped or when the next swap will come. The card should show every possible link for the game, which ones were checked and which swapped, and stay live instead of updating in steps. ## The idea One card per playing channel. A Warm background channel (#96) gets the same card with its Warm mark. 1. **Header.** - Contents: a sport glyph, the game, a chip for how long it has played and a viewers chip. - Buttons: **Swap now** and **Wrong game**. 2. **The link playing.** - Contents: the site, a picture chip (`720p60`), the time on this link, a health word and the link's grade (#94). - A bar for each recent segment wait, with a dashed line where "late" begins (the channel's real threshold). - A buffer gauge with its seconds. - This replaces the row of tags. 3. **Next.** A short list, each line with a countdown and a ring: - next segment due; - the standby that takes over "if late"; - the next standby re-check; - the next link back from cooling; - the next re-read of the link list. 4. **Tonight.** - **The timeline:** a run for each stretch on a link, labelled by site, with swaps as ticks, filler hatched and a "now" line. Hovering a run gives the site and its times. - **Counts as chips:** swaps, sites played from, minutes of filler. 5. **Links.** A table of every link for the game: - **Columns:** site, rank (signal bars), stream, state, last tried, why, grade, next. - **Stream:** links that carry the same stream share a letter (`stream_identity` / `Entry.mark()`). - **State, as a pill:** Playing, Standby, Backup, Cooling, Held back, Ready to try, Untried. - **Why:** an icon and a short value, for example a stall icon with `12 s`, or no stream with `×3`. The full reason shows on hover. - **Next:** a countdown and a bar for cooling links. - **Filter chips with counts:** All, Ready, Cooling, Waiting. ## Data it needs The channel view (`_channel_view`) gains: - **`links`:** every link the game has, with: - state; - last tried at; - the last outcome as a short code plus a sentence; - the cooling deadline (an epoch); - rank; - stream mark; - grade. Today the view carries only the standby and the second link. - **Deadlines as epochs:** next segment due, next standby re-check, next link back, next link-list re-read, and a swap in progress. - **The night's runs:** start and end for each link, filler stretches, each swap's cause (#90). - **The late threshold** the channel uses. ## Done when - **In the unit lane:** - the channel view lists every link with the fields above; - its deadlines move as the channel's timers do; - its runs add up to the time played. - **In the frontend tests:** - from a fixture, the card renders the links table with filter counts that match; - a countdown renders from a deadline; - the timeline draws the runs and filler; - the tag row is gone.
Author
Owner

Merged in PR #112 (46a39c3) and deployed 2026-11-08 08:21Z (container 0b677e66cda0) while nobody watched; the change is archived in dfbe572.

The Playing card is now 5A:

  • Header: sport glyph, game, a ticking clock chip, viewers, the verdict only when there is something to know (Let it work, Your call, Game over), Warm for a background channel; Swap now and Wrong game.
  • The link playing: site, picture chip (720p60), time on the link, stream letter, health word (its evidence behind the info icon), grade. A bar per source wait for a new segment over 3 min, the open one growing, against a dashed line at the channel's real late threshold: two segment lengths, the "no new segment" rule after which the standby takes over. A buffer gauge. The recovery's step and filler seconds while one runs.
  • Next: countdown rings ticking every second from epochs the server sends: segment, the standby that takes over if late (or the standby search's state), its re-check, the next link back, the list's re-read, the next recovery round.
  • Tonight: a timeline of the runs labelled by site, swaps as ticks, filler hatched, a now line, a hover per run with why it ended; chips for swaps (recoveries + other swaps), sites and filler; the legend entries toggle.
  • Links: every link in try order: site, tier bars (gold 3, bronze 2, other 1), stream letter, state pill, last tried, why (icon + figure, sentence on hover), grade, next (countdown + bar, next, or Go back). All / Ready / Cooling / Waiting filters with counts.
  • Gone: the tag row, the strip of five, the Standby/Backup columns, the Recent list.

Not seen live yet: nobody was watching at the deploy. Left open for the live check: tune a followed game and confirm the links table fills, the countdowns tick, and a swap draws a tick with its cause on hover.

Merged in PR #112 (46a39c3) and deployed 2026-11-08 08:21Z (container 0b677e66cda0) while nobody watched; the change is archived in dfbe572. The Playing card is now 5A: - **Header:** sport glyph, game, a ticking clock chip, viewers, the verdict only when there is something to know (Let it work, Your call, Game over), Warm for a background channel; Swap now and Wrong game. - **The link playing:** site, picture chip (`720p60`), time on the link, stream letter, health word (its evidence behind the info icon), grade. A bar per source wait for a new segment over 3 min, the open one growing, against a dashed line at the channel's real late threshold: two segment lengths, the "no new segment" rule after which the standby takes over. A buffer gauge. The recovery's step and filler seconds while one runs. - **Next:** countdown rings ticking every second from epochs the server sends: segment, the standby that takes over if late (or the standby search's state), its re-check, the next link back, the list's re-read, the next recovery round. - **Tonight:** a timeline of the runs labelled by site, swaps as ticks, filler hatched, a now line, a hover per run with why it ended; chips for swaps (`recoveries + other swaps`), sites and filler; the legend entries toggle. - **Links:** every link in try order: site, tier bars (gold 3, bronze 2, other 1), stream letter, state pill, last tried, why (icon + figure, sentence on hover), grade, next (countdown + bar, `next`, or Go back). All / Ready / Cooling / Waiting filters with counts. - Gone: the tag row, the strip of five, the Standby/Backup columns, the Recent list. Not seen live yet: nobody was watching at the deploy. Left open for the live check: tune a followed game and confirm the links table fills, the countdowns tick, and a swap draws a tick with its cause on hover.
Author
Owner

Closed at the owner's word (2026-11-08): shipped in PR #112, deployed 08:21Z, archived in dfbe572. Reopen if the live check on a watched game shows otherwise.

Closed at the owner's word (2026-11-08): shipped in PR #112, deployed 08:21Z, archived in dfbe572. Reopen if the live check on a watched game shows otherwise.
Sign in to join this conversation.
No labels
No milestone
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#105
No description provided.