Scroll the runs table, pick a range, and choose what a comparison plots against

This commit is contained in:
2026-08-25 16:32:34 +02:00
parent 8d5cf0a71a
commit 28a00a55d5
14 changed files with 498 additions and 151 deletions
@@ -13,6 +13,7 @@ import {
compareQueryOptions,
NO_CURVE,
runsListQueryOptions,
STEP_AXIS,
shortenRunLabel,
} from "@/components/Runs/queries"
import { type DataContext, useDataContext } from "./dataContext"
@@ -155,7 +156,7 @@ function RunsChart({ widget }: WidgetProps) {
: (found.data ?? []).slice(0, MAX_SERIES).map((run) => run.id)
const { data, isPending } = useQuery(
compareQueryOptions(ids, metric, refreshMs),
compareQueryOptions(ids, metric, STEP_AXIS, refreshMs),
)
const palette = usePalette()
const lines = (data?.lines ?? []).slice(0, MAX_SERIES)