@sybilion/uilib 1.4.28 → 1.4.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/agent-glossary/content-prompt.generated.ts +8 -2
  2. package/dist/agent-glossary/content.generated.ts +8 -2
  3. package/dist/agent-glossary/content.md +8 -2
  4. package/dist/agent-glossary/content.prompt.md +8 -2
  5. package/dist/agent-glossary/workspace.generated.ts +3 -9
  6. package/dist/agent-glossary/workspace.index.md +3 -9
  7. package/dist/agent-glossary/workspace.md +3 -9
  8. package/dist/esm/types/src/docs/pages/PageEmptyCanvasPage.d.ts +1 -0
  9. package/package.json +1 -1
  10. package/src/components/ui/Chat/AGENT.md +18 -0
  11. package/src/components/ui/Chat/ChatChrome/AGENT.md +55 -0
  12. package/src/{docs/agent-guidance/chat-sheet.md → components/ui/Chat/ChatSheet/AGENT.md} +2 -2
  13. package/src/components/ui/Page/AGENT.md +8 -2
  14. package/src/components/ui/Page/PageEmptyCanvas/AGENT.md +17 -0
  15. package/src/docs/pages/ChatAttachmentsDropzonePage.tsx +1 -1
  16. package/src/docs/pages/ChatComposerPrefillPage.tsx +1 -1
  17. package/src/docs/pages/ChatSheetPage.tsx +2 -2
  18. package/src/docs/pages/ChatSlashCommandsPage.tsx +1 -1
  19. package/src/docs/pages/ChatUserCsvAttachmentPage.tsx +1 -1
  20. package/src/docs/pages/PageColumnsPage.tsx +1 -1
  21. package/src/docs/pages/PageEmptyCanvasPage.tsx +86 -0
  22. package/src/docs/pages/PageFooterPage.tsx +21 -2
  23. package/src/docs/pages/PagePage.tsx +1 -1
  24. package/src/docs/pages/PageTabsPage.tsx +1 -1
  25. package/src/docs/registry.ts +6 -0
  26. package/src/docs/agent-guidance/chat-attachments-dropzone.md +0 -15
  27. package/src/docs/agent-guidance/chat-composer-prefill.md +0 -15
  28. package/src/docs/agent-guidance/chat-slash-commands.md +0 -15
  29. package/src/docs/agent-guidance/chat-user-csv-attachment.md +0 -14
  30. package/src/docs/agent-guidance/page-columns.md +0 -19
  31. package/src/docs/agent-guidance/page-footer.md +0 -15
  32. package/src/docs/agent-guidance/page-tabs.md +0 -19
  33. package/src/docs/agent-guidance/page.md +0 -15
@@ -128,6 +128,8 @@ Global tokens (host app \`:root\`, e.g. \`standalone-global.css\`): \`--page-wid
128
128
 
129
129
  ## PageTabs — rules and patterns
130
130
 
131
+ Use \`PageTabs\` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via \`PageXScroll\`) when triggers overflow the container; an outline variant exists for muted surfaces.
132
+
131
133
  **NEVER** place \`PageTabs\` inside \`PageContentSection\`. Tabs manage their own horizontal inset via \`PageXScroll\` / \`tabsListProps.withPaddings\`.
132
134
 
133
135
  ### Unified (tabs + panels inside PageContent)
@@ -226,7 +228,7 @@ In-section title block (\`title\`, \`description\`, \`actions\`). Use **inside**
226
228
 
227
229
  ### PageEmptyCanvas
228
230
 
229
- Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button). Use when a route has no data yet.
231
+ Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button). Place directly in \`PageContent\` (typically a \`PageContentSection\`); see \`PageEmptyCanvas/AGENT.md\`.
230
232
 
231
233
  ### GridLayout
232
234
 
@@ -240,13 +242,17 @@ Use inside sections for grouped content; see package \`AGENT.md\` on those compo
240
242
 
241
243
  Not part of the per-route skeleton but part of host app wiring:
242
244
 
243
- - **AppShell** / **AppShellMainContent** — sidebar + main column + header slot + footer.
245
+ - **AppShell** / **AppShellMainContent** — sidebar + main column + \`header\` / \`footer\` slots. Standalone apps pre-wire the page footer in \`AppLayout\`; route pages do not compose footer primitives.
244
246
  - **PageScroll** — scroll root for the main column.
245
247
  - **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside \`PageContent\`).
246
248
 
247
249
  ## Anti-patterns
248
250
 
249
251
  - \`PageTabs\` inside \`PageContentSection\`.
252
+ - \`PageTabs\` nested inside another \`PageTabs\`.
253
+ - \`PageTabs\` for sequential flow steps — use a wizard or stepper pattern instead.
254
+ - \`PageContentSection\` nested inside another \`PageContentSection\`.
255
+ - \`PageContentSection\` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
250
256
  - Inline styles or Tailwind for page structure.
251
257
  - Second \`PageHeader\` nested in content.
252
258
  - \`PageContent\` without sections for multi-block pages (prefer multiple \`PageContentSection\`).
@@ -128,6 +128,8 @@ Global tokens (host app \`:root\`, e.g. \`standalone-global.css\`): \`--page-wid
128
128
 
129
129
  ## PageTabs — rules and patterns
130
130
 
131
+ Use \`PageTabs\` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via \`PageXScroll\`) when triggers overflow the container; an outline variant exists for muted surfaces.
132
+
131
133
  **NEVER** place \`PageTabs\` inside \`PageContentSection\`. Tabs manage their own horizontal inset via \`PageXScroll\` / \`tabsListProps.withPaddings\`.
132
134
 
133
135
  ### Unified (tabs + panels inside PageContent)
@@ -226,7 +228,7 @@ In-section title block (\`title\`, \`description\`, \`actions\`). Use **inside**
226
228
 
227
229
  ### PageEmptyCanvas
228
230
 
229
- Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button). Use when a route has no data yet.
231
+ Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button). Place directly in \`PageContent\` (typically a \`PageContentSection\`); see \`PageEmptyCanvas/AGENT.md\`.
230
232
 
231
233
  ### GridLayout
232
234
 
@@ -240,13 +242,17 @@ Use inside sections for grouped content; see package \`AGENT.md\` on those compo
240
242
 
241
243
  Not part of the per-route skeleton but part of host app wiring:
242
244
 
243
- - **AppShell** / **AppShellMainContent** — sidebar + main column + header slot + footer.
245
+ - **AppShell** / **AppShellMainContent** — sidebar + main column + \`header\` / \`footer\` slots. Standalone apps pre-wire the page footer in \`AppLayout\`; route pages do not compose footer primitives.
244
246
  - **PageScroll** — scroll root for the main column.
245
247
  - **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside \`PageContent\`).
246
248
 
247
249
  ## Anti-patterns
248
250
 
249
251
  - \`PageTabs\` inside \`PageContentSection\`.
252
+ - \`PageTabs\` nested inside another \`PageTabs\`.
253
+ - \`PageTabs\` for sequential flow steps — use a wizard or stepper pattern instead.
254
+ - \`PageContentSection\` nested inside another \`PageContentSection\`.
255
+ - \`PageContentSection\` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
250
256
  - Inline styles or Tailwind for page structure.
251
257
  - Second \`PageHeader\` nested in content.
252
258
  - \`PageContent\` without sections for multi-block pages (prefer multiple \`PageContentSection\`).
@@ -127,6 +127,8 @@ Global tokens (host app `:root`, e.g. `standalone-global.css`): `--page-width`,
127
127
 
128
128
  ## PageTabs — rules and patterns
129
129
 
130
+ Use `PageTabs` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via `PageXScroll`) when triggers overflow the container; an outline variant exists for muted surfaces.
131
+
130
132
  **NEVER** place `PageTabs` inside `PageContentSection`. Tabs manage their own horizontal inset via `PageXScroll` / `tabsListProps.withPaddings`.
131
133
 
132
134
  ### Unified (tabs + panels inside PageContent)
@@ -225,7 +227,7 @@ In-section title block (`title`, `description`, `actions`). Use **inside** `Page
225
227
 
226
228
  ### PageEmptyCanvas
227
229
 
228
- Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Use when a route has no data yet.
230
+ Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Place directly in `PageContent` (typically a `PageContentSection`); see `PageEmptyCanvas/AGENT.md`.
229
231
 
230
232
  ### GridLayout
231
233
 
@@ -239,13 +241,17 @@ Use inside sections for grouped content; see package `AGENT.md` on those compone
239
241
 
240
242
  Not part of the per-route skeleton but part of host app wiring:
241
243
 
242
- - **AppShell** / **AppShellMainContent** — sidebar + main column + header slot + footer.
244
+ - **AppShell** / **AppShellMainContent** — sidebar + main column + `header` / `footer` slots. Standalone apps pre-wire the page footer in `AppLayout`; route pages do not compose footer primitives.
243
245
  - **PageScroll** — scroll root for the main column.
244
246
  - **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside `PageContent`).
245
247
 
246
248
  ## Anti-patterns
247
249
 
248
250
  - `PageTabs` inside `PageContentSection`.
251
+ - `PageTabs` nested inside another `PageTabs`.
252
+ - `PageTabs` for sequential flow steps — use a wizard or stepper pattern instead.
253
+ - `PageContentSection` nested inside another `PageContentSection`.
254
+ - `PageContentSection` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
249
255
  - Inline styles or Tailwind for page structure.
250
256
  - Second `PageHeader` nested in content.
251
257
  - `PageContent` without sections for multi-block pages (prefer multiple `PageContentSection`).
@@ -127,6 +127,8 @@ Global tokens (host app `:root`, e.g. `standalone-global.css`): `--page-width`,
127
127
 
128
128
  ## PageTabs — rules and patterns
129
129
 
130
+ Use `PageTabs` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via `PageXScroll`) when triggers overflow the container; an outline variant exists for muted surfaces.
131
+
130
132
  **NEVER** place `PageTabs` inside `PageContentSection`. Tabs manage their own horizontal inset via `PageXScroll` / `tabsListProps.withPaddings`.
131
133
 
132
134
  ### Unified (tabs + panels inside PageContent)
@@ -225,7 +227,7 @@ In-section title block (`title`, `description`, `actions`). Use **inside** `Page
225
227
 
226
228
  ### PageEmptyCanvas
227
229
 
228
- Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Use when a route has no data yet.
230
+ Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Place directly in `PageContent` (typically a `PageContentSection`); see `PageEmptyCanvas/AGENT.md`.
229
231
 
230
232
  ### GridLayout
231
233
 
@@ -239,13 +241,17 @@ Use inside sections for grouped content; see package `AGENT.md` on those compone
239
241
 
240
242
  Not part of the per-route skeleton but part of host app wiring:
241
243
 
242
- - **AppShell** / **AppShellMainContent** — sidebar + main column + header slot + footer.
244
+ - **AppShell** / **AppShellMainContent** — sidebar + main column + `header` / `footer` slots. Standalone apps pre-wire the page footer in `AppLayout`; route pages do not compose footer primitives.
243
245
  - **PageScroll** — scroll root for the main column.
244
246
  - **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside `PageContent`).
245
247
 
246
248
  ## Anti-patterns
247
249
 
248
250
  - `PageTabs` inside `PageContentSection`.
251
+ - `PageTabs` nested inside another `PageTabs`.
252
+ - `PageTabs` for sequential flow steps — use a wizard or stepper pattern instead.
253
+ - `PageContentSection` nested inside another `PageContentSection`.
254
+ - `PageContentSection` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
249
255
  - Inline styles or Tailwind for page structure.
250
256
  - Second `PageHeader` nested in content.
251
257
  - `PageContent` without sections for multi-block pages (prefer multiple `PageContentSection`).
@@ -21,6 +21,8 @@ Entry point for \`@sybilion/uilib\`. Open linked AGENT.md before using a compone
21
21
  - [Chart](src/components/ui/Chart/AGENT.md) — ChartContainer wraps Recharts charts with the library’s theming, mapping a ChartConfig of labels and colours onto CSS…
22
22
  - [ChartAreaInteractive](src/components/ui/ChartAreaInteractive/AGENT.md) — ChartAreaInteractive is the full chart shell for time series data, combining an area chart with a time range selector…
23
23
  - [Chat](src/components/ui/Chat/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. Drive…
24
+ - [ChatChrome](src/components/ui/Chat/ChatChrome/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It su…
25
+ - [ChatSheet](src/components/ui/Chat/ChatSheet/AGENT.md) — ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits t…
24
26
  - [Checkbox](src/components/ui/Checkbox/AGENT.md) — Checkbox is a binary control for selecting or deselecting an option. Pair it with a Label linked via htmlFor so the t…
25
27
  - [Chip](src/components/ui/Chip/AGENT.md) — Chips are compact capsules for filters, status labels, version tags, and quantitative delta indicators. Use the defau…
26
28
  - [Confirm](src/components/ui/Confirm/AGENT.md) — Confirm is a focused confirmation dialog built on Dialog, with a title, body, and paired confirm and cancel actions. …
@@ -51,6 +53,7 @@ Entry point for \`@sybilion/uilib\`. Open linked AGENT.md before using a compone
51
53
  - [NavUserHeader](src/components/ui/NavUserHeader/AGENT.md) — NavUserHeader shows the signed-in user with their name, email, and avatar, and opens a dropdown menu containing custo…
52
54
  - [Notifications](src/components/ui/Notifications/AGENT.md) — Toast stack for transient feedback — warning, danger, and loading states. Mount \`NotificationsProvider\` once near the…
53
55
  - [NumberControl](src/components/ui/NumberControl/AGENT.md) — NumberControl is a numeric stepper with minus and plus buttons for adjusting a value within a bounded range. Configur…
56
+ - [PageEmptyCanvas](src/components/ui/Page/PageEmptyCanvas/AGENT.md) — PageEmptyCanvas renders a centered empty state with a \`title\`, a \`hint\` (string or ReactNode), and an optional \`child…
54
57
  - [Progress](src/components/ui/Progress/AGENT.md) — Progress is a horizontal bar that communicates how much of a process has completed. Pass a value between 0 and 100 to…
55
58
  - [PullQuote](src/components/ui/PullQuote/AGENT.md) — PullQuote presents an editorial quote with a 2px accent rule on the left, display-face body text, and a small Manrope…
56
59
  - [RadioGroup](src/components/ui/RadioGroup/AGENT.md) — RadioGroup is a single-choice control for selecting one option from a short list. Pair each RadioGroupItem with a Lab…
@@ -86,18 +89,9 @@ Entry point for \`@sybilion/uilib\`. Open linked AGENT.md before using a compone
86
89
 
87
90
  ## Foundations
88
91
 
89
- - [Chat Attachments Dropzone](src/docs/agent-guidance/chat-attachments-dropzone.md) — ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content…
90
- - [Chat Composer Prefill](src/docs/agent-guidance/chat-composer-prefill.md) — The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.open…
91
- - [Chat Sheet](src/docs/agent-guidance/chat-sheet.md) — ChatSheet places the chat panel behind a trigger in the page header and portals it into the shell chat slot, matching…
92
- - [Chat Slash Commands](src/docs/agent-guidance/chat-slash-commands.md) — The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after…
93
- - [Chat User Csv Attachment](src/docs/agent-guidance/chat-user-csv-attachment.md) — User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message …
94
92
  - [Colors](src/docs/agent-guidance/colors.md) — Colour is defined as a set of core ramps (--sb-cyan/purple/red/green/yellow/gray/slate) plus semantic tokens that map…
95
93
  - [Icons](src/docs/agent-guidance/icons.md) — Icons come from the lucide-react package and are drawn at a 1.5px stroke (--icon-stroke). Use the --icon-size-\\* toke…
96
94
  - [Motion](src/docs/agent-guidance/motion.md) — Motion is quick and purposeful. Use --ease-standard for elements entering or changing state, --ease-exit for elements…
97
- - [Page](src/docs/agent-guidance/page.md) — PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole bod…
98
- - [Page Columns](src/docs/agent-guidance/page-columns.md) — PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or righ…
99
- - [Page Footer](src/docs/agent-guidance/page-footer.md) — PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on n…
100
- - [Page Tabs](src/docs/agent-guidance/page-tabs.md) — PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflo…
101
95
  - [Radii Shadows](src/docs/agent-guidance/radii-shadows.md) — Corners are small and square-biased: the scale runs from 0 to 12px, with semantic aliases for buttons, cards, and inp…
102
96
  - [Spacing](src/docs/agent-guidance/spacing.md) — The --p-\\* tokens are the canonical spacing scale: each step is a multiple of 4px, from --p-1 (4px) up to --p-24 (96p…
103
97
  - [Standalone App Layout](src/docs/agent-guidance/standalone-app-layout.md) — The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion sta…
@@ -20,6 +20,8 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
20
20
  - [Chart](src/components/ui/Chart/AGENT.md) — ChartContainer wraps Recharts charts with the library’s theming, mapping a ChartConfig of labels and colours onto CSS…
21
21
  - [ChartAreaInteractive](src/components/ui/ChartAreaInteractive/AGENT.md) — ChartAreaInteractive is the full chart shell for time series data, combining an area chart with a time range selector…
22
22
  - [Chat](src/components/ui/Chat/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. Drive…
23
+ - [ChatChrome](src/components/ui/Chat/ChatChrome/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It su…
24
+ - [ChatSheet](src/components/ui/Chat/ChatSheet/AGENT.md) — ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits t…
23
25
  - [Checkbox](src/components/ui/Checkbox/AGENT.md) — Checkbox is a binary control for selecting or deselecting an option. Pair it with a Label linked via htmlFor so the t…
24
26
  - [Chip](src/components/ui/Chip/AGENT.md) — Chips are compact capsules for filters, status labels, version tags, and quantitative delta indicators. Use the defau…
25
27
  - [Confirm](src/components/ui/Confirm/AGENT.md) — Confirm is a focused confirmation dialog built on Dialog, with a title, body, and paired confirm and cancel actions. …
@@ -50,6 +52,7 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
50
52
  - [NavUserHeader](src/components/ui/NavUserHeader/AGENT.md) — NavUserHeader shows the signed-in user with their name, email, and avatar, and opens a dropdown menu containing custo…
51
53
  - [Notifications](src/components/ui/Notifications/AGENT.md) — Toast stack for transient feedback — warning, danger, and loading states. Mount `NotificationsProvider` once near the…
52
54
  - [NumberControl](src/components/ui/NumberControl/AGENT.md) — NumberControl is a numeric stepper with minus and plus buttons for adjusting a value within a bounded range. Configur…
55
+ - [PageEmptyCanvas](src/components/ui/Page/PageEmptyCanvas/AGENT.md) — PageEmptyCanvas renders a centered empty state with a `title`, a `hint` (string or ReactNode), and an optional `child…
53
56
  - [Progress](src/components/ui/Progress/AGENT.md) — Progress is a horizontal bar that communicates how much of a process has completed. Pass a value between 0 and 100 to…
54
57
  - [PullQuote](src/components/ui/PullQuote/AGENT.md) — PullQuote presents an editorial quote with a 2px accent rule on the left, display-face body text, and a small Manrope…
55
58
  - [RadioGroup](src/components/ui/RadioGroup/AGENT.md) — RadioGroup is a single-choice control for selecting one option from a short list. Pair each RadioGroupItem with a Lab…
@@ -85,18 +88,9 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
85
88
 
86
89
  ## Foundations
87
90
 
88
- - [Chat Attachments Dropzone](src/docs/agent-guidance/chat-attachments-dropzone.md) — ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content…
89
- - [Chat Composer Prefill](src/docs/agent-guidance/chat-composer-prefill.md) — The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.open…
90
- - [Chat Sheet](src/docs/agent-guidance/chat-sheet.md) — ChatSheet places the chat panel behind a trigger in the page header and portals it into the shell chat slot, matching…
91
- - [Chat Slash Commands](src/docs/agent-guidance/chat-slash-commands.md) — The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after…
92
- - [Chat User Csv Attachment](src/docs/agent-guidance/chat-user-csv-attachment.md) — User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message …
93
91
  - [Colors](src/docs/agent-guidance/colors.md) — Colour is defined as a set of core ramps (--sb-cyan/purple/red/green/yellow/gray/slate) plus semantic tokens that map…
94
92
  - [Icons](src/docs/agent-guidance/icons.md) — Icons come from the lucide-react package and are drawn at a 1.5px stroke (--icon-stroke). Use the --icon-size-\* toke…
95
93
  - [Motion](src/docs/agent-guidance/motion.md) — Motion is quick and purposeful. Use --ease-standard for elements entering or changing state, --ease-exit for elements…
96
- - [Page](src/docs/agent-guidance/page.md) — PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole bod…
97
- - [Page Columns](src/docs/agent-guidance/page-columns.md) — PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or righ…
98
- - [Page Footer](src/docs/agent-guidance/page-footer.md) — PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on n…
99
- - [Page Tabs](src/docs/agent-guidance/page-tabs.md) — PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflo…
100
94
  - [Radii Shadows](src/docs/agent-guidance/radii-shadows.md) — Corners are small and square-biased: the scale runs from 0 to 12px, with semantic aliases for buttons, cards, and inp…
101
95
  - [Spacing](src/docs/agent-guidance/spacing.md) — The --p-\* tokens are the canonical spacing scale: each step is a multiple of 4px, from --p-1 (4px) up to --p-24 (96p…
102
96
  - [Standalone App Layout](src/docs/agent-guidance/standalone-app-layout.md) — The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion sta…
@@ -20,6 +20,8 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
20
20
  - [Chart](src/components/ui/Chart/AGENT.md) — ChartContainer wraps Recharts charts with the library’s theming, mapping a ChartConfig of labels and colours onto CSS…
21
21
  - [ChartAreaInteractive](src/components/ui/ChartAreaInteractive/AGENT.md) — ChartAreaInteractive is the full chart shell for time series data, combining an area chart with a time range selector…
22
22
  - [Chat](src/components/ui/Chat/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. Drive…
23
+ - [ChatChrome](src/components/ui/Chat/ChatChrome/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It su…
24
+ - [ChatSheet](src/components/ui/Chat/ChatSheet/AGENT.md) — ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits t…
23
25
  - [Checkbox](src/components/ui/Checkbox/AGENT.md) — Checkbox is a binary control for selecting or deselecting an option. Pair it with a Label linked via htmlFor so the t…
24
26
  - [Chip](src/components/ui/Chip/AGENT.md) — Chips are compact capsules for filters, status labels, version tags, and quantitative delta indicators. Use the defau…
25
27
  - [Confirm](src/components/ui/Confirm/AGENT.md) — Confirm is a focused confirmation dialog built on Dialog, with a title, body, and paired confirm and cancel actions. …
@@ -50,6 +52,7 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
50
52
  - [NavUserHeader](src/components/ui/NavUserHeader/AGENT.md) — NavUserHeader shows the signed-in user with their name, email, and avatar, and opens a dropdown menu containing custo…
51
53
  - [Notifications](src/components/ui/Notifications/AGENT.md) — Toast stack for transient feedback — warning, danger, and loading states. Mount `NotificationsProvider` once near the…
52
54
  - [NumberControl](src/components/ui/NumberControl/AGENT.md) — NumberControl is a numeric stepper with minus and plus buttons for adjusting a value within a bounded range. Configur…
55
+ - [PageEmptyCanvas](src/components/ui/Page/PageEmptyCanvas/AGENT.md) — PageEmptyCanvas renders a centered empty state with a `title`, a `hint` (string or ReactNode), and an optional `child…
53
56
  - [Progress](src/components/ui/Progress/AGENT.md) — Progress is a horizontal bar that communicates how much of a process has completed. Pass a value between 0 and 100 to…
54
57
  - [PullQuote](src/components/ui/PullQuote/AGENT.md) — PullQuote presents an editorial quote with a 2px accent rule on the left, display-face body text, and a small Manrope…
55
58
  - [RadioGroup](src/components/ui/RadioGroup/AGENT.md) — RadioGroup is a single-choice control for selecting one option from a short list. Pair each RadioGroupItem with a Lab…
@@ -85,18 +88,9 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
85
88
 
86
89
  ## Foundations
87
90
 
88
- - [Chat Attachments Dropzone](src/docs/agent-guidance/chat-attachments-dropzone.md) — ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content…
89
- - [Chat Composer Prefill](src/docs/agent-guidance/chat-composer-prefill.md) — The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.open…
90
- - [Chat Sheet](src/docs/agent-guidance/chat-sheet.md) — ChatSheet places the chat panel behind a trigger in the page header and portals it into the shell chat slot, matching…
91
- - [Chat Slash Commands](src/docs/agent-guidance/chat-slash-commands.md) — The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after…
92
- - [Chat User Csv Attachment](src/docs/agent-guidance/chat-user-csv-attachment.md) — User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message …
93
91
  - [Colors](src/docs/agent-guidance/colors.md) — Colour is defined as a set of core ramps (--sb-cyan/purple/red/green/yellow/gray/slate) plus semantic tokens that map…
94
92
  - [Icons](src/docs/agent-guidance/icons.md) — Icons come from the lucide-react package and are drawn at a 1.5px stroke (--icon-stroke). Use the --icon-size-\* toke…
95
93
  - [Motion](src/docs/agent-guidance/motion.md) — Motion is quick and purposeful. Use --ease-standard for elements entering or changing state, --ease-exit for elements…
96
- - [Page](src/docs/agent-guidance/page.md) — PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole bod…
97
- - [Page Columns](src/docs/agent-guidance/page-columns.md) — PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or righ…
98
- - [Page Footer](src/docs/agent-guidance/page-footer.md) — PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on n…
99
- - [Page Tabs](src/docs/agent-guidance/page-tabs.md) — PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflo…
100
94
  - [Radii Shadows](src/docs/agent-guidance/radii-shadows.md) — Corners are small and square-biased: the scale runs from 0 to 12px, with semantic aliases for buttons, cards, and inp…
101
95
  - [Spacing](src/docs/agent-guidance/spacing.md) — The --p-\* tokens are the canonical spacing scale: each step is a multiple of 4px, from --p-1 (4px) up to --p-24 (96p…
102
96
  - [Standalone App Layout](src/docs/agent-guidance/standalone-app-layout.md) — The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion sta…
@@ -0,0 +1 @@
1
+ export default function PageEmptyCanvasPage(): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.4.28",
3
+ "version": "1.4.29",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -13,3 +13,21 @@ ChatChrome is the complete chat shell: message list, prompt composer, empty stat
13
13
  ## Do
14
14
 
15
15
  - Provide a meaningful emptyState title and description so the first-run view explains what the assistant can do.
16
+
17
+ ## Composer prefill
18
+
19
+ The chat composer can be prefilled without auto-sending: pass `promptPrefill` to `ChatChrome`, call `ChatSheetActions.openNewChatWithPrefill` for the portal sheet, or use a `?prompt=` deep link. Focus lands at the end of the text so users can edit before submitting.
20
+
21
+ ### When to use
22
+
23
+ - To seed the composer from a call to action, such as a suggested question on a dataset page.
24
+ - To deep link into the product with a prepared prompt via `?prompt=`.
25
+ - When opening a new chat session that should start from a template prompt.
26
+
27
+ ### When not to use
28
+
29
+ - To send a message automatically on behalf of the user; prefill never submits.
30
+
31
+ ### Do
32
+
33
+ - Keep prefilled text short and editable; it is a starting point, not a command.
@@ -0,0 +1,55 @@
1
+ ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content attaches to the prompt until they send. Configure accepted types via `allowedAttachments` and enable PDFs with `allowPdfAttachments`.
2
+
3
+ ## When to use
4
+
5
+ - To embed an assistant conversation inline on a page or in a side panel.
6
+ - When you want preset prompt chips scoped to the current dataset or context.
7
+ - When users need to give the assistant file context, such as CSV data or documents.
8
+ - When attached files should be reviewed alongside the typed prompt before sending.
9
+
10
+ ## When not to use
11
+
12
+ - For a single one-off prompt without conversation history; a simple form may suffice.
13
+ - For notification or activity feeds; the shell is designed for two-way conversation.
14
+ - For persistent file uploads to storage; use a dedicated upload flow.
15
+ - When only plain text input is expected; omit the attachment props to disable the dropzone.
16
+
17
+ ## Do
18
+
19
+ - Provide a meaningful emptyState title and description so the first-run view explains what the assistant can do.
20
+ - Office and PDF parsers load on demand, so the first attachment of those types incurs a one-off load.
21
+
22
+ ## Slash commands
23
+
24
+ ChatChrome's composer supports a slash command palette built on TipTap mentions: typing `/` at the start of a line or after a space opens a picker, and choosing an item inserts an inline mention chip. Configure the palette by passing `slashCommandItems` to `ChatChrome` (or to `ChatSheet`, which forwards it to the underlying shell). Each item accepts optional `className` and `color` to style its chip.
25
+
26
+ ### When to use
27
+
28
+ - To expose a small set of named commands users can invoke from the composer.
29
+ - When commands should read as part of the message, such as `/generate-report`.
30
+
31
+ ### When not to use
32
+
33
+ - For long or hierarchical command sets; the palette works best with a handful of items.
34
+ - For primary actions that deserve a visible button outside the composer.
35
+
36
+ ### Do
37
+
38
+ - Keep command ids stable, since plain-text sends fall back to the item id.
39
+
40
+ ## User file attachments
41
+
42
+ User messages rendered by ChatChrome can carry downloadable text file attachments via the `userTextFileAttachments` field on a `Message`: the bubble shows the message text with a separate file row beneath it, matching the dashboard preset pattern. Users can download the attached file from that row.
43
+
44
+ ### When to use
45
+
46
+ - When a preset or automated flow sends data, such as a CSV extract, on the user's behalf.
47
+ - To keep generated file context visible and retrievable in the conversation history.
48
+
49
+ ### When not to use
50
+
51
+ - For user-initiated uploads; use the attachments dropzone instead.
52
+
53
+ ### Do
54
+
55
+ - Give each attachment a readable displayName so the file row makes sense out of context.
@@ -1,8 +1,8 @@
1
- ChatSheet places the chat panel behind a trigger in the page header and portals it into the shell chat slot, matching the app dataset page integration. Presets, slash commands, and the empty state are passed through to the underlying chat shell.
1
+ ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits the page layout (commonly the page header actions area, but not required). Presets, slash commands, and the empty state are passed through to the underlying chat shell.
2
2
 
3
3
  ## When to use
4
4
 
5
- - When chat is a secondary tool on the page and should open on demand from the header.
5
+ - When chat is a secondary tool on the page and should open on demand from a trigger you place in the layout.
6
6
  - To reuse one assistant entry point across pages with page-scoped presets.
7
7
 
8
8
  ## When not to use
@@ -20,6 +20,8 @@ Global tokens (host app `:root`, e.g. `standalone-global.css`): `--page-width`,
20
20
 
21
21
  ## PageTabs — rules and patterns
22
22
 
23
+ Use `PageTabs` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via `PageXScroll`) when triggers overflow the container; an outline variant exists for muted surfaces.
24
+
23
25
  **NEVER** place `PageTabs` inside `PageContentSection`. Tabs manage their own horizontal inset via `PageXScroll` / `tabsListProps.withPaddings`.
24
26
 
25
27
  ### Unified (tabs + panels inside PageContent)
@@ -118,7 +120,7 @@ In-section title block (`title`, `description`, `actions`). Use **inside** `Page
118
120
 
119
121
  ### PageEmptyCanvas
120
122
 
121
- Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Use when a route has no data yet.
123
+ Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Place directly in `PageContent` (typically a `PageContentSection`); see `PageEmptyCanvas/AGENT.md`.
122
124
 
123
125
  ### GridLayout
124
126
 
@@ -132,13 +134,17 @@ Use inside sections for grouped content; see package `AGENT.md` on those compone
132
134
 
133
135
  Not part of the per-route skeleton but part of host app wiring:
134
136
 
135
- - **AppShell** / **AppShellMainContent** — sidebar + main column + header slot + footer.
137
+ - **AppShell** / **AppShellMainContent** — sidebar + main column + `header` / `footer` slots. Standalone apps pre-wire the page footer in `AppLayout`; route pages do not compose footer primitives.
136
138
  - **PageScroll** — scroll root for the main column.
137
139
  - **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside `PageContent`).
138
140
 
139
141
  ## Anti-patterns
140
142
 
141
143
  - `PageTabs` inside `PageContentSection`.
144
+ - `PageTabs` nested inside another `PageTabs`.
145
+ - `PageTabs` for sequential flow steps — use a wizard or stepper pattern instead.
146
+ - `PageContentSection` nested inside another `PageContentSection`.
147
+ - `PageContentSection` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
142
148
  - Inline styles or Tailwind for page structure.
143
149
  - Second `PageHeader` nested in content.
144
150
  - `PageContent` without sections for multi-block pages (prefer multiple `PageContentSection`).
@@ -0,0 +1,17 @@
1
+ PageEmptyCanvas renders a centered empty state with a `title`, a `hint` (string or ReactNode), and an optional `children` slot for a CTA. It centers itself, grows to fill remaining height (`flex-grow: 1`, `min-height: 280px`), and caps its width so the empty state stays scannable.
2
+
3
+ ## When to use
4
+
5
+ - When a route or view has no data yet and the user should see a clear next step instead of a blank panel.
6
+ - As the primary empty state for a route: place it directly in `PageContent` (typically inside a `PageContentSection`) for empty list, first-run, or no-results views.
7
+
8
+ ## When not to use
9
+
10
+ - Inside a `Card`, nested widget, or other small container; PageEmptyCanvas is a page-level surface meant to sit directly in `PageContent`.
11
+ - For error states with recovery actions that need structured layout; build a dedicated section instead.
12
+
13
+ ## Do
14
+
15
+ - Place directly inside `PageContent` (in a `PageContentSection`), not inside `Card` or extra centered flex wrappers — it centers itself.
16
+ - Pass a concise `title` and a `hint` that tells the user what to do next.
17
+ - Put the primary action (e.g. a `Button`) in `children` so it sits below the hint.
@@ -7,8 +7,8 @@ import {
7
7
  MessageRole,
8
8
  TEXT_ATTACHMENT_ACCEPT_PARTS,
9
9
  } from '#uilib/components/ui/Chat';
10
+ import chatAttachmentsDropzoneGuidance from '#uilib/components/ui/Chat/ChatChrome/AGENT.md';
10
11
  import { PageContentSection } from '#uilib/components/ui/Page';
11
- import chatAttachmentsDropzoneGuidance from '#uilib/docs/agent-guidance/chat-attachments-dropzone.md';
12
12
  import { ScrollRef } from '@homecode/ui';
13
13
 
14
14
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
@@ -7,8 +7,8 @@ import {
7
7
  type Message,
8
8
  MessageRole,
9
9
  } from '#uilib/components/ui/Chat';
10
+ import chatComposerPrefillGuidance from '#uilib/components/ui/Chat/AGENT.md';
10
11
  import { PageContentSection } from '#uilib/components/ui/Page';
11
- import chatComposerPrefillGuidance from '#uilib/docs/agent-guidance/chat-composer-prefill.md';
12
12
  import { ScrollRef } from '@homecode/ui';
13
13
  import { MessageSquare } from 'lucide-react';
14
14
 
@@ -1,6 +1,6 @@
1
1
  import type { SlashCommandItem } from '#uilib/components/ui/Chat';
2
+ import chatSheetGuidance from '#uilib/components/ui/Chat/ChatSheet/AGENT.md';
2
3
  import { PageContentSection } from '#uilib/components/ui/Page';
3
- import chatSheetGuidance from '#uilib/docs/agent-guidance/chat-sheet.md';
4
4
  import { MessageSquare } from 'lucide-react';
5
5
 
6
6
  import {
@@ -28,7 +28,7 @@ export default function ChatSheetPage() {
28
28
  <AppPageHeader
29
29
  breadcrumbs={[{ label: 'Chat' }, { label: 'Chat sheet' }]}
30
30
  title="Chat sheet (portal)"
31
- subheader={`Same integration as the app dataset page: ChatSheet in header actions with dataset-scoped presets for "${DOCS_SAMPLE_DATASET_NAME}". Panel portaled into the shell chat slot.`}
31
+ subheader={`Same integration pattern as the app dataset page: portal ChatSheet with dataset-scoped presets for "${DOCS_SAMPLE_DATASET_NAME}" (this demo uses header actions for the trigger). Panel portaled into the shell chat slot.`}
32
32
  actions={
33
33
  <DocsHeaderActions
34
34
  scopeId={DOCS_CHAT_SHEET_SCOPE_ID}
@@ -7,8 +7,8 @@ import {
7
7
  MessageRole,
8
8
  type SlashCommandItem,
9
9
  } from '#uilib/components/ui/Chat';
10
+ import chatSlashCommandsGuidance from '#uilib/components/ui/Chat/ChatChrome/AGENT.md';
10
11
  import { PageContentSection } from '#uilib/components/ui/Page';
11
- import chatSlashCommandsGuidance from '#uilib/docs/agent-guidance/chat-slash-commands.md';
12
12
  import { ScrollRef } from '@homecode/ui';
13
13
 
14
14
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
@@ -6,8 +6,8 @@ import {
6
6
  type Message,
7
7
  MessageRole,
8
8
  } from '#uilib/components/ui/Chat';
9
+ import chatUserCsvAttachmentGuidance from '#uilib/components/ui/Chat/ChatChrome/AGENT.md';
9
10
  import { PageContentSection } from '#uilib/components/ui/Page';
10
- import chatUserCsvAttachmentGuidance from '#uilib/docs/agent-guidance/chat-user-csv-attachment.md';
11
11
  import { ScrollRef } from '@homecode/ui';
12
12
 
13
13
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties } from 'react';
2
2
 
3
3
  import { PageColumns, PageContentSection } from '#uilib/components/ui/Page';
4
- import pageColumnsGuidance from '#uilib/docs/agent-guidance/page-columns.md';
4
+ import pageColumnsGuidance from '#uilib/components/ui/Page/AGENT.md';
5
5
 
6
6
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
7
7
  import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
@@ -0,0 +1,86 @@
1
+ import { Button } from '#uilib/components/ui/Button';
2
+ import {
3
+ PageContent,
4
+ PageContentSection,
5
+ PageEmptyCanvas,
6
+ } from '#uilib/components/ui/Page';
7
+ import pageEmptyCanvasGuidance from '#uilib/components/ui/Page/PageEmptyCanvas/AGENT.md';
8
+
9
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
10
+ import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
11
+ import { DocsHeaderActions } from '../docsHeaderActions';
12
+
13
+ const demoFrameStyle = {
14
+ border: '2px dashed var(--border)',
15
+ borderRadius: 'var(--p-3)',
16
+ minHeight: 320,
17
+ display: 'flex',
18
+ } as const;
19
+
20
+ export default function PageEmptyCanvasPage() {
21
+ return (
22
+ <>
23
+ <AppPageHeader
24
+ breadcrumbs={[{ label: 'PageEmptyCanvas' }]}
25
+ title="PageEmptyCanvas"
26
+ subheader="Centered empty state with title, hint, and optional CTA. Use when a route has no data yet."
27
+ actions={<DocsHeaderActions />}
28
+ />
29
+ <DocsGuidance source={pageEmptyCanvasGuidance} />
30
+ <PageContentSection
31
+ style={{ display: 'flex', flexDirection: 'column', gap: '2rem' }}
32
+ >
33
+ <section>
34
+ <h3>Title and hint</h3>
35
+ <p
36
+ style={{
37
+ marginBottom: '1rem',
38
+ color: 'var(--muted-foreground)',
39
+ }}
40
+ >
41
+ Minimal empty state: a short <code>title</code> plus a{' '}
42
+ <code>hint</code> describing what to do next.
43
+ </p>
44
+ <div style={demoFrameStyle}>
45
+ <PageEmptyCanvas
46
+ title="No alerts yet"
47
+ hint="When a news alert fires, it will appear here."
48
+ />
49
+ </div>
50
+ </section>
51
+
52
+ <section>
53
+ <h3>Extended example</h3>
54
+ <p
55
+ style={{
56
+ marginBottom: '1rem',
57
+ color: 'var(--muted-foreground)',
58
+ }}
59
+ >
60
+ Real-world placement: render directly under <code>PageContent</code>
61
+ ; the canvas centers and grows itself.
62
+ </p>
63
+ <div style={{ ...demoFrameStyle, minHeight: 360 }}>
64
+ <PageContent variant="clean">
65
+ <PageEmptyCanvas
66
+ title="This workspace is empty"
67
+ hint="Connect a data source to populate your dashboard with drivers and forecasts."
68
+ >
69
+ <Button type="button" variant="default">
70
+ Connect data source
71
+ </Button>
72
+ <a
73
+ href="https://sybilion.com"
74
+ target="_blank"
75
+ rel="noopener noreferrer"
76
+ >
77
+ Learn how to connect a data source
78
+ </a>
79
+ </PageEmptyCanvas>
80
+ </PageContent>
81
+ </div>
82
+ </section>
83
+ </PageContentSection>
84
+ </>
85
+ );
86
+ }
@@ -8,7 +8,6 @@ import {
8
8
  } from '#uilib/components/ui/Page';
9
9
  import type { PageFooterLinkItem } from '#uilib/components/ui/Page/PageFooter/PageFooter';
10
10
  import { Switch } from '#uilib/components/ui/Switch';
11
- import pageFooterGuidance from '#uilib/docs/agent-guidance/page-footer.md';
12
11
  import { GlobeIcon, Hash, MailIcon, MessageCircle } from 'lucide-react';
13
12
 
14
13
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
@@ -16,6 +15,26 @@ import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
16
15
  import { DocsHeaderActions } from '../docsHeaderActions';
17
16
  import S from './PageFooterPage.styl';
18
17
 
18
+ /** Human-maintainer docs only — not in agent glossary (shell-wired via AppLayout). */
19
+ const PAGE_FOOTER_GUIDANCE = `PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on narrow viewports. Links accept an icon and label and open external destinations.
20
+
21
+ **Shell-only.** Standalone apps wire this in \`AppLayout\` via \`AppShellMainContent footer={…}\`; agents composing route pages do not import or render PageFooter.
22
+
23
+ ## When to use
24
+
25
+ - At the bottom of an application shell to show copyright, version, and support links.
26
+ - When you need a consistent set of external links, such as website, email, or community channels.
27
+
28
+ ## When not to use
29
+
30
+ - For page actions or navigation within the app; keep those in the header or sidebar.
31
+ - Inside individual sections or cards; the footer belongs to the page shell.
32
+
33
+ ## Do
34
+
35
+ - Keep the link list short so it remains scannable when it wraps on mobile.
36
+ `;
37
+
19
38
  const DEMO_LINKS: PageFooterLinkItem[] = [
20
39
  {
21
40
  id: 'site',
@@ -70,7 +89,7 @@ export default function PageFooterPage() {
70
89
  subheader="Copyright + optional link row with gap and wrapping."
71
90
  actions={<DocsHeaderActions />}
72
91
  />
73
- <DocsGuidance source={pageFooterGuidance} />
92
+ <DocsGuidance source={PAGE_FOOTER_GUIDANCE} />
74
93
  <PageContent>
75
94
  <PageContentSection title="With links prop">
76
95
  <div
@@ -1,5 +1,5 @@
1
1
  import { PageContent, PageContentSection } from '#uilib/components/ui/Page';
2
- import pageGuidance from '#uilib/docs/agent-guidance/page.md';
2
+ import pageGuidance from '#uilib/components/ui/Page/AGENT.md';
3
3
 
4
4
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
5
5
  import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
@@ -1,5 +1,5 @@
1
1
  import { PageContentSection, PageTabs } from '#uilib/components/ui/Page';
2
- import pageTabsGuidance from '#uilib/docs/agent-guidance/page-tabs.md';
2
+ import pageTabsGuidance from '#uilib/components/ui/Page/AGENT.md';
3
3
 
4
4
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
5
5
  import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
@@ -428,6 +428,12 @@ export const DOC_REGISTRY: DocEntry[] = [
428
428
  section: 'Layout',
429
429
  load: () => import('./pages/PageColumnsPage'),
430
430
  },
431
+ {
432
+ slug: 'page-empty-canvas',
433
+ title: 'PageEmptyCanvas',
434
+ section: 'Layout',
435
+ load: () => import('./pages/PageEmptyCanvasPage'),
436
+ },
431
437
  {
432
438
  slug: 'page-footer',
433
439
  title: 'PageFooter',
@@ -1,15 +0,0 @@
1
- ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content attaches to the prompt until they send. Configure accepted types via allowedAttachments and enable PDFs with allowPdfAttachments.
2
-
3
- ## When to use
4
-
5
- - When users need to give the assistant file context, such as CSV data or documents.
6
- - When attached files should be reviewed alongside the typed prompt before sending.
7
-
8
- ## When not to use
9
-
10
- - For persistent file uploads to storage; use a dedicated upload flow.
11
- - When only plain text input is expected; omit the attachment props to disable the dropzone.
12
-
13
- ## Do
14
-
15
- - Office and PDF parsers load on demand, so the first attachment of those types incurs a one-off load.
@@ -1,15 +0,0 @@
1
- The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.openNewChatWithPrefill for the portal sheet, or use a ?prompt= deep link. Focus lands at the end of the text so users can edit before submitting.
2
-
3
- ## When to use
4
-
5
- - To seed the composer from a call to action, such as a suggested question on a dataset page.
6
- - To deep link into the product with a prepared prompt via ?prompt=.
7
- - When opening a new chat session that should start from a template prompt.
8
-
9
- ## When not to use
10
-
11
- - To send a message automatically on behalf of the user; prefill never submits.
12
-
13
- ## Do
14
-
15
- - Keep prefilled text short and editable; it is a starting point, not a command.
@@ -1,15 +0,0 @@
1
- The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after a space opens a picker, and choosing an item inserts an inline mention chip. Supply items through slashCommandItems; optional className and color style each chip.
2
-
3
- ## When to use
4
-
5
- - To expose a small set of named commands users can invoke from the composer.
6
- - When commands should read as part of the message, such as /generate-report.
7
-
8
- ## When not to use
9
-
10
- - For long or hierarchical command sets; the palette works best with a handful of items.
11
- - For primary actions that deserve a visible button outside the composer.
12
-
13
- ## Do
14
-
15
- - Keep command ids stable, since plain-text sends fall back to the item id.
@@ -1,14 +0,0 @@
1
- User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message text with a separate file row beneath it, matching the dashboard preset pattern. Users can download the attached file from that row.
2
-
3
- ## When to use
4
-
5
- - When a preset or automated flow sends data, such as a CSV extract, on the user’s behalf.
6
- - To keep generated file context visible and retrievable in the conversation history.
7
-
8
- ## When not to use
9
-
10
- - For user-initiated uploads; use the attachments dropzone instead.
11
-
12
- ## Do
13
-
14
- - Give each attachment a readable displayName so the file row makes sense out of context.
@@ -1,19 +0,0 @@
1
- PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or right for main-plus-aside layouts on wide viewports.
2
-
3
- ## When to use
4
-
5
- - To place two or more content blocks side by side within a PageContentSection.
6
- - For main-plus-aside layouts where one column should grow and the other stays at a fixed width.
7
- - For 3- or 4-column equal dashboards (metrics rows, panel groups) without fill.
8
-
9
- ## When not to use
10
-
11
- - For card or tile grids; use GridLayout instead.
12
- - For arbitrary flex layouts inside a component; PageColumns is a page-structure primitive.
13
-
14
- ## Do
15
-
16
- - For 3 or 4 equal columns, omit fill (default); do not use left/right.
17
- - Use fill=
18
- - or fill=
19
- - to keep a sidebar column at the default fixed width on wide screens (2 columns only).
@@ -1,15 +0,0 @@
1
- PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on narrow viewports. Links accept an icon and label and open external destinations.
2
-
3
- ## When to use
4
-
5
- - At the bottom of an application shell to show copyright, version, and support links.
6
- - When you need a consistent set of external links, such as website, email, or community channels.
7
-
8
- ## When not to use
9
-
10
- - For page actions or navigation within the app; keep those in the header or sidebar.
11
- - Inside individual sections or cards; the footer belongs to the page shell.
12
-
13
- ## Do
14
-
15
- - Keep the link list short so it remains scannable when it wraps on mobile.
@@ -1,19 +0,0 @@
1
- PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflow the container, and an outline variant is available for muted surfaces.
2
-
3
- ## When to use
4
-
5
- - To divide a page into a few parallel views that share the same context.
6
- - When the tab row may overflow on narrow viewports and needs built-in horizontal scrolling.
7
-
8
- ## When not to use
9
-
10
- - Inside a PageContentSection; PageTabs is a page-structure primitive and must sit alongside sections.
11
- - For sequential steps in a flow; use a wizard or stepper pattern instead.
12
-
13
- ## Do
14
-
15
- - Wrap each tab’s content in its own PageContentSection so padding stays consistent.
16
-
17
- ## Don't
18
-
19
- - Don’t nest PageTabs inside another PageTabs or a PageContentSection.
@@ -1,15 +0,0 @@
1
- PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole body and applies the page width cap, while each PageContentSection forms a vertical section that owns the horizontal page padding.
2
-
3
- ## When to use
4
-
5
- - On every authenticated page, directly below the page header, to structure the body.
6
- - To split a page into vertical sections with consistent spacing and padding.
7
-
8
- ## When not to use
9
-
10
- - Inside cards or other components; sections are page-level structure, not generic containers.
11
- - Nested within another PageContentSection.
12
-
13
- ## Do
14
-
15
- - Place all body content inside at least one PageContentSection so page padding stays consistent.