fix(web): validate restored dashboard tile shapes

This commit is contained in:
vince 2026-06-20 14:38:19 +02:00
parent 88c448258d
commit bac809952a
2 changed files with 122 additions and 7 deletions

View file

@ -213,7 +213,21 @@ describe("dashboard refresh lifecycle", () => {
tiles: [
{},
{
item: { id: "infra-ram", detail: "live" },
item: {
id: "incomplete",
detail: "live",
},
savedAt: 1_000,
tile: { kind: "telemetry", id: "incomplete" },
},
{
item: {
id: "infra-ram",
label: "Infra RAM",
value: { kind: "percent", value: 42 },
detail: "live",
severity: "ok",
},
savedAt: 1_000,
tile: { kind: "telemetry", id: "infra-ram" },
},
@ -242,6 +256,8 @@ describe("dashboard refresh lifecycle", () => {
tile: { kind: "telemetry", id: "infra-ram" },
item: {
id: "infra-ram",
label: "Infra RAM",
value: { kind: "percent", value: 42 },
detail: "live - stale 15s",
severity: "stale",
},