Repository navigation
feat(board): draw CPU, memory and the device's runs on the 24 h chart - #22
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The device chart now shows what the device did over the last 24 h next to
how it held up.
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.
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.
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.
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 narrow column. The chart's accessible name describes the scales,
the series and the bands (how many jobs, failed, approximate, still
running).
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.