fix: complete dashboard hydration

This commit is contained in:
Marc-André Bombeck committed 2026-08-05 23:03:17 +02:00
1 parent 03877a0971
commit d07b9249c8
16 files changed
+468 -60

No files matched your search

@@ -200,9 +200,12 @@ describe("display-transform rounding guard — the bypass freeze", () => {
it("every allowlisted surface still converts its rendered values", () => {
// The chart formats its own series; anything these files render outside
// the chart must come back through the preference hook.
// the chart must come back through the preference hook. Either reading of
// it counts: a surface that paints inside a streamed page boundary takes
// `useUnitDisplayOnceMounted()`, which is the same sugar with the
// preference withheld from the hydration render.
const offenders = RAW_SCALE_SURFACES.filter(
(rel) => !read(rel).includes("useUnitDisplay()"),
(rel) => !/\buseUnitDisplay(OnceMounted)?\(\)/.test(read(rel)),
);
expect(offenders).toEqual([]);
});