@sybilion/uilib 1.4.27 → 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 (43) hide show
  1. package/assets/globals.css +4 -4
  2. package/dist/agent-glossary/content-prompt.generated.ts +8 -2
  3. package/dist/agent-glossary/content.generated.ts +8 -2
  4. package/dist/agent-glossary/content.md +8 -2
  5. package/dist/agent-glossary/content.prompt.md +8 -2
  6. package/dist/agent-glossary/workspace.generated.ts +3 -9
  7. package/dist/agent-glossary/workspace.index.md +3 -9
  8. package/dist/agent-glossary/workspace.md +3 -9
  9. package/dist/esm/src/components/ui/Chat/ChatChrome/ChatChrome.js +1 -1
  10. package/dist/esm/src/components/ui/Chat/ChatPrompt/useChatPromptEditor.js +7 -4
  11. package/dist/esm/src/components/ui/Page/PageFooter/PageFooter.styl.js +1 -1
  12. package/dist/esm/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.js +16 -5
  13. package/dist/esm/types/src/docs/pages/PageEmptyCanvasPage.d.ts +1 -0
  14. package/dist/esm/types/tests/sidebarMenuButton.test.d.ts +1 -0
  15. package/package.json +1 -1
  16. package/src/components/ui/Chat/AGENT.md +18 -0
  17. package/src/components/ui/Chat/ChatChrome/AGENT.md +55 -0
  18. package/src/components/ui/Chat/ChatPrompt/useChatPromptEditor.ts +7 -4
  19. package/src/{docs/agent-guidance/chat-sheet.md → components/ui/Chat/ChatSheet/AGENT.md} +2 -2
  20. package/src/components/ui/Page/AGENT.md +8 -2
  21. package/src/components/ui/Page/PageEmptyCanvas/AGENT.md +17 -0
  22. package/src/components/ui/Page/PageFooter/PageFooter.styl +8 -2
  23. package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.tsx +37 -23
  24. package/src/docs/pages/ChatAttachmentsDropzonePage.tsx +41 -39
  25. package/src/docs/pages/ChatComposerPrefillPage.tsx +31 -29
  26. package/src/docs/pages/ChatPage.styl +1 -1
  27. package/src/docs/pages/ChatSheetPage.tsx +2 -2
  28. package/src/docs/pages/ChatSlashCommandsPage.tsx +32 -30
  29. package/src/docs/pages/ChatUserCsvAttachmentPage.tsx +30 -28
  30. package/src/docs/pages/PageColumnsPage.tsx +1 -1
  31. package/src/docs/pages/PageEmptyCanvasPage.tsx +86 -0
  32. package/src/docs/pages/PageFooterPage.tsx +21 -2
  33. package/src/docs/pages/PagePage.tsx +1 -1
  34. package/src/docs/pages/PageTabsPage.tsx +1 -1
  35. package/src/docs/registry.ts +6 -0
  36. package/src/docs/agent-guidance/chat-attachments-dropzone.md +0 -15
  37. package/src/docs/agent-guidance/chat-composer-prefill.md +0 -15
  38. package/src/docs/agent-guidance/chat-slash-commands.md +0 -15
  39. package/src/docs/agent-guidance/chat-user-csv-attachment.md +0 -14
  40. package/src/docs/agent-guidance/page-columns.md +0 -19
  41. package/src/docs/agent-guidance/page-footer.md +0 -15
  42. package/src/docs/agent-guidance/page-tabs.md +0 -19
  43. package/src/docs/agent-guidance/page.md +0 -15
@@ -133,8 +133,8 @@
133
133
  :root {
134
134
  --sb-cyan-50: oklch(0.964 0.006 204);
135
135
  --sb-cyan-100: oklch(0.933 0.011 204);
136
- --sb-cyan-200: oklch(0.76 0.089 204);
137
- --sb-cyan-300: oklch(0.7 0.098 204);
136
+ --sb-cyan-200: oklch(0.882 0.127 204);
137
+ --sb-cyan-300: oklch(0.754 0.181 204);
138
138
  --sb-cyan-400: oklch(0.625 0.234 204);
139
139
  --sb-cyan-500: oklch(0.518 0.258 204);
140
140
  --sb-cyan-600: oklch(0.421 0.231 204);
@@ -298,7 +298,7 @@
298
298
 
299
299
  /* app variables */
300
300
  --brand-color: var(--sb-purple-400);
301
- --brand-color-bg: var(--brand-color-300);
301
+ --brand-color-bg: var(--brand-color-400);
302
302
  --brand-color-50: var(--sb-purple-50);
303
303
  --brand-color-100: var(--sb-purple-100);
304
304
  --brand-color-200: var(--sb-purple-200);
@@ -369,7 +369,7 @@
369
369
  }
370
370
 
371
371
  .dark {
372
- --brand-color-bg: var(--brand-color-800);
372
+ --brand-color-bg: var(--brand-color-500);
373
373
  --page-color: oklch(0.22 0 0);
374
374
  --page-color-alpha-800: oklch(0.2242 0 0 / 0.8);
375
375
  --background: oklch(0.14 0 0);
@@ -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…
@@ -30,8 +30,8 @@ import '@radix-ui/react-slot';
30
30
  import '../../Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
31
31
  import '../../Sidebar/SidebarGroupLabel/SidebarGroupLabel.styl.js';
32
32
  import '../../Sidebar/SidebarMenu/SidebarMenu.styl.js';
33
- import '../../SmartTextTruncate/SmartTextTruncate.js';
34
33
  import '../../Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
34
+ import '../../SmartTextTruncate/SmartTextTruncate.js';
35
35
  import '../../Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
36
36
  import '../../Sidebar/SidebarMenuSub/SidebarMenuSub.styl.js';
37
37
  import '../../Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js';
@@ -137,14 +137,17 @@ function useChatPromptEditor({ disabled, placeholder, slashCommandItems, onSlash
137
137
  if (!editor || prefillMessage == null || prefillMessage === '')
138
138
  return;
139
139
  editor.commands.setContent(chatPromptParagraphDoc(prefillMessage));
140
- const t = editor.getText();
141
- setPlainDraft(t);
140
+ // Derive plainDraft from the prefill text directly: relying on
141
+ // editor.getText() right after setContent can race with onTransaction
142
+ // (which also reads getText), leaving plainDraft empty and the submit
143
+ // button disabled.
144
+ setPlainDraft(prefillMessage);
142
145
  queueMicrotask(() => {
143
146
  const dom = chatPromptSafeEditorDom(editor);
144
147
  if (dom)
145
- syncChatPromptComposerHeight(dom, t);
148
+ syncChatPromptComposerHeight(dom, prefillMessage);
146
149
  if (!disabled && !editor.isDestroyed) {
147
- editor.chain().focus('end').run();
150
+ editor.chain().focus().selectAll().run();
148
151
  }
149
152
  });
150
153
  }, [editor, prefillMessage, disabled]);
@@ -1,6 +1,6 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.PageFooter_root__TAfX6{display:flex;flex-direction:column;gap:6px;padding:var(--p-5) var(--p-10)}@media (max-width:768px){.PageFooter_root__TAfX6{padding:var(--p-10) var(--p-6)}}.PageFooter_line__OyGA-{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.PageFooter_line__OyGA-:last-child{min-height:55px}.PageFooter_meta__Gvenf{align-items:center;display:flex;flex-wrap:wrap;gap:var(--p-4)}.PageFooter_copyright__4LFUP{font-size:14px}.PageFooter_links__q5BXo{align-items:center;display:flex;flex-wrap:wrap;gap:var(--p-4)}.PageFooter_link__mel3N{align-items:center;color:var(--foreground);display:inline-flex;font-size:14px;gap:var(--p-2);text-decoration:none}.PageFooter_link__mel3N:hover{text-decoration:underline}.PageFooter_link__mel3N svg{color:var(--brand-color-400);flex-shrink:0;height:20px;width:20px}.PageFooter_logo__B2SRg{align-items:center;display:flex;font-size:var(--text-2xl);position:relative}.PageFooter_logo__B2SRg a{align-items:center;color:var(--foreground);display:flex;gap:var(--p-2);text-decoration:none}.PageFooter_logo__B2SRg svg{height:24px;width:24px}.PageFooter_version__8pZXn{align-items:center;bottom:5px;color:var(--muted-foreground);display:flex;font-size:14px;left:calc(100% + 10px);opacity:.5;position:absolute;transition:opacity .3s ease-out;white-space:nowrap}.PageFooter_version__8pZXn:before{content:\"v\"}.PageFooter_versionLink__dILP5{color:inherit;text-decoration:none}.PageFooter_logo__B2SRg:hover .PageFooter_version__8pZXn{opacity:1}";
3
+ var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.PageFooter_root__TAfX6{display:flex;flex-direction:column;gap:6px;padding:var(--p-5) var(--p-10)}@media (max-width:768px){.PageFooter_root__TAfX6{padding:var(--p-10) var(--p-6)}}.PageFooter_line__OyGA-{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.PageFooter_line__OyGA-:last-child{min-height:55px}.PageFooter_meta__Gvenf{align-items:center;display:flex;flex-wrap:wrap;gap:var(--p-4)}.PageFooter_copyright__4LFUP{font-size:14px}.PageFooter_links__q5BXo{align-items:center;display:flex;flex-wrap:wrap;gap:var(--p-4)}.PageFooter_link__mel3N{align-items:center;color:var(--foreground);display:inline-flex;font-size:14px;gap:var(--p-2);text-decoration:none}.PageFooter_link__mel3N:hover{text-decoration:underline}.PageFooter_link__mel3N svg{color:var(--brand-color-400);flex-shrink:0;height:20px;width:20px}.PageFooter_logo__B2SRg{align-items:center;display:flex;font-size:var(--text-2xl);position:relative}.PageFooter_logo__B2SRg a{align-items:center;color:var(--foreground);display:flex;gap:var(--p-2);text-decoration:none}.PageFooter_logo__B2SRg svg{height:24px;width:24px}.PageFooter_version__8pZXn{align-items:center;bottom:10px;color:var(--muted-foreground);display:flex;font-size:14px;left:calc(100% + 10px);opacity:.5;position:absolute;white-space:nowrap}.PageFooter_version__8pZXn:before{content:\"v\"}@media (min-width:1024px){.PageFooter_version__8pZXn{opacity:0;transition:opacity .1s ease-out}.PageFooter_logo__B2SRg:hover .PageFooter_version__8pZXn{opacity:1}}.PageFooter_versionLink__dILP5{color:inherit;text-decoration:none}.PageFooter_logo__B2SRg:hover .PageFooter_version__8pZXn{opacity:1}";
4
4
  var S = {"root":"PageFooter_root__TAfX6","line":"PageFooter_line__OyGA-","meta":"PageFooter_meta__Gvenf","copyright":"PageFooter_copyright__4LFUP","links":"PageFooter_links__q5BXo","link":"PageFooter_link__mel3N","logo":"PageFooter_logo__B2SRg","version":"PageFooter_version__8pZXn","versionLink":"PageFooter_versionLink__dILP5"};
5
5
  styleInject(css_248z);
6
6
 
@@ -1,16 +1,27 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import cn from 'classnames';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import { Button } from '../../Button/Button.js';
4
- import { SmartTextTruncate } from '../../SmartTextTruncate/SmartTextTruncate.js';
5
3
  import { ChevronRight } from 'lucide-react';
6
4
  import S from './SidebarMenuButton.styl.js';
5
+ import { Slottable } from '@radix-ui/react-slot';
6
+ import { SmartTextTruncate } from '../../SmartTextTruncate/SmartTextTruncate.js';
7
+ import cn from 'classnames';
7
8
 
8
9
  function SidebarMenuButton({ asChild = false, isActive = false, hasSubItems = false, isExpanded = false, variant = 'ghost', size = 'sm', className, icon, children, addon, ...props }) {
9
10
  const effectiveAsChild = asChild && !hasSubItems;
10
11
  const label = (jsx(SmartTextTruncate, { className: S.sidebarMenuButtonLabel, children: children }));
11
12
  const chevron = hasSubItems ? (jsx("span", { className: cn(S.sidebarMenuButtonChevron, isExpanded && S.expanded), "aria-hidden": "true", children: jsx(ChevronRight, { size: 16 }) })) : null;
12
- const userContent = (jsxs(Fragment, { children: [label, addon] }));
13
- return (jsxs(Button, { asChild: effectiveAsChild, variant: variant, size: size, "data-slot": "sidebar-menu-button", "data-sidebar": "menu-button", "data-active": isActive, "aria-expanded": hasSubItems ? isExpanded : undefined, className: cn(variant === 'default' ? S.sidebarMenuButtonCta : S.sidebarMenuButton, S[`size-${size}`], className), ...props, children: [icon, effectiveAsChild ? (userContent) : (jsxs(Fragment, { children: [userContent, chevron] }))] }));
13
+ const buttonClassName = cn(variant === 'default' ? S.sidebarMenuButtonCta : S.sidebarMenuButton, S[`size-${size}`], className);
14
+ if (effectiveAsChild) {
15
+ // The consumer supplies the root element (e.g. <NavLink/>). Radix Slot
16
+ // requires exactly one element child, so the consumer's element is wrapped
17
+ // in <Slottable/> and icon/addon stay as siblings — Slot clones the
18
+ // consumer's element with Button's props and injects the siblings as its
19
+ // children. SmartTextTruncate is intentionally omitted: wrapping the
20
+ // consumer's element would nest the rendered <a> inside a truncate
21
+ // container and break the slot contract.
22
+ return (jsxs(Button, { asChild: true, variant: variant, size: size, "data-slot": "sidebar-menu-button", "data-sidebar": "menu-button", "data-active": isActive, className: buttonClassName, ...props, children: [icon, jsx(Slottable, { children: children }), addon] }));
23
+ }
24
+ return (jsxs(Button, { variant: variant, size: size, "data-slot": "sidebar-menu-button", "data-sidebar": "menu-button", "data-active": isActive, "aria-expanded": hasSubItems ? isExpanded : undefined, className: buttonClassName, ...props, children: [icon, label, addon, chevron] }));
14
25
  }
15
26
 
16
27
  export { SidebarMenuButton };
@@ -0,0 +1 @@
1
+ export default function PageEmptyCanvasPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.4.27",
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.
@@ -203,13 +203,16 @@ export function useChatPromptEditor({
203
203
  useEffect(() => {
204
204
  if (!editor || prefillMessage == null || prefillMessage === '') return;
205
205
  editor.commands.setContent(chatPromptParagraphDoc(prefillMessage));
206
- const t = editor.getText();
207
- setPlainDraft(t);
206
+ // Derive plainDraft from the prefill text directly: relying on
207
+ // editor.getText() right after setContent can race with onTransaction
208
+ // (which also reads getText), leaving plainDraft empty and the submit
209
+ // button disabled.
210
+ setPlainDraft(prefillMessage);
208
211
  queueMicrotask(() => {
209
212
  const dom = chatPromptSafeEditorDom(editor);
210
- if (dom) syncChatPromptComposerHeight(dom, t);
213
+ if (dom) syncChatPromptComposerHeight(dom, prefillMessage);
211
214
  if (!disabled && !editor.isDestroyed) {
212
- editor.chain().focus('end').run();
215
+ editor.chain().focus().selectAll().run();
213
216
  }
214
217
  });
215
218
  }, [editor, prefillMessage, disabled]);
@@ -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.
@@ -69,7 +69,7 @@
69
69
 
70
70
  .version
71
71
  position absolute
72
- bottom 5px
72
+ bottom 10px
73
73
  left calc(100% + 10px)
74
74
 
75
75
  display flex
@@ -78,12 +78,18 @@
78
78
  font-size 14px
79
79
  color var(--muted-foreground)
80
80
  opacity 0.5
81
- transition opacity 0.3s ease-out
82
81
  white-space nowrap
83
82
 
84
83
  &::before
85
84
  content 'v'
86
85
 
86
+ @media (min-width: unit(DESKTOP, 'px'))
87
+ opacity 0
88
+ transition opacity 0.1s ease-out
89
+
90
+ .logo:hover &
91
+ opacity 1
92
+
87
93
  .versionLink
88
94
  color inherit
89
95
  text-decoration none