fix(web): validate restored dashboard tile shapes
This commit is contained in:
parent
88c448258d
commit
bac809952a
2 changed files with 122 additions and 7 deletions
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue