fix(web): stop doubling the dot modifier on the status page head

`serverDotClass()` already returns the full `dot--<status>` class, but the head
fed it to a `DotStatus` prop that prepends `dot--` again, so the dot never
matched a status color. Strip the prefix and assert the concrete class
(`dot--attention` / `dot--ok`) in the page tests instead of just the size.
This commit is contained in:
yuez committed 2026-10-27 18:07:11 +08:00
1 parent f549045ed2
commit ec80ee4bab
2 files changed
+31 -2

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ export function StatusPage() {
}
const statusLabel = t(`state.${server.status}`, { defaultValue: server.status });
const headDot = serverDotClass(server.status) as DotStatus;
const headDot = serverDotClass(server.status).replace("dot--", "") as DotStatus;
// "updated <relative>" — the prototype's quiet freshness hint in the head.
const updatedAt = info.dataUpdatedAt || null;
const updatedLabel = t("status.updated", {