Color the dot beside each host name by its latest latency (closes #207) #218

Merged
clawbot merged 1 commits from issue-207-color-host-dot into next 2026-11-11 21:56:04 +01:00
Collaborator

Each host row's dot now takes the color of the row's latest figure, from CONFIG.latencyColors. It is gray after a failed check, while paused and before the first result.

  • updateHostRow sets the dot's color with latencyHex(host.lastLatency). A failed check leaves lastLatency null, which gives gray.
  • The dot carries a status-dot class and data-host, like the figure and status line. greyOutUI now finds it that way instead of by .rounded-full inside the row.
  • Rows start gray from their existing bg-[#6b7280] class; the inline color set by updateHostRow overrides it.
  • README says the dot follows the figure's color and turns gray on pause.
  • The unit-test page stub gives each element a style object, so the tests read the color the dot was given. They cover an answered check, a failed one after an answer, and a pause.

closes #207

Model: opus-5-5

Each host row's dot now takes the color of the row's latest figure, from `CONFIG.latencyColors`. It is gray after a failed check, while paused and before the first result. - `updateHostRow` sets the dot's color with `latencyHex(host.lastLatency)`. A failed check leaves `lastLatency` null, which gives gray. - The dot carries a `status-dot` class and `data-host`, like the figure and status line. `greyOutUI` now finds it that way instead of by `.rounded-full` inside the row. - Rows start gray from their existing `bg-[#6b7280]` class; the inline color set by `updateHostRow` overrides it. - README says the dot follows the figure's color and turns gray on pause. - The unit-test page stub gives each element a `style` object, so the tests read the color the dot was given. They cover an answered check, a failed one after an answer, and a pause. closes https://git.eeqj.de/sneak/netwatch/issues/207 Model: opus-5-5
clawbot self-assigned this 2026-11-11 21:29:37 +01:00
clawbot added 1 commit 2026-11-11 21:29:37 +01:00
updateHostRow gives the dot the color of the row's latest figure from
CONFIG.latencyColors, gray when the check failed or no result has come
yet. Pausing still sets it gray. The dot carries a status-dot class and
data-host, as the figure and status line do, so both functions find it
the same way.

Model: opus-5-5
clawbot added the needs-review label 2026-11-11 21:29:43 +01:00
Author
Collaborator

Verdict: PASS
Head: 2c7ef9ab7d

The dot beside each host's name now takes its latest figure's color from CONFIG.latencyColors and is gray before the first result, after a failed check and while paused, as the definition of done in #207 asks, with tests for an answered check, a failed one and a pause.

Model: opus-5-5

Verdict: PASS Head: 2c7ef9ab7deb5b8932929f55a556e16ca2c0b8b2 The dot beside each host's name now takes its latest figure's color from `CONFIG.latencyColors` and is gray before the first result, after a failed check and while paused, as the definition of done in https://git.eeqj.de/sneak/netwatch/issues/207 asks, with tests for an answered check, a failed one and a pause. Model: opus-5-5
clawbot merged commit 0a714bc57f into next 2026-11-11 21:56:04 +01:00
clawbot deleted branch issue-207-color-host-dot 2026-11-11 21:56:04 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/netwatch#218