Skip to content

feat(board): draw CPU, memory and the device's runs on the 24 h chart - #22

Merged
agent-kit-startup merged 2 commits into
mainfrom
feat/device-run-chart
Nov 30, 2026
Merged

agent-kit-startup merged 2 commits into
mainfrom
feat/device-run-chart

Conversation

@agent-kit-startup

@agent-kit-startup agent-kit-startup commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The device chart now shows what the device did over the last 24 h next to
how it held up.

  • Series: battery (area wash), CPU and memory (lines) share the left
    0-100% scale; temperature keeps the right 20-50° scale and the dashed
    40° line. The three line colours are new chart tokens, checked as a
    set on the side column background for colour-blind and normal-vision
    separation and 3:1 contrast; battery is told apart by its form.
  • Runs: one band per job in device_runs, from start to end, behind the
    series. A run still open reaches now. Bands are neutral and faint, so
    the lines stay readable. A failed job also gets a red tick along the
    top of its band, so failure is not carried by colour alone. An
    approximate span (a GitLab runner busy between two polls, with no
    project, job or result) is fainter, with dashed edges. Short jobs keep
    a minimum width (2 px, 4 px when failed). Each band has a native
    tooltip with project, job, result and times.
  • Hosts without a battery (Linux, VPS, macOS) title the chart "This
    host, last 24 h" and still draw CPU, memory and runs. Before, the
    chart only drew battery and temperature, so it was blank there. A
    series with no data is left out with its scale, threshold line and
    legend entry.
  • Missing values (CPU or memory null on macOS, samples older than those
    fields) and gaps over 2.5 sample spacings (never under 15 min) break
    the line instead of dropping to zero or bridging the gap.
  • The legend lists only the series and band kinds present and wraps in
    the narrow column. The chart's accessible name describes the scales,
    the series and the bands (how many jobs, failed, approximate, still
    running).
  • Tick labels get a halo in the column's background colour, so they
    stay readable at the 14vh minimum height where lines and bands pass
    under them.

Screenshots are regenerated with synthetic device_runs (a failed job, a
canceled one, approximate GitLab spans and an open span) plus CPU and
memory samples with a 45 min gap. A node test covers the line breaks.

The device chart now shows what the device did over the last 24 h next to
how it held up.

- Series: battery (area wash), CPU and memory (lines) share the left
  0-100% scale; temperature keeps the right 20-50° scale and the dashed
  40° line. The three line colours are new chart tokens, checked as a
  set on the side column background for colour-blind and normal-vision
  separation and 3:1 contrast; battery is told apart by its form.
- Runs: one band per job in device_runs, from start to end, behind the
  series. A run still open reaches now. Bands are neutral and faint, so
  the lines stay readable. A failed job also gets a red tick along the
  top of its band, so failure is not carried by colour alone. An
  approximate span (a GitLab runner busy between two polls, with no
  project, job or result) is fainter, with dashed edges. Short jobs keep
  a minimum width (2 px, 4 px when failed). Each band has a native
  tooltip with project, job, result and times.
- Hosts without a battery (Linux, VPS, macOS) title the chart "This
  host, last 24 h" and still draw CPU, memory and runs. Before, the
  chart only drew battery and temperature, so it was blank there. A
  series with no data is left out with its scale, threshold line and
  legend entry.
- Missing values (CPU or memory null on macOS, samples older than those
  fields) and gaps over 2.5 sample spacings (never under 15 min) break
  the line instead of dropping to zero or bridging the gap.
- The legend lists only the series and band kinds present and wraps in
  the narrow column. The chart's accessible name describes the scales,
  the series and the bands (how many jobs, failed, approximate, still
  running).

Screenshots are regenerated with synthetic device_runs (a failed job, a
canceled one, approximate GitLab spans and an open span) plus CPU and
memory samples with a 45 min gap. A node test covers the line breaks.
A halo in the side column background keeps the scale labels legible
where lines and bands pass under them at the 14vh minimum. The chart
line test moves to its own test case.
@agent-kit-startup
agent-kit-startup merged commit 263afc1 into main Nov 30, 2026
3 checks passed
@agent-kit-startup
agent-kit-startup deleted the feat/device-run-chart branch November 30, 2026 20:03
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.

1 participant