-
{strings.cellStateLegend}
+ {comparisonMode === 'history' ?
{strings.historyCaption}
: null}
+
+ {comparisonMode === 'history' ? strings.historyCellStateLegend : strings.cellStateLegend}
+
{strings.methodologyNote}
);
diff --git a/packages/app/src/lib/benchmark-data.server.ts b/packages/app/src/lib/benchmark-data.server.ts
index ccc85317..e288596c 100644
--- a/packages/app/src/lib/benchmark-data.server.ts
+++ b/packages/app/src/lib/benchmark-data.server.ts
@@ -19,3 +19,15 @@ export const getCachedBenchmarks = cachedQuery(
'benchmarks',
{ blobOnly: true },
);
+
+/** Historical overview snapshots use the same line-level as-of semantics as
+ * the dashboard, cached separately from the absolute-latest read. */
+export const getCachedBenchmarksAsOf = cachedQuery(
+ (dbModelKeys: string[], date: string) => {
+ if (FIXTURES_MODE) return Promise.resolve(loadFixture