Let a dashboard be read against runs instead of the live engine

This commit is contained in:
2026-08-25 11:48:15 +02:00
parent d2951a325e
commit 5ece544b14
13 changed files with 438 additions and 32 deletions
+6 -11
View File
@@ -9,17 +9,12 @@ import {
SelectTrigger,
SelectValue,
} from "@/components/ui/select"
import { compareQueryOptions, runMetricsQueryOptions, shortId } from "./queries"
/**
* Why a finished run can have nothing to draw.
*
* A cache hit restores what a node returned, not the values it emitted along
* the way, so a run whose training node was reused has a result and no curve.
* Said here rather than left as an empty chart, which reads as a fault.
*/
export const NO_CURVE =
"No curve was recorded. A node restored from the cache replays no emissions, so a run that reused an earlier one draws nothing here — its outputs are still on the result."
import {
compareQueryOptions,
NO_CURVE,
runMetricsQueryOptions,
shortId,
} from "./queries"
/** The metrics one run recorded, in the order they are worth offering. */
export function useMetricNames(runId: string | undefined) {