feat: render dashboard from model #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/issue-7-model-renderer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Renders the one-page dashboard directly from the validated dashboard model.
Closes #7.
Why
The MVP needs to prove that layout, content, icons, telemetry, services, modules, and status data flow through the model rather than preview fixtures or component hardcoding.
Changes
dashboardDocumentToUiDashboardprojection fromDashboardDocumentto reusable UI props.ready,empty, orinvalidmodel states.data-model-idattributes to telemetry cards, service rows, modules, and footer cells.Testing
bun run vitest run src/lib/ui/model-renderer.test.ts src/routes/page.test.ts src/lib/server/dashboard.test.ts src/lib/ui/components/render.test.ts-> 13 tests passed.bun run test-> 10 files, 48 tests passed.bun run check-> 0 Svelte diagnostics.bun run build-> production app build passed.bun run build-storybook-> static Storybook build passed.git diff --check-> clean.Notes