Metric history charts #33

Merged
Gilles merged 6 commits from feat/30-metric-charts into master 2026-10-29 23:10:57 +00:00
Owner

Closes #30.

Metric history charts for "format maison" (custom) reports, drawn by bigb:

  • for each metric of the report that has a key and a numeric value, the history panel shows one chart;
  • each chart is an ad hoc bigb query on reports.ReportMetric (argus/backend#46/#47): fields: ["at", "value"], filtered on project owner/repo, ref kind/value, custom type, variant and key, ordered by at;
  • rendering is bigb-vue's BigbQueryResult with the time-series chart options (bigb-vue#24): proportional time axis, steps, unit, var(--chart-line) color per theme (checked with the dataviz palette validator), values table.

The first version of this PR drew its own SVG chart; it was reworked onto bigb before merging.

Requires argus/backend#47 deployed (ReportMetric registered in bigb, bigb-django 1.3.0 for fields). bigb-vue is bumped to the next snapshot that has the chart options (0.2.0-dev.94).

Known difference: the de-duplicated source reports add no row, so the last step ends at the last change rather than at last_seen_at.

🤖 Generated with Claude Code

https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA

Closes #30. Metric history charts for "format maison" (custom) reports, drawn by **bigb**: - for each metric of the report that has a `key` and a numeric value, the history panel shows one chart; - each chart is an ad hoc bigb query on `reports.ReportMetric` (argus/backend#46/#47): `fields: ["at", "value"]`, filtered on project owner/repo, ref kind/value, custom type, variant and key, ordered by `at`; - rendering is bigb-vue's `BigbQueryResult` with the time-series chart options (bigb-vue#24): proportional time axis, steps, unit, `var(--chart-line)` color per theme (checked with the dataviz palette validator), values table. The first version of this PR drew its own SVG chart; it was reworked onto bigb before merging. Requires argus/backend#47 deployed (ReportMetric registered in bigb, bigb-django 1.3.0 for `fields`). bigb-vue is bumped to the `next` snapshot that has the chart options (0.2.0-dev.94). Known difference: the de-duplicated source reports add no row, so the last step ends at the last change rather than at `last_seen_at`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
feature: metric history charts
All checks were successful
ci / unit (pull_request) Successful in 2m5s
ci / publish (pull_request) Has been skipped
23ec5354c2
In a custom report's history, one small step chart per numeric metric
with a stable key (MetricChart.vue, utils/metricSeries.ts): a single
series named by its title with the latest value, 2px step line and a
10% wash, the last step extended to last_seen_at for de-duplicated
source reports, recessive axis with the min/max values, crosshair and
tooltip on hover and keyboard (arrows), and the values as a table.
--chart-line per theme: the accent, one step darker on the dark theme
(#00d5ff is too light for a chart mark there; checked with the dataviz
palette validator).

Closes #30

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
Author
Owner
<!-- argus-link-bot:argus/frontend --> 📊 [Rapports Argus pour cette PR](https://reports.stationmyr.net/argus/frontend/pr/33)
refactor: metric charts drawn by bigb (ReportMetric query, bigb-vue chart)
All checks were successful
ci / unit (pull_request) Successful in 2m1s
ci / publish (pull_request) Has been skipped
16f8bb34c7
The custom SVG chart is replaced by bigb-vue's BigbQueryResult: an ad
hoc query on reports.ReportMetric (argus/backend#46) per keyed metric,
rendered with the time-series chart options (bigb-vue#24).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
Merge remote-tracking branch 'origin/feat/29-overview' into feat/30-metric-charts
All checks were successful
ci / unit (pull_request) Successful in 1m57s
ci / publish (pull_request) Has been skipped
f9d8afd35e
Gilles changed target branch from feat/29-overview to master 2026-10-29 23:03:54 +00:00
Gilles merged commit a27634d6a7 into master 2026-10-29 23:10:57 +00:00
Gilles deleted branch feat/30-metric-charts 2026-10-29 23:10:57 +00:00
Gilles referenced this pull request from a commit 2026-10-29 23:10:59 +00:00
Sign in to join this conversation.
No description provided.