diff --git a/examples/app-showcase/src/pages/command-center-jsx.page.ts b/examples/app-showcase/src/pages/command-center-jsx.page.ts index a3278078d..cc7c327f7 100644 --- a/examples/app-showcase/src/pages/command-center-jsx.page.ts +++ b/examples/app-showcase/src/pages/command-center-jsx.page.ts @@ -3,15 +3,16 @@ import { definePage } from '@objectstack/spec/ui'; /** - * Command Center — a `kind:'html'` page (ADR-0080; formerly `kind:'jsx'`). - * The entire layout is authored as a constrained JSX/HTML + Tailwind *string*; - * at save time - * `@objectstack/sdui-parser` compiles it (parse, never execute) into the SDUI - * tree, which the normal PageRenderer / SchemaRenderer renders. Every tag is a - * real registered component — `flex`, `grid`, `card`, `text`, `badge`, `stack`. + * Command Center — a `kind:'html'` page (ADR-0080): constrained JSX compiled to + * the SDUI tree, parsed-never-executed. It composes registered components with + * structured layout — the html tier's actual purpose. * - * Demonstrates what the fixed page schema cannot: Tailwind-freeform layout that - * still composes the platform's real components. Browser-verified. + * Styling (ADR-0065): a page's source is runtime metadata the build's Tailwind + * never scans, so utility `className`s silently no-op. So this page uses NO + * Tailwind: layout is the components' own structured props (``, + * ``), and any custom CSS is a JSON `style` object with + * `hsl(var(--token))` theme colors (quoted keys/values — a JS-style object is + * parsed as a deferred expression and won't apply). */ export const CommandCenterJsxPage = definePage({ name: 'showcase_command_center_jsx', @@ -19,59 +20,57 @@ export const CommandCenterJsxPage = definePage({ type: 'home', kind: 'html', source: ` - + - - - - + +
Operations · HTML-source page
+
Command Center
+
Authored as constrained JSX and compiled to the SDUI tree — parsed, never executed. Layout is structured component props; color is an inline style object with theme tokens. No Tailwind.
- - - - - - - - - - - - - - - - - - - - - + + +
Open Tasks
+
128
+
▲ 12% vs last week
+
+ +
In Progress
+
47
+
● 9 due today
+
+ +
Completed
+
1,902
+
▲ 4% this month
+
+ +
Cycle Time
+
2.4d
+
▼ 18% faster
+
- - - - - - - - - - - - - - - - - - - - - - + + +
Weekly Throughput
+ + + + + + + + + +
+ +
Recent Activity
+
Onboarding flow shipped
+
12 tasks moved to Review
+
SLA breach on #4821
+
Sprint 42 planning
+
`, });