fix: reject non-json model values

This commit is contained in:
vince 2026-06-18 17:49:18 +02:00
parent 74651a49de
commit b7c673bbd7
3 changed files with 72 additions and 3 deletions

View file

@ -140,16 +140,17 @@ function service(
icon: string,
href?: string,
) {
return {
const entry = {
id,
label,
description,
icon,
link: href ? { href, external: true } : undefined,
severity: "ok" as const,
detail: "ready",
datasource: { type: "placeholder" as const, reason: "service health adapter pending" },
};
return href ? { ...entry, link: { href, external: true } } : entry;
}
function group(id: string, title: string, services: ReturnType<typeof service>[]) {