@exxatdesignux/ui 0.5.10 → 0.5.12
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.
- package/CHANGELOG.md +37 -0
- package/bin/cli.mjs +70 -1
- package/bin/init.mjs +18 -4
- package/bin/sync-extras.mjs +28 -4
- package/consumer-extras/README.md +41 -5
- package/consumer-extras/cursor-rules/exxat-accessibility.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-board-cards.mdc +5 -3
- package/consumer-extras/cursor-rules/exxat-breadcrumbs-no-back.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-card-vs-list-rows.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-centralized-list-dataset.mdc +4 -2
- package/consumer-extras/cursor-rules/exxat-collaboration-access.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-command-menu.mdc +3 -2
- package/consumer-extras/cursor-rules/exxat-data-tables.mdc +5 -3
- package/consumer-extras/cursor-rules/exxat-dedicated-search-surfaces.mdc +7 -0
- package/consumer-extras/cursor-rules/exxat-drawer-vs-dialog.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-ds-agents.mdc +13 -2
- package/consumer-extras/cursor-rules/exxat-fontawesome-icons.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-hub-supported-views.mdc +6 -4
- package/consumer-extras/cursor-rules/exxat-kbd-shortcuts.mdc +6 -5
- package/consumer-extras/cursor-rules/exxat-kpi-flat-band.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-kpi-max-four.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-kpi-trends.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-library-hub-header.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-list-page-connected-views.mdc +6 -2
- package/consumer-extras/cursor-rules/exxat-list-page-view-shells.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-mono-ids.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-nav-single-active.mdc +4 -3
- package/consumer-extras/cursor-rules/exxat-no-image-pixel-copy.mdc +25 -14
- package/consumer-extras/cursor-rules/exxat-no-slds-leakage.mdc +8 -2
- package/consumer-extras/cursor-rules/exxat-no-toast.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-no-vaul.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-page-header-actions.mdc +6 -4
- package/consumer-extras/cursor-rules/exxat-page-vs-drawer.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-person-identity-display.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-primary-nav-secondary-panel.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-reuse-before-custom.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-sidebar-shell.mdc +13 -7
- package/consumer-extras/cursor-rules/exxat-table-properties-drawer.mdc +5 -3
- package/consumer-extras/cursor-rules/exxat-table-row-preview.mdc +1 -0
- package/consumer-extras/cursor-rules/exxat-tabs-chrome.mdc +6 -4
- package/consumer-extras/cursor-rules/exxat-token-discipline.mdc +6 -0
- package/consumer-extras/cursor-rules/exxat-ux-discovery-protocol.mdc +92 -12
- package/consumer-extras/cursor-rules/exxat-ux-principles.mdc +1 -0
- package/consumer-extras/cursor-skills/exxat-ds-skill/SKILL.md +1 -1
- package/consumer-extras/cursor-skills/exxat-kpi-trends/SKILL.md +5 -3
- package/consumer-extras/cursor-skills/exxat-senior-ux/SKILL.md +70 -17
- package/consumer-extras/patterns/command-menu-pattern.md +2 -2
- package/consumer-extras/patterns/consumer-upgrade-checklist.md +1 -1
- package/consumer-extras/patterns/jobs/README.md +1 -1
- package/consumer-extras/patterns/perf-memory-pattern.md +115 -150
- package/consumer-extras/scripts/dev-guard.mjs +156 -0
- package/consumer-extras/templates/README.md +23 -0
- package/consumer-extras/templates/handoff.md +190 -0
- package/dist/hooks/use-app-theme.d.ts +1 -1
- package/package.json +2 -2
- package/{template → template-vite}/.claude/skills/exxat-ds-skill/SKILL.md +184 -23
- package/template-vite/.cursor/rules/exxat-accessibility.mdc +40 -0
- package/template-vite/.cursor/rules/exxat-board-cards.mdc +28 -0
- package/template-vite/.cursor/rules/exxat-breadcrumbs-no-back.mdc +22 -0
- package/template-vite/.cursor/rules/exxat-card-vs-list-rows.mdc +22 -0
- package/template-vite/.cursor/rules/exxat-centralized-list-dataset.mdc +46 -0
- package/template-vite/.cursor/rules/exxat-collaboration-access.mdc +33 -0
- package/{template → template-vite}/.cursor/rules/exxat-command-menu.mdc +5 -5
- package/template-vite/.cursor/rules/exxat-data-tables.mdc +47 -0
- package/template-vite/.cursor/rules/exxat-dedicated-search-surfaces.mdc +32 -0
- package/template-vite/.cursor/rules/exxat-drawer-vs-dialog.mdc +23 -0
- package/template-vite/.cursor/rules/exxat-ds-agents.mdc +87 -0
- package/template-vite/.cursor/rules/exxat-fontawesome-icons.mdc +32 -0
- package/template-vite/.cursor/rules/exxat-hub-supported-views.mdc +56 -0
- package/{template → template-vite}/.cursor/rules/exxat-kbd-shortcuts.mdc +1 -0
- package/template-vite/.cursor/rules/exxat-kpi-flat-band.mdc +29 -0
- package/template-vite/.cursor/rules/exxat-kpi-max-four.mdc +22 -0
- package/template-vite/.cursor/rules/exxat-kpi-trends.mdc +32 -0
- package/template-vite/.cursor/rules/exxat-library-hub-header.mdc +29 -0
- package/template-vite/.cursor/rules/exxat-list-page-connected-views.mdc +28 -0
- package/template-vite/.cursor/rules/exxat-list-page-view-shells.mdc +32 -0
- package/{template → template-vite}/.cursor/rules/exxat-mono-ids.mdc +1 -0
- package/template-vite/.cursor/rules/exxat-nav-single-active.mdc +32 -0
- package/template-vite/.cursor/rules/exxat-no-image-pixel-copy.mdc +46 -0
- package/template-vite/.cursor/rules/exxat-no-slds-leakage.mdc +84 -0
- package/{template → template-vite}/.cursor/rules/exxat-no-toast.mdc +2 -2
- package/template-vite/.cursor/rules/exxat-no-vaul.mdc +26 -0
- package/template-vite/.cursor/rules/exxat-page-header-actions.mdc +33 -0
- package/{template → template-vite}/.cursor/rules/exxat-page-vs-drawer.mdc +5 -3
- package/template-vite/.cursor/rules/exxat-person-identity-display.mdc +48 -0
- package/template-vite/.cursor/rules/exxat-primary-nav-secondary-panel.mdc +53 -0
- package/template-vite/.cursor/rules/exxat-reuse-before-custom.mdc +37 -0
- package/template-vite/.cursor/rules/exxat-sidebar-shell.mdc +41 -0
- package/template-vite/.cursor/rules/exxat-table-properties-drawer.mdc +79 -0
- package/template-vite/.cursor/rules/exxat-table-row-preview.mdc +25 -0
- package/template-vite/.cursor/rules/exxat-tabs-chrome.mdc +33 -0
- package/template-vite/.cursor/rules/exxat-token-discipline.mdc +109 -0
- package/template-vite/.cursor/rules/exxat-ux-discovery-protocol.mdc +202 -0
- package/template-vite/.cursor/rules/exxat-ux-principles.mdc +187 -0
- package/template-vite/.cursor/skills/exxat-accessibility/SKILL.md +282 -0
- package/template-vite/.cursor/skills/exxat-board-cards/SKILL.md +68 -0
- package/template-vite/.cursor/skills/exxat-card-vs-list-rows/SKILL.md +20 -0
- package/template-vite/.cursor/skills/exxat-centralized-list-dataset/SKILL.md +99 -0
- package/template-vite/.cursor/skills/exxat-collaboration-access/SKILL.md +35 -0
- package/template-vite/.cursor/skills/exxat-dedicated-search-surfaces/SKILL.md +45 -0
- package/template-vite/.cursor/skills/exxat-drawer-vs-dialog/SKILL.md +20 -0
- package/template-vite/.cursor/skills/exxat-ds-skill/SKILL.md +893 -0
- package/template-vite/.cursor/skills/exxat-ds-skill/references/accessibility.md +142 -0
- package/template-vite/.cursor/skills/exxat-ds-skill/references/coach-marks.md +169 -0
- package/template-vite/.cursor/skills/exxat-ds-skill/references/data-table-pattern.md +392 -0
- package/template-vite/.cursor/skills/exxat-fontawesome-icons/SKILL.md +31 -0
- package/template-vite/.cursor/skills/exxat-kpi-flat-band/SKILL.md +38 -0
- package/template-vite/.cursor/skills/exxat-kpi-max-four/SKILL.md +19 -0
- package/template-vite/.cursor/skills/exxat-kpi-trends/SKILL.md +29 -0
- package/template-vite/.cursor/skills/exxat-list-page-view-shells/SKILL.md +36 -0
- package/template-vite/.cursor/skills/exxat-mono-ids/SKILL.md +56 -0
- package/template-vite/.cursor/skills/exxat-primary-nav-secondary-panel/SKILL.md +49 -0
- package/template-vite/.cursor/skills/exxat-senior-ux/SKILL.md +198 -0
- package/template-vite/.cursor/skills/exxat-token-economy/SKILL.md +287 -0
- package/template-vite/.cursor/skills/exxat-ux-audit/SKILL.md +303 -0
- package/{template → template-vite}/components/ask-leo-sidebar.tsx +10 -8
- package/{template → template-vite}/components/command-menu.tsx +1 -1
- package/{template → template-vite}/components/data-views/library-folder-tree-branch.tsx +1 -1
- package/{template → template-vite}/components/dedicated-search-recents.tsx +1 -1
- package/{template → template-vite}/components/dedicated-search-url-composer.tsx +1 -1
- package/{template → template-vite}/components/library-client.tsx +1 -1
- package/{template → template-vite}/components/library-hub-client.tsx +2 -2
- package/{template → template-vite}/components/library-secondary-nav.tsx +2 -2
- package/{template → template-vite}/components/library-table.tsx +35 -27
- package/{template → template-vite}/components/new-library-item-form.tsx +1 -1
- package/{template → template-vite}/components/page-breadcrumb-trail.tsx +1 -1
- package/{template → template-vite}/components/settings-client.tsx +1 -1
- package/{template → template-vite}/components/sidebar/app-sidebar.tsx +2 -2
- package/{template → template-vite}/components/sidebar/nav-main.tsx +1 -1
- package/{template → template-vite}/components/sidebar/nav-user.tsx +1 -1
- package/{template → template-vite}/components/sidebar/secondary-nav.tsx +1 -1
- package/{template → template-vite}/components/system-banner-slot.tsx +1 -1
- package/{template → template-vite}/components/templates/discovery-hub-template.tsx +2 -2
- package/{template → template-vite}/components/templates/new-focus-template.tsx +1 -1
- package/{template → template-vite}/components/tokens-secondary-nav.tsx +2 -2
- package/{template → template-vite}/components/tokens-themes-client.tsx +1 -1
- package/{template → template-vite}/hooks/use-secondary-panel-hub-nav.ts +1 -1
- package/template-vite/index.html +49 -0
- package/template-vite/lib/next-compat.tsx +98 -0
- package/{template → template-vite}/package.json +15 -27
- package/template-vite/scripts/port-next-imports.mjs +70 -0
- package/template-vite/src/App.tsx +103 -0
- package/template-vite/src/main.tsx +50 -0
- package/{template/app/(app)/error.tsx → template-vite/src/pages/_error.tsx} +12 -24
- package/{template/app/(app)/loading.tsx → template-vite/src/pages/_loading.tsx} +4 -2
- package/template-vite/src/pages/_not-found.tsx +17 -0
- package/template-vite/src/pages/dashboard.tsx +48 -0
- package/{template/app/(app)/help/page.tsx → template-vite/src/pages/help.tsx} +3 -2
- package/{template/app/(app)/library/layout.tsx → template-vite/src/pages/library/_layout.tsx} +18 -16
- package/{template/app/(app)/library/all/page.tsx → template-vite/src/pages/library/all.tsx} +1 -1
- package/{template/app/(app)/library/new/page.tsx → template-vite/src/pages/library/new.tsx} +12 -18
- package/template-vite/src/routes.tsx +72 -0
- package/{template/app → template-vite/src/styles}/globals.css +6 -2
- package/{template → template-vite}/tsconfig.json +5 -14
- package/template-vite/vite.config.ts +52 -0
- package/consumer-extras/cursor-rules/exxat-dashboard-view-charts.mdc +0 -53
- package/template/.agents/skills/shadcn/SKILL.md +0 -242
- package/template/.agents/skills/shadcn/agents/openai.yml +0 -5
- package/template/.agents/skills/shadcn/assets/shadcn-small.png +0 -0
- package/template/.agents/skills/shadcn/assets/shadcn.png +0 -0
- package/template/.agents/skills/shadcn/cli.md +0 -257
- package/template/.agents/skills/shadcn/customization.md +0 -202
- package/template/.agents/skills/shadcn/evals/evals.json +0 -47
- package/template/.agents/skills/shadcn/mcp.md +0 -94
- package/template/.agents/skills/shadcn/rules/base-vs-radix.md +0 -306
- package/template/.agents/skills/shadcn/rules/composition.md +0 -195
- package/template/.agents/skills/shadcn/rules/forms.md +0 -192
- package/template/.agents/skills/shadcn/rules/icons.md +0 -101
- package/template/.agents/skills/shadcn/rules/styling.md +0 -162
- package/template/.cursor/rules/exxat-accessibility.mdc +0 -33
- package/template/.cursor/rules/exxat-data-tables.mdc +0 -32
- package/template/.cursor/rules/exxat-ds-agents.mdc +0 -26
- package/template/.cursor/rules/exxat-list-page-connected-views.mdc +0 -16
- package/template/.cursor/rules/exxat-table-properties-drawer.mdc +0 -40
- package/template/.nvmrc +0 -1
- package/template/.prettierignore +0 -7
- package/template/Logo/Exxat_Prism.svg +0 -39
- package/template/Logo/Exxat_one.svg +0 -36
- package/template/app/(app)/dashboard/loading.tsx +0 -18
- package/template/app/(app)/dashboard/page.tsx +0 -36
- package/template/app/(app)/layout.tsx +0 -77
- package/template/app/global-error.tsx +0 -63
- package/template/app/layout.tsx +0 -133
- package/template/app/page.tsx +0 -9
- package/template/docs/HANDBOOK.md +0 -187
- package/template/docs/blueprints/README.md +0 -86
- package/template/docs/blueprints/_template.md +0 -91
- package/template/docs/blueprints/board-card.md +0 -123
- package/template/docs/blueprints/data-table.md +0 -139
- package/template/docs/blueprints/key-metrics.md +0 -128
- package/template/docs/blueprints/list-page-template.md +0 -123
- package/template/docs/blueprints/page-header.md +0 -130
- package/template/docs/card-vs-rows-pattern.md +0 -36
- package/template/docs/collaboration-access-pattern.md +0 -116
- package/template/docs/command-menu-pattern.md +0 -45
- package/template/docs/component-selection-guide.md +0 -224
- package/template/docs/components-audit-2026-05.md +0 -158
- package/template/docs/consumer-upgrade-checklist.md +0 -52
- package/template/docs/data-views-pattern.md +0 -185
- package/template/docs/drawer-vs-dialog-pattern.md +0 -50
- package/template/docs/glossary.md +0 -59
- package/template/docs/hub-supported-views-pattern.md +0 -53
- package/template/docs/jobs/README.md +0 -59
- package/template/docs/jobs/record-detail.md +0 -177
- package/template/docs/kpi-flat-band-pattern.md +0 -57
- package/template/docs/kpi-strip-max-four-pattern.md +0 -30
- package/template/docs/kpi-trend-pattern.md +0 -58
- package/template/docs/large-dataset-strategy.md +0 -155
- package/template/docs/library-hub-header-pattern.md +0 -25
- package/template/docs/migrations/0001-brand-deep-alias-stabilization.md +0 -95
- package/template/docs/migrations/0002-exxat-token-namespace.md +0 -154
- package/template/docs/migrations/0003-globals-css-canonical.md +0 -110
- package/template/docs/migrations/README.md +0 -100
- package/template/docs/migrations/_template.md +0 -64
- package/template/docs/modern-saas-patterns.md +0 -165
- package/template/docs/perf-memory-pattern.md +0 -206
- package/template/docs/reference-implementations.md +0 -153
- package/template/docs/shell-surface-elevation-pattern.md +0 -52
- package/template/docs/token-taxonomy.md +0 -416
- package/template/docs/voice-and-tone.md +0 -262
- package/template/ecosystem.config.cjs +0 -32
- package/template/next.config.mjs +0 -216
- package/template/postcss.config.mjs +0 -8
- package/template/public/favicon/favicon.ico +0 -0
- package/template/tests/setup.ts +0 -26
- package/template/vitest.config.ts +0 -18
- /package/{template → template-vite}/.cursor/rules/exxat-dashboard-view-charts.mdc +0 -0
- /package/{template → template-vite}/.prettierrc +0 -0
- /package/{template → template-vite}/AGENTS.md +0 -0
- /package/{template → template-vite}/README.md +0 -0
- /package/{template → template-vite}/components/.gitkeep +0 -0
- /package/{template → template-vite}/components/ask-leo-composer.tsx +0 -0
- /package/{template → template-vite}/components/brand-color-picker.tsx +0 -0
- /package/{template → template-vite}/components/chart-area-interactive.tsx +0 -0
- /package/{template → template-vite}/components/charts-overview.tsx +0 -0
- /package/{template → template-vite}/components/collaboration-access-flow.tsx +0 -0
- /package/{template → template-vite}/components/columns-client.tsx +0 -0
- /package/{template → template-vite}/components/columns-showcase.tsx +0 -0
- /package/{template → template-vite}/components/dashboard-promo-banner.tsx +0 -0
- /package/{template → template-vite}/components/dashboard-quota-progress-card.tsx +0 -0
- /package/{template → template-vite}/components/dashboard-report-charts.tsx +0 -0
- /package/{template → template-vite}/components/dashboard-section-heading.tsx +0 -0
- /package/{template → template-vite}/components/dashboard-tabs.tsx +0 -0
- /package/{template → template-vite}/components/data-table/filter-date-calendar.tsx +0 -0
- /package/{template → template-vite}/components/data-table/filter-text-value-input.tsx +0 -0
- /package/{template → template-vite}/components/data-table/index.tsx +0 -0
- /package/{template → template-vite}/components/data-table/pagination.tsx +0 -0
- /package/{template → template-vite}/components/data-table/types.ts +0 -0
- /package/{template → template-vite}/components/data-table/use-table-state.test.ts +0 -0
- /package/{template → template-vite}/components/data-table/use-table-state.ts +0 -0
- /package/{template → template-vite}/components/data-views/board-card-primitives.tsx +0 -0
- /package/{template → template-vite}/components/data-views/data-row-list.tsx +0 -0
- /package/{template → template-vite}/components/data-views/finder-panel-view.tsx +0 -0
- /package/{template → template-vite}/components/data-views/folder-grid-view.tsx +0 -0
- /package/{template → template-vite}/components/data-views/hub-table.tsx +0 -0
- /package/{template → template-vite}/components/data-views/index.ts +0 -0
- /package/{template → template-vite}/components/data-views/list-page-board-card.tsx +0 -0
- /package/{template → template-vite}/components/data-views/list-page-board-template.tsx +0 -0
- /package/{template → template-vite}/components/data-views/list-page-connected-view-body.tsx +0 -0
- /package/{template → template-vite}/components/data-views/list-page-split-details-placeholder.tsx +0 -0
- /package/{template → template-vite}/components/data-views/list-page-split-hub-chrome.tsx +0 -0
- /package/{template → template-vite}/components/data-views/list-page-split-hub-tokens.ts +0 -0
- /package/{template → template-vite}/components/data-views/list-page-tree-column-header.tsx +0 -0
- /package/{template → template-vite}/components/data-views/list-page-tree-panel-shell.tsx +0 -0
- /package/{template → template-vite}/components/data-views/list-page-view-frame.tsx +0 -0
- /package/{template → template-vite}/components/data-views/os-folder-glyph.tsx +0 -0
- /package/{template → template-vite}/components/data-views/outline-tree-menu.tsx +0 -0
- /package/{template → template-vite}/components/data-views/table-cells.tsx +0 -0
- /package/{template → template-vite}/components/dev-chunk-load-recovery.tsx +0 -0
- /package/{template → template-vite}/components/export-drawer.test.tsx +0 -0
- /package/{template → template-vite}/components/export-drawer.tsx +0 -0
- /package/{template → template-vite}/components/exxat-product-logo.tsx +0 -0
- /package/{template → template-vite}/components/folder-details-shell.tsx +0 -0
- /package/{template → template-vite}/components/form-layout-01.tsx +0 -0
- /package/{template → template-vite}/components/hub-tree-panel-view.tsx +0 -0
- /package/{template → template-vite}/components/invite-collaborators-drawer.tsx +0 -0
- /package/{template → template-vite}/components/key-metrics-ask-leo-bridge.tsx +0 -0
- /package/{template → template-vite}/components/key-metrics.tsx +0 -0
- /package/{template → template-vite}/components/leo-insight-indicator.tsx +0 -0
- /package/{template → template-vite}/components/leo-typing-dots.tsx +0 -0
- /package/{template → template-vite}/components/library-board-view.tsx +0 -0
- /package/{template → template-vite}/components/library-dashboard-charts.tsx +0 -0
- /package/{template → template-vite}/components/library-favorite-button.tsx +0 -0
- /package/{template → template-vite}/components/library-new-folder-sheet.tsx +0 -0
- /package/{template → template-vite}/components/library-os-folder-view.tsx +0 -0
- /package/{template → template-vite}/components/library-page-header.tsx +0 -0
- /package/{template → template-vite}/components/library-panel-activator.tsx +0 -0
- /package/{template → template-vite}/components/list-hub-status-badge.tsx +0 -0
- /package/{template → template-vite}/components/list-page-dashboard-charts.tsx +0 -0
- /package/{template → template-vite}/components/onboarding/getting-started.tsx +0 -0
- /package/{template → template-vite}/components/onboarding/index.ts +0 -0
- /package/{template → template-vite}/components/onboarding/onboarding-01.tsx +0 -0
- /package/{template → template-vite}/components/onboarding/onboarding-02.tsx +0 -0
- /package/{template → template-vite}/components/onboarding/onboarding-03.tsx +0 -0
- /package/{template → template-vite}/components/onboarding/onboarding-04.tsx +0 -0
- /package/{template → template-vite}/components/page-header.tsx +0 -0
- /package/{template → template-vite}/components/product-switcher.tsx +0 -0
- /package/{template → template-vite}/components/product-wordmark.tsx +0 -0
- /package/{template → template-vite}/components/settings-appearance-card.tsx +0 -0
- /package/{template → template-vite}/components/settings-form-row.tsx +0 -0
- /package/{template → template-vite}/components/sidebar/app-sidebar-dynamic.tsx +0 -0
- /package/{template → template-vite}/components/sidebar/index.ts +0 -0
- /package/{template → template-vite}/components/sidebar/nav-documents.tsx +0 -0
- /package/{template → template-vite}/components/sidebar/nav-secondary.tsx +0 -0
- /package/{template → template-vite}/components/sidebar/secondary-panel.tsx +0 -0
- /package/{template → template-vite}/components/sidebar/sidebar-auto-collapse.tsx +0 -0
- /package/{template → template-vite}/components/sidebar/sidebar-auto-open.tsx +0 -0
- /package/{template → template-vite}/components/sidebar/sidebar-shell.tsx +0 -0
- /package/{template → template-vite}/components/site-header.tsx +0 -0
- /package/{template → template-vite}/components/table-properties/column-row.tsx +0 -0
- /package/{template → template-vite}/components/table-properties/draggable-list.ts +0 -0
- /package/{template → template-vite}/components/table-properties/drawer-button.tsx +0 -0
- /package/{template → template-vite}/components/table-properties/drawer.tsx +0 -0
- /package/{template → template-vite}/components/table-properties/filter-card.tsx +0 -0
- /package/{template → template-vite}/components/table-properties/index.ts +0 -0
- /package/{template → template-vite}/components/table-properties/sort-card.tsx +0 -0
- /package/{template → template-vite}/components/table-properties/types.ts +0 -0
- /package/{template → template-vite}/components/task-list-panel.tsx +0 -0
- /package/{template → template-vite}/components/task-priority-badge.tsx +0 -0
- /package/{template → template-vite}/components/templates/dedicated-search-landing-template.tsx +0 -0
- /package/{template → template-vite}/components/templates/dedicated-search-results-template.tsx +0 -0
- /package/{template → template-vite}/components/templates/list-page.tsx +0 -0
- /package/{template → template-vite}/components/templates/nested-secondary-panel-shell.tsx +0 -0
- /package/{template → template-vite}/components/templates/primary-page-template.tsx +0 -0
- /package/{template → template-vite}/components/templates/secondary-panel-hub-template.tsx +0 -0
- /package/{template → template-vite}/components/theme-color-sync.tsx +0 -0
- /package/{template → template-vite}/components/theme-provider.tsx +0 -0
- /package/{template → template-vite}/components/tinted-icon-disc.tsx +0 -0
- /package/{template → template-vite}/components/tokens-hub-auxiliary-views.tsx +0 -0
- /package/{template → template-vite}/components/tokens-themes-section.tsx +0 -0
- /package/{template → template-vite}/components/ui/accordion.tsx +0 -0
- /package/{template → template-vite}/components/ui/ai-thinking-surface.tsx +0 -0
- /package/{template → template-vite}/components/ui/alert-dialog.tsx +0 -0
- /package/{template → template-vite}/components/ui/avatar.tsx +0 -0
- /package/{template → template-vite}/components/ui/badge.tsx +0 -0
- /package/{template → template-vite}/components/ui/banner.tsx +0 -0
- /package/{template → template-vite}/components/ui/breadcrumb.tsx +0 -0
- /package/{template → template-vite}/components/ui/button.tsx +0 -0
- /package/{template → template-vite}/components/ui/calendar.tsx +0 -0
- /package/{template → template-vite}/components/ui/card.tsx +0 -0
- /package/{template → template-vite}/components/ui/chart.tsx +0 -0
- /package/{template → template-vite}/components/ui/checkbox.tsx +0 -0
- /package/{template → template-vite}/components/ui/coach-mark.tsx +0 -0
- /package/{template → template-vite}/components/ui/collapsible.tsx +0 -0
- /package/{template → template-vite}/components/ui/command.tsx +0 -0
- /package/{template → template-vite}/components/ui/context-menu.tsx +0 -0
- /package/{template → template-vite}/components/ui/date-picker-field.tsx +0 -0
- /package/{template → template-vite}/components/ui/dialog.tsx +0 -0
- /package/{template → template-vite}/components/ui/dot-pattern.tsx +0 -0
- /package/{template → template-vite}/components/ui/drag-handle-grip.tsx +0 -0
- /package/{template → template-vite}/components/ui/dropdown-menu.tsx +0 -0
- /package/{template → template-vite}/components/ui/field.tsx +0 -0
- /package/{template → template-vite}/components/ui/form.tsx +0 -0
- /package/{template → template-vite}/components/ui/hover-card.tsx +0 -0
- /package/{template → template-vite}/components/ui/input-group.tsx +0 -0
- /package/{template → template-vite}/components/ui/input-mask.tsx +0 -0
- /package/{template → template-vite}/components/ui/input.tsx +0 -0
- /package/{template → template-vite}/components/ui/kbd.tsx +0 -0
- /package/{template → template-vite}/components/ui/label.tsx +0 -0
- /package/{template → template-vite}/components/ui/leo-icon.tsx +0 -0
- /package/{template → template-vite}/components/ui/payment-card-fields.tsx +0 -0
- /package/{template → template-vite}/components/ui/popover.tsx +0 -0
- /package/{template → template-vite}/components/ui/radio-group.tsx +0 -0
- /package/{template → template-vite}/components/ui/resizable.tsx +0 -0
- /package/{template → template-vite}/components/ui/scroll-area.tsx +0 -0
- /package/{template → template-vite}/components/ui/select.tsx +0 -0
- /package/{template → template-vite}/components/ui/selection-tile-grid.tsx +0 -0
- /package/{template → template-vite}/components/ui/separator.tsx +0 -0
- /package/{template → template-vite}/components/ui/sheet.tsx +0 -0
- /package/{template → template-vite}/components/ui/sidebar.tsx +0 -0
- /package/{template → template-vite}/components/ui/skeleton.tsx +0 -0
- /package/{template → template-vite}/components/ui/slider.tsx +0 -0
- /package/{template → template-vite}/components/ui/sonner.tsx +0 -0
- /package/{template → template-vite}/components/ui/status-badge.tsx +0 -0
- /package/{template → template-vite}/components/ui/table.tsx +0 -0
- /package/{template → template-vite}/components/ui/tabs.tsx +0 -0
- /package/{template → template-vite}/components/ui/textarea.tsx +0 -0
- /package/{template → template-vite}/components/ui/tip.tsx +0 -0
- /package/{template → template-vite}/components/ui/toggle-group.tsx +0 -0
- /package/{template → template-vite}/components/ui/toggle-switch.tsx +0 -0
- /package/{template → template-vite}/components/ui/toggle.tsx +0 -0
- /package/{template → template-vite}/components/ui/tooltip.tsx +0 -0
- /package/{template → template-vite}/components/ui/view-segmented-control.tsx +0 -0
- /package/{template → template-vite}/components.json +0 -0
- /package/{template → template-vite}/contexts/chart-variant-context.tsx +0 -0
- /package/{template → template-vite}/contexts/command-menu-context.tsx +0 -0
- /package/{template → template-vite}/contexts/dashboard-view-context.tsx +0 -0
- /package/{template → template-vite}/contexts/product-context.tsx +0 -0
- /package/{template → template-vite}/contexts/system-banner-context.tsx +0 -0
- /package/{template → template-vite}/eslint.config.mjs +0 -0
- /package/{template → template-vite}/fontawesome-subset.manifest.json +0 -0
- /package/{template → template-vite}/hooks/.gitkeep +0 -0
- /package/{template → template-vite}/hooks/use-app-theme.ts +0 -0
- /package/{template → template-vite}/hooks/use-coach-mark.ts +0 -0
- /package/{template → template-vite}/hooks/use-location-hash.ts +0 -0
- /package/{template → template-vite}/hooks/use-mobile.ts +0 -0
- /package/{template → template-vite}/hooks/use-mod-key-label.ts +0 -0
- /package/{template → template-vite}/hooks/use-sidebar-reflow-zoom.ts +0 -0
- /package/{template → template-vite}/lib/.gitkeep +0 -0
- /package/{template → template-vite}/lib/ask-leo-route-context.ts +0 -0
- /package/{template → template-vite}/lib/chart-keyboard-selection.test.ts +0 -0
- /package/{template → template-vite}/lib/chart-keyboard-selection.ts +0 -0
- /package/{template → template-vite}/lib/chart-line-dash.ts +0 -0
- /package/{template → template-vite}/lib/chunk-load-error.ts +0 -0
- /package/{template → template-vite}/lib/coach-mark-registry.ts +0 -0
- /package/{template → template-vite}/lib/collaborator-access.ts +0 -0
- /package/{template → template-vite}/lib/command-menu-config.ts +0 -0
- /package/{template → template-vite}/lib/command-menu-search-data.ts +0 -0
- /package/{template → template-vite}/lib/conditional-rule-match.ts +0 -0
- /package/{template → template-vite}/lib/dashboard-customize-coach-mark.ts +0 -0
- /package/{template → template-vite}/lib/dashboard-layout-merge.ts +0 -0
- /package/{template → template-vite}/lib/data-list-display-options.ts +0 -0
- /package/{template → template-vite}/lib/data-list-persistence.ts +0 -0
- /package/{template → template-vite}/lib/data-list-view-registry.ts +0 -0
- /package/{template → template-vite}/lib/data-list-view-surface.ts +0 -0
- /package/{template → template-vite}/lib/data-list-view.ts +0 -0
- /package/{template → template-vite}/lib/data-view-dashboard-storage.ts +0 -0
- /package/{template → template-vite}/lib/date-filter.ts +0 -0
- /package/{template → template-vite}/lib/dedicated-search-recents.ts +0 -0
- /package/{template → template-vite}/lib/dedicated-search-url.ts +0 -0
- /package/{template → template-vite}/lib/dev-log.test.ts +0 -0
- /package/{template → template-vite}/lib/dev-log.ts +0 -0
- /package/{template → template-vite}/lib/discovery-hub.ts +0 -0
- /package/{template → template-vite}/lib/editable-target.ts +0 -0
- /package/{template → template-vite}/lib/exxat-palette.json +0 -0
- /package/{template → template-vite}/lib/exxat-palette.ts +0 -0
- /package/{template → template-vite}/lib/floating-sheet-panel.ts +0 -0
- /package/{template → template-vite}/lib/full-hub-supported-views.ts +0 -0
- /package/{template → template-vite}/lib/hub-connected-view-renderers.ts +0 -0
- /package/{template → template-vite}/lib/initials-from-name.ts +0 -0
- /package/{template → template-vite}/lib/library-authoring.ts +0 -0
- /package/{template → template-vite}/lib/library-dedicated-search.ts +0 -0
- /package/{template → template-vite}/lib/library-hub-search.ts +0 -0
- /package/{template → template-vite}/lib/library-nav.ts +0 -0
- /package/{template → template-vite}/lib/library-recent-searches.ts +0 -0
- /package/{template → template-vite}/lib/library-supported-views.ts +0 -0
- /package/{template → template-vite}/lib/list-hub-supported-views.ts +0 -0
- /package/{template → template-vite}/lib/list-page-table-properties.ts +0 -0
- /package/{template → template-vite}/lib/list-status-badges.ts +0 -0
- /package/{template → template-vite}/lib/logo-dev.ts +0 -0
- /package/{template → template-vite}/lib/mailto.ts +0 -0
- /package/{template → template-vite}/lib/mock/dashboard.ts +0 -0
- /package/{template → template-vite}/lib/mock/library-folders.ts +0 -0
- /package/{template → template-vite}/lib/mock/library-header-collaborators.ts +0 -0
- /package/{template → template-vite}/lib/mock/library-inspector.ts +0 -0
- /package/{template → template-vite}/lib/mock/library-kpi.ts +0 -0
- /package/{template → template-vite}/lib/mock/library.ts +0 -0
- /package/{template → template-vite}/lib/mock/navigation.tsx +0 -0
- /package/{template → template-vite}/lib/motion-ui.ts +0 -0
- /package/{template → template-vite}/lib/product-brand.ts +0 -0
- /package/{template → template-vite}/lib/raf-throttle.ts +0 -0
- /package/{template → template-vite}/lib/row-height.ts +0 -0
- /package/{template → template-vite}/lib/sidebar-state-cookie.ts +0 -0
- /package/{template → template-vite}/lib/stock-portrait.ts +0 -0
- /package/{template → template-vite}/lib/table-state-lifecycle.ts +0 -0
- /package/{template → template-vite}/lib/utils.test.ts +0 -0
- /package/{template → template-vite}/lib/utils.ts +0 -0
- /package/{template → template-vite}/public/.gitkeep +0 -0
- /package/{template → template-vite}/public/Illustration/Rotation.svg +0 -0
- /package/{template → template-vite}/public/avatars/user.svg +0 -0
- /package/{template/public → template-vite/public/favicon}/favicon.ico +0 -0
- /package/{template/app → template-vite/public}/favicon.ico +0 -0
- /package/{template → template-vite}/public/folders/icons8-folder-windows-11.svg +0 -0
- /package/{template → template-vite}/public/logos/exxat-one.svg +0 -0
- /package/{template → template-vite}/public/logos/exxat-prism.svg +0 -0
- /package/{template → template-vite}/public/mock-schools/emory.svg +0 -0
- /package/{template → template-vite}/public/mock-schools/rush.svg +0 -0
- /package/{template → template-vite}/scripts/fontawesome-subset-audit.mjs +0 -0
- /package/{template → template-vite}/scripts/pm2-startup-macos.sh +0 -0
- /package/{template → template-vite}/skills-lock.json +0 -0
- /package/{template/app/(app)/columns/page.tsx → template-vite/src/pages/columns.tsx} +0 -0
- /package/{template/app/(app)/library/find/page.tsx → template-vite/src/pages/library/find.tsx} +0 -0
- /package/{template/app/(app)/library/page.tsx → template-vite/src/pages/library/index.tsx} +0 -0
- /package/{template/app/(app)/library/list/page.tsx → template-vite/src/pages/library/list.tsx} +0 -0
- /package/{template/app/(app)/settings/page.tsx → template-vite/src/pages/settings.tsx} +0 -0
- /package/{template/app/(app)/tokens-themes/page.tsx → template-vite/src/pages/tokens-themes.tsx} +0 -0
- /package/{template → template-vite}/stores/app-store.ts +0 -0
- /package/{template → template-vite}/types/react-payment-inputs.d.ts +0 -0
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
# Blueprint: Board card
|
|
2
|
-
|
|
3
|
-
> **Status:** Stable. **Owner:** Design system. **Implements:** SC 1.1.1, 1.3.1, 2.5.8, 4.1.2.
|
|
4
|
-
|
|
5
|
-
## 1. Intent
|
|
6
|
-
|
|
7
|
-
A **board card** is the kanban-tile presentation of a single hub record (e.g.
|
|
8
|
-
one Placement, one Team member, one Question-bank item) when the active view
|
|
9
|
-
is `board`. The card surfaces the most-scannable summary fields — title, owner
|
|
10
|
-
avatar, status chip, 1-3 meta lines — and is sized so a column holds 6-10
|
|
11
|
-
cards on a 1280-wide viewport.
|
|
12
|
-
|
|
13
|
-
**Use when:**
|
|
14
|
-
|
|
15
|
-
- The hub's `board` view tab is active.
|
|
16
|
-
- The record has a **status** (or equivalent grouping) that drives column placement.
|
|
17
|
-
- Users compare ~6-30 records side-by-side and would benefit from owner / status visibility.
|
|
18
|
-
|
|
19
|
-
**Do NOT use when:**
|
|
20
|
-
|
|
21
|
-
- The record needs ≥ 4 fields to be useful at a glance (use list / table).
|
|
22
|
-
- The dataset has > ~100 records per column (board UX collapses; use table + filters).
|
|
23
|
-
- The hub does not model status / lifecycle (use folder grid or list).
|
|
24
|
-
|
|
25
|
-
## 2. Anatomy
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
┌──────────────────────────────────────────────┐
|
|
29
|
-
│ Title row [avatar] │ ← slot: title (required) + trailing (optional)
|
|
30
|
-
│ ──────────────────────────────────────────── │
|
|
31
|
-
│ [status chip] │ ← slot: badgeRow (optional, when status exists)
|
|
32
|
-
│ ──────────────────────────────────────────── │
|
|
33
|
-
│ Body — primary stat (large) + sub label │ ← slot: body (optional)
|
|
34
|
-
│ ▣ row icon · meta label · meta value │
|
|
35
|
-
│ ▣ row icon · meta label · meta value │
|
|
36
|
-
└──────────────────────────────────────────────┘
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
| Slot | Required? | What it carries |
|
|
40
|
-
|---|---|---|
|
|
41
|
-
| `title` | required | `ListPageBoardCardTitleRow` — single-line truncated title |
|
|
42
|
-
| `trailing` | optional | `ListPageBoardCardAvatar` (owner) or another single glyph |
|
|
43
|
-
| `badgeRow` | optional | `ListPageBoardCardBadgeRow` + `ListHubStatusBadge surface="board"` |
|
|
44
|
-
| `body` | optional | `ListPageBoardCardBody` containing `BoardCardTwoLineBlock` / `BoardCardIconRow` |
|
|
45
|
-
| `footer` | optional | Counts, freshness, or a small CTA — kept low-emphasis |
|
|
46
|
-
|
|
47
|
-
The shell is `ListPageBoardCard` (`Card size="sm"` treatment) — do NOT compose
|
|
48
|
-
a bespoke `<button>` + border-class wrapper for the same pattern.
|
|
49
|
-
|
|
50
|
-
## 3. States
|
|
51
|
-
|
|
52
|
-
| State | Visual / behavior |
|
|
53
|
-
|---|---|
|
|
54
|
-
| Default | Surface 2 background, hairline border, no shadow |
|
|
55
|
-
| Hover | Border deepens; subtle elevation shift (matches `Card size="sm"`) |
|
|
56
|
-
| Focused | `:focus-visible` ring on the outer element (≥ 3:1) |
|
|
57
|
-
| Selected (drag source / active drag target) | `data-selected` border + brand tint |
|
|
58
|
-
| Loading | Skeleton shell mirroring title row + badge row + body |
|
|
59
|
-
| Empty column | Column footer shows "+ Add" affordance with `aria-label` per column |
|
|
60
|
-
| RTL | All trailing slots flip; status chip flips alignment |
|
|
61
|
-
|
|
62
|
-
## 4. Tokens consumed
|
|
63
|
-
|
|
64
|
-
| Token | Used for |
|
|
65
|
-
|---|---|
|
|
66
|
-
| `--exxat-color-surface-2` / `--card` | Card background |
|
|
67
|
-
| `--exxat-color-border-1` / `--border` | Card hairline |
|
|
68
|
-
| `--exxat-color-ink-1` / `--foreground` | Title text |
|
|
69
|
-
| `--exxat-color-ink-2` / `--muted-foreground` | Meta label text |
|
|
70
|
-
| `--exxat-color-focus-ring` / `--ring` | `:focus-visible` ring |
|
|
71
|
-
| `--exxat-radius-2` / `--radius-md` | Card corners |
|
|
72
|
-
| Status-tint variables (`LIST_HUB_STATUS_TINT_*`) | Status chip background + text |
|
|
73
|
-
|
|
74
|
-
## 5. Accessibility
|
|
75
|
-
|
|
76
|
-
| WCAG SC | How this blueprint complies |
|
|
77
|
-
|---|---|
|
|
78
|
-
| 1.1.1 Non-text content | Icons in `BoardCardIconRow` are decorative when paired with a visible label (Case A); standalone glyphs get Case B label + tooltip |
|
|
79
|
-
| 1.3.1 Info & relationships | The card is one `<article>` (or `role="listitem"` inside the column's `role="list"`); status, owner, and meta rows are programmatically related to the title |
|
|
80
|
-
| 2.5.8 Target size | The whole card is the primary click target — ≥ 24×24 CSS px; small icon controls inside use `size-6` (≥ 24px) |
|
|
81
|
-
| 4.1.2 Name / role / value | If the card is interactive (opens detail) it is rendered as `<button>` with an accessible name combining title + status |
|
|
82
|
-
|
|
83
|
-
## 6. Variants
|
|
84
|
-
|
|
85
|
-
| Variant | When to use | Differences from default |
|
|
86
|
-
|---|---|---|
|
|
87
|
-
| `base` | Most hubs | Title + status badge + body |
|
|
88
|
-
| `no-status` | Hubs without lifecycle (Library items) | Omit `badgeRow`; body carries the differentiator |
|
|
89
|
-
| `compact` | Dense boards (10+ cards visible) | Drop body; show title + status + avatar only |
|
|
90
|
-
| `with-progress` | Workflow boards with completion bar | Add a `<Progress>` row in the body slot |
|
|
91
|
-
|
|
92
|
-
## 6.1 List-row counterpart
|
|
93
|
-
|
|
94
|
-
`ListPageBoardCard layout="row"` is the same component shape rendered as a
|
|
95
|
-
horizontal row for the `list` view tab. Use one renderer for both views so the
|
|
96
|
-
**title / status / owner / meta** mapping stays consistent — never define two
|
|
97
|
-
parallel components for "card" and "row" of the same hub.
|
|
98
|
-
|
|
99
|
-
## 7. Implementation
|
|
100
|
-
|
|
101
|
-
| Framework | Component(s) | File |
|
|
102
|
-
|---|---|---|
|
|
103
|
-
| **React (this app)** | `ListPageBoardCard` + `ListPageBoardCardTitleRow` + `ListPageBoardCardBadgeRow` + `ListPageBoardCardBody` + `BoardCardTwoLineBlock` + `BoardCardIconRow` + `ListHubStatusBadge` | `@exxatdesignux/ui/components/data-views` + `apps/web/lib/list-status-badges.ts` |
|
|
104
|
-
| Board template | `ListPageBoardTemplate` (column shells + `renderCard`) | `@exxatdesignux/ui/components/data-views/list-page-board-template` |
|
|
105
|
-
| Mobile | — | — |
|
|
106
|
-
| Figma | "Board card – hub" component in DS library | — |
|
|
107
|
-
|
|
108
|
-
## 8. Do / Don't
|
|
109
|
-
|
|
110
|
-
| ✅ Do | ❌ Don't |
|
|
111
|
-
|---|---|
|
|
112
|
-
| Use `ListPageBoardCard` as the shell; compose primitives inside | Wrap a bespoke `<button>` with border / padding utility classes for the same pattern |
|
|
113
|
-
| Status: `ListHubStatusBadge surface="board"` + entity-specific map from `lib/list-status-badges.ts` | Show status as plain body text when the hub uses `ListHubStatusBadge` elsewhere |
|
|
114
|
-
| Pull rows from `tableState.rows` so board honors filters / search | Hydrate cards from a separate `BOARD_MOCK[]` array |
|
|
115
|
-
| Match list-row + table-row + card field choices via one mapper per hub | Define a card-only field projection that diverges from the table |
|
|
116
|
-
| Use `Tip` on any icon-only control inside the card | Rely on `aria-label` alone for icon-only affordances inside the card |
|
|
117
|
-
|
|
118
|
-
## 9. References
|
|
119
|
-
|
|
120
|
-
- `apps/web/docs/data-views-pattern.md` — board UI section
|
|
121
|
-
- `.cursor/rules/exxat-board-cards.mdc`, `exxat-centralized-list-dataset.mdc`, `exxat-card-vs-list-rows.mdc`
|
|
122
|
-
- `apps/web/AGENTS.md` §4.4 (board cards), §13 (checklist)
|
|
123
|
-
- `apps/web/lib/list-status-badges.ts` — `LIST_HUB_STATUS_TINT_*` + entity maps
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# Blueprint: Data Table
|
|
2
|
-
|
|
3
|
-
> **Status:** Stable. **Owner:** Exxat DS core. **Implements:** WCAG 2.1 AA. **References:** SC 1.3.1, 2.1.1, 2.4.3, 2.4.6, 2.5.8, 4.1.2.
|
|
4
|
-
|
|
5
|
-
## 1. Intent
|
|
6
|
-
|
|
7
|
-
A **data table** is the canonical Exxat surface for browsing a homogeneous,
|
|
8
|
-
comparable dataset (placements, team members, questions, compliance records).
|
|
9
|
-
It pairs a **sortable / filterable / columnable grid** with a single state
|
|
10
|
-
object (`useTableState`) that **every connected view** — list, board,
|
|
11
|
-
dashboard, folder, panel — reads from.
|
|
12
|
-
|
|
13
|
-
**Use when:**
|
|
14
|
-
- The hub shows ≥ ~10 comparable records.
|
|
15
|
-
- Users need to sort, filter, pin columns, change density, or export the data.
|
|
16
|
-
- The hub is a primary nav destination.
|
|
17
|
-
|
|
18
|
-
**Do NOT use when:**
|
|
19
|
-
- The hub is **visual browse** (kanban, gallery, finder) — use
|
|
20
|
-
`ListPageBoardCard` + `data-views/` primitives. See
|
|
21
|
-
[`card-vs-rows-pattern.md`](../card-vs-rows-pattern.md).
|
|
22
|
-
- The data is < ~10 rows and never grows — a simple list (or `<dl>`) suffices.
|
|
23
|
-
- The view is read-only inside an analytics card — that may use minimal markup
|
|
24
|
-
per [`AGENTS.md` §3](../../AGENTS.md).
|
|
25
|
-
|
|
26
|
-
## 2. Anatomy
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
┌─ ListPageTemplate ────────────────────────────────────────────────────┐
|
|
30
|
-
│ [view tabs] [Add view +] [metrics slot] │
|
|
31
|
-
│ ├ DataTableToolbar ──────────────────────────────────────────────┐ │
|
|
32
|
-
│ │ [search] [filter chips] [sort] [columns] [⋯ properties] │ │
|
|
33
|
-
│ ├ DataTable header ──────────────────────────────────────────────┤ │
|
|
34
|
-
│ │ Col A ↕ │ Col B │ Col C │ … │ │
|
|
35
|
-
│ ├ DataTable body ───────────────────────────────────────────────┤ │
|
|
36
|
-
│ │ …rows from `tableState.rows`… │ │
|
|
37
|
-
│ ├ DataTablePaginated footer (optional) ──────────────────────────┤ │
|
|
38
|
-
│ │ ‹ 1 / N › │ │
|
|
39
|
-
│ └────────────────────────────────────────────────────────────────┘ │
|
|
40
|
-
└───────────────────────────────────────────────────────────────────────┘
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
| Slot | Required? | What it carries |
|
|
44
|
-
|---|---|---|
|
|
45
|
-
| `view tabs` | required when ≥ 1 view type | `table / list / board / dashboard` per `ListPageTemplate` |
|
|
46
|
-
| `toolbar.search` | required | `⌘K` / `Ctrl K` find-in-list |
|
|
47
|
-
| `toolbar.filter` | required when entity has filterable fields | Shared `FilterFieldDef` chips |
|
|
48
|
-
| `toolbar.sort` | optional (column headers also sort) | Multi-column sort summary |
|
|
49
|
-
| `toolbar.columns` | required | Column visibility / order chooser |
|
|
50
|
-
| `toolbar.overflow` | required | `⋯` → `TablePropertiesDrawer` |
|
|
51
|
-
| `header` | required | One row of column heads; sortable cells expose `aria-sort` |
|
|
52
|
-
| `body` | required | Rows from **`tableState.rows`** — no parallel data source |
|
|
53
|
-
| `pagination` | optional | When the result set exceeds the virtualization budget |
|
|
54
|
-
|
|
55
|
-
## 3. States
|
|
56
|
-
|
|
57
|
-
| State | Visual / behavior |
|
|
58
|
-
|---|---|
|
|
59
|
-
| Empty result | Inline empty-state row (icon + 1 sentence + clear filters action) |
|
|
60
|
-
| Empty entity | Empty-state card (no rows in entity) |
|
|
61
|
-
| Loading | Skeleton header + 5 skeleton rows; toolbar still interactable |
|
|
62
|
-
| Sorted | Active column shows ↑ / ↓ with `aria-sort`; multi-sort shows index pill |
|
|
63
|
-
| Filtered | Chips in toolbar; "X of Y" indicator |
|
|
64
|
-
| Selected rows | Row check + bulk-action bar above toolbar |
|
|
65
|
-
| Pinned cells | Opaque using `--dt-row-bg` / `--dt-header-bg` (never translucent) |
|
|
66
|
-
| New row (just created) | `--dt-new-row-bg` + `--dt-new-row-border` (fades after N seconds) |
|
|
67
|
-
| RTL | Header sort arrows and column resize handles mirror |
|
|
68
|
-
|
|
69
|
-
## 4. Tokens consumed
|
|
70
|
-
|
|
71
|
-
| Token | Used for |
|
|
72
|
-
|---|---|
|
|
73
|
-
| `--dt-row-bg`, `--dt-row-hover`, `--dt-row-selected`, `--dt-row-selected-fg` | Row chrome (must be **opaque** for pinned cells) |
|
|
74
|
-
| `--dt-header-bg`, `--dt-group-bg` | Header + group rows |
|
|
75
|
-
| `--dt-new-row-bg`, `--dt-new-row-border` | "Just created" highlight |
|
|
76
|
-
| `--sticky-edge-fade` | Edge-of-pinned-column gradient |
|
|
77
|
-
| `--border` | Hairlines between rows / columns |
|
|
78
|
-
| `--ring` | Focus ring on cells, sort headers, row actions |
|
|
79
|
-
| `--interactive-hover-row` | Hover-row tint |
|
|
80
|
-
| `--avatar-initials-bg`, `--avatar-initials-fg` | Initials cells |
|
|
81
|
-
| `--font-mono` (via `font-mono tabular-nums` class) | System IDs in cells |
|
|
82
|
-
| `--table-row-height` | Default row height (`48px * --scaling`) |
|
|
83
|
-
|
|
84
|
-
## 5. Accessibility
|
|
85
|
-
|
|
86
|
-
| WCAG SC | How this blueprint complies |
|
|
87
|
-
|---|---|
|
|
88
|
-
| 1.3.1 Info & relationships | `<table>` / `<thead>` / `<tbody>` / `<tr>` / `<th scope="col">` semantics preserved through TanStack Table renderers |
|
|
89
|
-
| 1.4.3 Contrast | Row hover + selection tints stay ≥ 4.5:1 against `--foreground` |
|
|
90
|
-
| 1.4.11 UI contrast | Cell borders use `--border`; focus uses `--ring` (≥ 3:1) |
|
|
91
|
-
| 2.1.1 Keyboard | Cells reachable by `Tab`; arrow-key cell nav inside the body; `Esc` clears active filter chip |
|
|
92
|
-
| 2.4.3 Focus order | Header → toolbar → body → pagination; never traps |
|
|
93
|
-
| 2.4.6 Headings & labels | Column heads are `<th>` with visible text labels; icon-only sort affordance carries `aria-label` + `Tooltip` (SC 1.1.1 Case C) |
|
|
94
|
-
| 2.5.8 Target size | Sort handles, sort/filter chips, row checkboxes ≥ 24×24 CSS px |
|
|
95
|
-
| 4.1.2 Name, role, value | Sortable headers expose `aria-sort`; row selection checkboxes expose checked state |
|
|
96
|
-
|
|
97
|
-
## 6. Variants
|
|
98
|
-
|
|
99
|
-
| Variant | When to use | Differences |
|
|
100
|
-
|---|---|---|
|
|
101
|
-
| `DataTable` | Default — virtualized, sticky header | All features above |
|
|
102
|
-
| `DataTablePaginated` | Server-paginated result sets where virtualization is wrong | Page footer + page-size selector |
|
|
103
|
-
| `DataTable size="compact"` | Dense data (admin tools, reconciliation views) | Reduced `--table-row-height` |
|
|
104
|
-
|
|
105
|
-
## 7. Implementation
|
|
106
|
-
|
|
107
|
-
| Framework | Component(s) | File |
|
|
108
|
-
|---|---|---|
|
|
109
|
-
| **React (this app)** | `DataTable`, `DataTablePaginated`, `useTableState`, `DataTableToolbar`, `TablePropertiesDrawer`, **importable cell renderers** in `components/data-views/table-cells.tsx` (`ProgressCell`, `CurrencyCell`, `RatingCell`, `RowActionsCell<TRow>`, …) | [`packages/ui/src/components/data-table/`](../../../../packages/ui/src/components/data-table/), [`apps/web/components/data-views/table-cells.tsx`](../../components/data-views/table-cells.tsx), [`packages/ui/src/components/table-properties/`](../../../../packages/ui/src/components/table-properties/) |
|
|
110
|
-
| Mobile | — | — |
|
|
111
|
-
| Figma | — | — |
|
|
112
|
-
|
|
113
|
-
Reference compositions:
|
|
114
|
-
|
|
115
|
-
- **Placements** — `PlacementsClient` + `PlacementsTable` (most complete reference)
|
|
116
|
-
- **Team** — `TeamClient` + `TeamTable`
|
|
117
|
-
- **Compliance** — `ComplianceClient` + `ComplianceTable`
|
|
118
|
-
- **Library** — `LibraryClient` + `LibraryTable` (adds folder
|
|
119
|
-
scope from URL)
|
|
120
|
-
|
|
121
|
-
## 8. Do / Don't
|
|
122
|
-
|
|
123
|
-
| ✅ Do | ❌ Don't |
|
|
124
|
-
|---|---|
|
|
125
|
-
| Use **one** `useTableState` per logical table; pass `tableState.rows` to every connected view (list/board/dashboard) | Hydrate a board / list view from a parallel mock array — the count will diverge from the table |
|
|
126
|
-
| Wrap the table in `ListPageTemplate` so view tabs exist | Render `DataTable` directly under `PageHeader` for a primary hub |
|
|
127
|
-
| Pass `currentView` + `onViewChange` to `TablePropertiesDrawer` so Properties matches the active tab | Mount `TablePropertiesDrawer` on a multi-view page without `currentView` — it defaults to "Table display" copy on Board |
|
|
128
|
-
| Use `font-mono tabular-nums` on system IDs only | Apply `font-mono` to names, statuses, or dates |
|
|
129
|
-
| Mark sort headers with `aria-sort` and visible direction glyph | Use color alone to communicate sort direction |
|
|
130
|
-
| Search keyboard hint shows `⌘K` (no Alt) | Use `⌘⌥K` for the table search — that chord is Ask Leo |
|
|
131
|
-
|
|
132
|
-
## 9. References
|
|
133
|
-
|
|
134
|
-
- [`apps/web/docs/data-views-pattern.md`](../data-views-pattern.md) — architecture narrative
|
|
135
|
-
- [`.cursor/rules/exxat-data-tables.mdc`](../../../.cursor/rules/exxat-data-tables.mdc) — the mandatory stack
|
|
136
|
-
- [`.cursor/rules/exxat-list-page-connected-views.mdc`](../../../.cursor/rules/exxat-list-page-connected-views.mdc) — `tableState.rows` across views
|
|
137
|
-
- [`.cursor/rules/exxat-centralized-list-dataset.mdc`](../../../.cursor/rules/exxat-centralized-list-dataset.mdc) — one dataset rule
|
|
138
|
-
- [`.cursor/rules/exxat-table-properties-drawer.mdc`](../../../.cursor/rules/exxat-table-properties-drawer.mdc) — Properties drawer + active view
|
|
139
|
-
- [`apps/web/AGENTS.md`](../../AGENTS.md) §3, §4, §5
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Blueprint: Key metrics (KPI strip + dashboard tiles)
|
|
2
|
-
|
|
3
|
-
> **Status:** Stable. **Owner:** Design system. **Implements:** SC 1.3.1, 1.4.3, 1.4.11, 2.4.6, 4.1.2.
|
|
4
|
-
|
|
5
|
-
## 1. Intent
|
|
6
|
-
|
|
7
|
-
A **key-metrics strip** summarizes a hub's headline numbers — count, % share,
|
|
8
|
-
average, freshness — in 1-4 horizontal tiles. Each tile carries a label, a
|
|
9
|
-
formatted value, and an optional **trend chip** (`+12% MoM`, `↓ 0.4 day`,
|
|
10
|
-
`stable`). The strip exists in two variants:
|
|
11
|
-
|
|
12
|
-
- `variant="flat"` — transparent band glued under `ListPageTemplate` headers
|
|
13
|
-
(brand glow + cell hairlines, no surface panel).
|
|
14
|
-
- `variant="card"` — solid card with header / actions / chart annotations
|
|
15
|
-
(dashboard "Key metrics" section).
|
|
16
|
-
|
|
17
|
-
Both feed from the **same row bag** the hub's `DataTable` shows, so the
|
|
18
|
-
numbers reflect active filters / search.
|
|
19
|
-
|
|
20
|
-
**Use when:**
|
|
21
|
-
|
|
22
|
-
- The hub's headline answer can be expressed in **≤ 4 numbers**.
|
|
23
|
-
- The numbers update in response to filters, search, or a date scope.
|
|
24
|
-
- The user benefits from a trend chip (signed delta + period label).
|
|
25
|
-
|
|
26
|
-
**Do NOT use when:**
|
|
27
|
-
|
|
28
|
-
- You need 5 + tiles (push secondary stats into a `MetricInsight`, a chart, or
|
|
29
|
-
another section — never raise `KEY_METRICS_KPI_COUNT_MAX` without DS review).
|
|
30
|
-
- The metric is a long-form chart (use `Chart` family, possibly with a
|
|
31
|
-
`MetricInsight` mini-callout inside).
|
|
32
|
-
|
|
33
|
-
## 2. Anatomy
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
flat:
|
|
37
|
-
─────────────────────────────────────────────────────────────────
|
|
38
|
-
│ Label Value [+12% MoM ▲] │ Label Value [−0.4d ▼] │
|
|
39
|
-
─────────────────────────────────────────────────────────────────
|
|
40
|
-
↑ hairline between cells (no panel)
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
card:
|
|
45
|
-
┌──────────────────────────────────────────────┐
|
|
46
|
-
│ Key metrics [Ask Leo] │ ← header (label + actions)
|
|
47
|
-
│ ──────────────────────────────────────────── │
|
|
48
|
-
│ Label Value [trend] ↪ insight chip │ ← MetricItem rows
|
|
49
|
-
│ Label Value [trend] │
|
|
50
|
-
└──────────────────────────────────────────────┘
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
| Slot | Required? | What it carries |
|
|
54
|
-
|---|---|---|
|
|
55
|
-
| `metrics` | required | `MetricItem[]` (≤ 4) — label, value, optional trend, optional polarity |
|
|
56
|
-
| `variant` | required | `"flat"` (list-hub strip) or `"card"` (dashboard tile) |
|
|
57
|
-
| `insight` | optional | `MetricInsight` — a narrative chip (e.g. "Renewals up 12% MoM") |
|
|
58
|
-
| `headerActions` | optional (card only) | Ask-Leo trigger or drill-down button |
|
|
59
|
-
| `loading` | optional | Skeleton state — same layout, no values |
|
|
60
|
-
|
|
61
|
-
## 3. States
|
|
62
|
-
|
|
63
|
-
| State | Visual / behavior |
|
|
64
|
-
|---|---|
|
|
65
|
-
| Default | Tiles render label + value + optional trend |
|
|
66
|
-
| Loading | Skeleton bars in the value + trend positions, label visible |
|
|
67
|
-
| Empty | Value = `0` (or `—` for averages), trend = `neutral` |
|
|
68
|
-
| Trend up + favorable | Up arrow + positive tint |
|
|
69
|
-
| Trend up + unfavorable (`trendPolarity: "lower_is_better"`) | Up arrow + destructive tint |
|
|
70
|
-
| Trend neutral / informational | Muted tint, arrow still shows direction |
|
|
71
|
-
| RTL | Trend chip flips alignment; arrows stay direction-correct (logical, not visual) |
|
|
72
|
-
|
|
73
|
-
## 4. Tokens consumed
|
|
74
|
-
|
|
75
|
-
| Token | Used for |
|
|
76
|
-
|---|---|
|
|
77
|
-
| `--exxat-color-surface-muted` / `--muted` | Card variant header band |
|
|
78
|
-
| `--exxat-color-surface-2` / `--card` | Card variant background |
|
|
79
|
-
| `--exxat-color-brand-tint-1` / `--brand-tint` | Flat variant OKLCH brand glow |
|
|
80
|
-
| `--exxat-color-border-1` / `--border` | Cell hairlines (flat variant) |
|
|
81
|
-
| `--exxat-color-ink-1` / `--foreground` | Value text |
|
|
82
|
-
| `--exxat-color-ink-2` / `--muted-foreground` | Label + meta text |
|
|
83
|
-
| Trend chip tokens (positive / destructive / neutral) | Trend tint + foreground |
|
|
84
|
-
|
|
85
|
-
## 5. Accessibility
|
|
86
|
-
|
|
87
|
-
| WCAG SC | How this blueprint complies |
|
|
88
|
-
|---|---|
|
|
89
|
-
| 1.3.1 Info & relationships | The strip is `role="group"` + `aria-label="Key metrics"`; each tile is a `<dl>`-style label / value pair |
|
|
90
|
-
| 1.4.3 Contrast | Trend chip text + tile value ≥ 4.5:1; trend icon ≥ 3:1 |
|
|
91
|
-
| 1.4.11 Non-text contrast | Trend chip border / glyph ≥ 3:1 against tile background |
|
|
92
|
-
| 2.4.6 Headings / labels | Each tile's label is the accessible name; value is `aria-describedby` |
|
|
93
|
-
| 4.1.2 Name / role / value | Trend chip has `aria-label` like "Trending up 12% month over month" (via `metricTrendAriaQualifier`) |
|
|
94
|
-
|
|
95
|
-
## 6. Variants
|
|
96
|
-
|
|
97
|
-
| Variant | When to use | Differences from default |
|
|
98
|
-
|---|---|---|
|
|
99
|
-
| `flat` | List-page hub headers — transparent band under `ListPageTemplate` | No surface panel; OKLCH brand glow; hairlines only |
|
|
100
|
-
| `card` | Dashboards (Data tab, embed widgets) | Solid card chrome + header + optional Ask Leo trigger |
|
|
101
|
-
| `compact` | Embedded in another card (chart annotation) | 1-2 tiles inline with the chart legend |
|
|
102
|
-
| `mini` | Inside a chart card | Single tile rendered next to the chart title |
|
|
103
|
-
|
|
104
|
-
## 7. Implementation
|
|
105
|
-
|
|
106
|
-
| Framework | Component(s) | File |
|
|
107
|
-
|---|---|---|
|
|
108
|
-
| **React (this app)** | `KeyMetrics` + `MetricItem` + `MetricInsight` + `metricTrendTone` + `metricTrendAriaQualifier` | `@exxatdesignux/ui/components/key-metrics` |
|
|
109
|
-
| Service injection (Ask Leo) | `KeyMetricsProvider` (in `apps/web/components/key-metrics-ask-leo-bridge.tsx`) | Wires `useAskLeo` → DS context |
|
|
110
|
-
| Mobile | — | — |
|
|
111
|
-
| Figma | "Key metrics – flat" and "Key metrics – card" frames | — |
|
|
112
|
-
|
|
113
|
-
## 8. Do / Don't
|
|
114
|
-
|
|
115
|
-
| ✅ Do | ❌ Don't |
|
|
116
|
-
|---|---|
|
|
117
|
-
| Cap visible tiles at 4 (`KEY_METRICS_KPI_COUNT_MAX`) | Add a fifth tile by raising the constant without DS review |
|
|
118
|
-
| Set `trendPolarity: "lower_is_better"` for metrics where up = bad (defects, overdue, low-quality flags) | Always paint "up" as the favorable tint |
|
|
119
|
-
| Feed KPI builders with `tableState.rows` so numbers honor filters | Pass raw mock arrays — the numbers will lie when filters change |
|
|
120
|
-
| Use `variant="flat"` on hub headers and `variant="card"` in dashboards | Build a bespoke 3-column tile grid duplicating `KeyMetrics` |
|
|
121
|
-
| Pair trend with a `MetricInsight` for narrative context | Show a bare delta with no period header or qualifier |
|
|
122
|
-
|
|
123
|
-
## 9. References
|
|
124
|
-
|
|
125
|
-
- `apps/web/docs/kpi-flat-band-pattern.md`, `kpi-strip-max-four-pattern.md`, `kpi-trend-pattern.md`
|
|
126
|
-
- `.cursor/rules/exxat-kpi-flat-band.mdc`, `exxat-kpi-max-four.mdc`, `exxat-kpi-trends.mdc`
|
|
127
|
-
- `apps/web/AGENTS.md` §4.1 (template metrics slot), §4.3 (charts + mini-metrics)
|
|
128
|
-
- `apps/web/lib/dashboard-layout-merge.ts` — `KEY_METRICS_KPI_COUNT_MAX`, `clampKeyMetricsKpiCount`
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
# Blueprint: List page template
|
|
2
|
-
|
|
3
|
-
> **Status:** Stable. **Owner:** Design system. **Implements:** SC 1.3.1, 2.1.1, 2.4.3, 2.4.6, 4.1.2.
|
|
4
|
-
|
|
5
|
-
## 1. Intent
|
|
6
|
-
|
|
7
|
-
A **list page** is the canonical hub surface for browsing a homogeneous
|
|
8
|
-
collection of records (Placements, Team, Compliance, Library items, …).
|
|
9
|
-
It pairs a single `DataTable` with view-tab variants (table · list · board ·
|
|
10
|
-
dashboard · folder · panel · tree), one shared filter / sort / column model,
|
|
11
|
-
and a metric strip that consumes the same filtered row bag.
|
|
12
|
-
|
|
13
|
-
**Use when:**
|
|
14
|
-
|
|
15
|
-
- The route is the **primary** destination for an entity (a hub, not a detail).
|
|
16
|
-
- Users compare records and filter / sort across them.
|
|
17
|
-
- The same dataset can be productively shown as a table **and** as one or more
|
|
18
|
-
alternate views (board, dashboard, etc.).
|
|
19
|
-
|
|
20
|
-
**Do NOT use when:**
|
|
21
|
-
|
|
22
|
-
- The page is a **detail** view of a single record (use a record-home page).
|
|
23
|
-
- The dataset is < ~10 items and never needs filters (use a card grid).
|
|
24
|
-
- The flow is a multi-step **wizard** or **form** (use a primary-page template
|
|
25
|
-
with a focus mode).
|
|
26
|
-
|
|
27
|
-
## 2. Anatomy
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
┌──────────────────────────────────────────────────────────┐
|
|
31
|
-
│ PageHeader (title · subtitle · primary CTA · ⋯ menu) │ ← slot: header (required)
|
|
32
|
-
├──────────────────────────────────────────────────────────┤
|
|
33
|
-
│ KeyMetrics flat band (≤ 4 tiles · trend chips · …) │ ← slot: metrics (optional)
|
|
34
|
-
├──────────────────────────────────────────────────────────┤
|
|
35
|
-
│ View tabs [ Table · Board · Dashboard · Folder · … ] │ ← slot: viewTabs (required, ≥ 1)
|
|
36
|
-
├──────────────────────────────────────────────────────────┤
|
|
37
|
-
│ Toolbar (search · filter chips · ⋯ properties) │ ← managed by HubTable
|
|
38
|
-
│ ┌─────────────────────────────────────────────────┐ │
|
|
39
|
-
│ │ Active view body — TABLE / BOARD / … │ │ ← rendered by HubTable + renderers
|
|
40
|
-
│ └─────────────────────────────────────────────────┘ │
|
|
41
|
-
└──────────────────────────────────────────────────────────┘
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
| Slot | Required? | What it carries |
|
|
45
|
-
|---|---|---|
|
|
46
|
-
| `header` | required | `PageHeader` (object-home / record-home / collaboration variant) |
|
|
47
|
-
| `metrics` | optional | `KeyMetrics variant="flat"` — ≤ 4 tiles fed by the same `tableState.rows` |
|
|
48
|
-
| `viewTabs` | required (≥ 1) | `ViewTab[]` with `viewType`, `icon`, `label`, optional `filterId` |
|
|
49
|
-
| `renderContent` | required | `(tab, updateTab) => ReactNode` that returns the active view body |
|
|
50
|
-
| `beforeSiteHeader` | optional | Banner / promo strip rendered above the site header |
|
|
51
|
-
| `tablePropertiesRef` | optional | Imperative handle so the ⋯ menu can open the Properties drawer |
|
|
52
|
-
|
|
53
|
-
`ListPageTemplate` itself owns the **header + metrics + view-tab control**.
|
|
54
|
-
The view body is rendered by `HubTable` (or a custom non-table view) and
|
|
55
|
-
**shares one `useTableState`** instance across every view.
|
|
56
|
-
|
|
57
|
-
## 3. States
|
|
58
|
-
|
|
59
|
-
| State | Visual / behavior |
|
|
60
|
-
|---|---|
|
|
61
|
-
| Default | Header + metrics + active view body |
|
|
62
|
-
| No metrics declared | Metrics band is omitted; no empty gap |
|
|
63
|
-
| No rows | Active view shows entity-specific empty state; KPI tiles show zeros + neutral trend |
|
|
64
|
-
| Filters applied | Toolbar chips reflect filters; KPI tiles recalculate against filtered rows |
|
|
65
|
-
| Switching views | `tab.id` is the React key so table state survives (sort, search, columns) |
|
|
66
|
-
| Loading | Render skeleton state in `renderContent`; metric tiles use the `metric-card` skeleton |
|
|
67
|
-
| RTL | All chrome (toolbar, view tabs, properties drawer) flips with `dir="rtl"` |
|
|
68
|
-
|
|
69
|
-
## 4. Tokens consumed
|
|
70
|
-
|
|
71
|
-
| Token | Used for |
|
|
72
|
-
|---|---|
|
|
73
|
-
| `--exxat-color-surface-1` / `--background` | Page canvas |
|
|
74
|
-
| `--exxat-color-surface-2` / `--card` | Header + table chrome |
|
|
75
|
-
| `--exxat-color-surface-muted` / `--muted` | View-tab inactive bg, KPI flat band glow |
|
|
76
|
-
| `--exxat-color-brand-1` / `--brand-color` | Active view tab, primary CTA |
|
|
77
|
-
| `--exxat-color-border-1` / `--border` | Hairlines between chrome zones |
|
|
78
|
-
| `--exxat-color-focus-ring` / `--ring` | `:focus-visible` ring on toolbar / tabs |
|
|
79
|
-
| `--exxat-radius-2` / `--radius` | Page chrome radii |
|
|
80
|
-
|
|
81
|
-
## 5. Accessibility
|
|
82
|
-
|
|
83
|
-
| WCAG SC | How this blueprint complies |
|
|
84
|
-
|---|---|
|
|
85
|
-
| 1.3.1 Info & relationships | View tabs use `role="tablist"`; toolbar uses `role="toolbar"`; metrics use `role="group"` + name |
|
|
86
|
-
| 2.1.1 Keyboard | Tab through header → tabs → toolbar → grid; arrow keys between tabs and column headers |
|
|
87
|
-
| 2.4.3 Focus order | Tab order matches reading order top-to-bottom |
|
|
88
|
-
| 2.4.6 Headings / labels | Header title is the route `<h1>`; each view tab announces its label |
|
|
89
|
-
| 4.1.2 Name / role / value | View tabs expose `aria-selected`; properties drawer toggle has `aria-haspopup="dialog"` |
|
|
90
|
-
|
|
91
|
-
## 6. Variants
|
|
92
|
-
|
|
93
|
-
| Variant | When to use | Differences from default |
|
|
94
|
-
|---|---|---|
|
|
95
|
-
| `base` | Most hubs | Header + metrics + tabs + view body |
|
|
96
|
-
| `no-metrics` | Hubs where KPI summary adds noise (e.g. Library: too many heterogeneous folders) | Omit `metrics` prop |
|
|
97
|
-
| `with-banner` | Pages that need a promo or alert above the header | Use `beforeSiteHeader` slot |
|
|
98
|
-
| `secondary-panel-hub` | Hubs scoped by a sidebar panel (Library) | Wrap in `SecondaryPanelHubTemplate`; same `useTableState` |
|
|
99
|
-
|
|
100
|
-
## 7. Implementation
|
|
101
|
-
|
|
102
|
-
| Framework | Component(s) | File |
|
|
103
|
-
|---|---|---|
|
|
104
|
-
| **React (this app)** | `ListPageTemplate` + `HubTable` + `useTableState` + `TablePropertiesDrawer` | `@exxatdesignux/ui/components/templates/list-page`, `@exxatdesignux/ui/components/data-views`, `@exxatdesignux/ui/components/data-table` |
|
|
105
|
-
| Mobile | — | — |
|
|
106
|
-
| Figma | Pattern: "List page – hub" frame in the DS library | — |
|
|
107
|
-
|
|
108
|
-
## 8. Do / Don't
|
|
109
|
-
|
|
110
|
-
| ✅ Do | ❌ Don't |
|
|
111
|
-
|---|---|
|
|
112
|
-
| One `useTableState` per hub; every view reads `tableState.rows` | Mount a second mock array for "board only" or "tree only" |
|
|
113
|
-
| Pass `currentView` + `onViewChange` into `TablePropertiesDrawer` | Leave `currentView` unset on a multi-view hub (Properties drawer assumes table) |
|
|
114
|
-
| Use `key={tab.id}` in `renderContent` so table state survives | Use `key={tab.viewType}` (resets state when switching views) |
|
|
115
|
-
| Pull metrics from `tableState.rows` so they react to filters / search | Pass raw mock arrays to KPI builders (numbers will lie when filters change) |
|
|
116
|
-
| Cap the metrics strip at 4 KPI tiles | Add a fifth tile by raising `KEY_METRICS_KPI_COUNT_MAX` without DS review |
|
|
117
|
-
|
|
118
|
-
## 9. References
|
|
119
|
-
|
|
120
|
-
- `apps/web/docs/data-views-pattern.md` — connected views narrative
|
|
121
|
-
- `apps/web/docs/kpi-flat-band-pattern.md`, `kpi-strip-max-four-pattern.md`, `kpi-trend-pattern.md`
|
|
122
|
-
- `.cursor/rules/exxat-list-page-connected-views.mdc`, `exxat-centralized-list-dataset.mdc`, `exxat-table-properties-drawer.mdc`, `exxat-list-page-view-shells.mdc`
|
|
123
|
-
- `apps/web/AGENTS.md` §4.1 (template), §4.2 (Properties drawer), §4.5 (view shells)
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# Blueprint: Page Header
|
|
2
|
-
|
|
3
|
-
> **Status:** Stable. **Owner:** Exxat DS core. **Implements:** WCAG 2.1 AA.
|
|
4
|
-
|
|
5
|
-
## 1. Intent
|
|
6
|
-
|
|
7
|
-
A page header **names the route** the user is on, communicates **freshness**
|
|
8
|
-
of the underlying data, and gives the user the **primary action** for that
|
|
9
|
-
route (and any secondary actions behind a `⋯` overflow). It is the visual
|
|
10
|
-
anchor of every primary hub.
|
|
11
|
-
|
|
12
|
-
**Use when:**
|
|
13
|
-
- The user lands on a primary nav destination (Placements, Team, Question
|
|
14
|
-
bank, Compliance, Settings, Dashboard).
|
|
15
|
-
- The user opens a detail/record view that should advertise its own identity
|
|
16
|
-
(placement record, question detail).
|
|
17
|
-
|
|
18
|
-
**Do NOT use when:**
|
|
19
|
-
- The surface is already inside a hub's view body (sub-sections never get
|
|
20
|
-
their own page header — they get a `DashboardSectionHeading` or similar).
|
|
21
|
-
- The surface is an overlay (drawer / dialog / sheet) — those use their own
|
|
22
|
-
`*Title` slots.
|
|
23
|
-
|
|
24
|
-
## 2. Anatomy
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
┌──────────────────────────────────────────────────────────────────────┐
|
|
28
|
-
│ [icon] Title [face-rail] [primary] [⋯] │ ← title-row (required)
|
|
29
|
-
│ Subtitle · ID · count · freshness │ ← meta (optional)
|
|
30
|
-
└──────────────────────────────────────────────────────────────────────┘
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
| Slot | Required? | What it carries |
|
|
34
|
-
|---|---|---|
|
|
35
|
-
| `icon` | optional | Product mark (`ExxatProductLogo`) or FA glyph |
|
|
36
|
-
| `title` | **required** | One H1 — the route name (e.g. "Placements") |
|
|
37
|
-
| `subtitle` | optional | One line: short context, ID, count, freshness |
|
|
38
|
-
| `face-rail` | optional | `+N collaborators` stack (variant `collaboration`) |
|
|
39
|
-
| `actions/primary` | optional | One filled `Button` (e.g. "New placement") |
|
|
40
|
-
| `actions/overflow` | optional | One outline icon `Button` opening a dropdown menu |
|
|
41
|
-
| `breadcrumb` | optional | Above title; never alongside it |
|
|
42
|
-
|
|
43
|
-
The header **never** carries search, filters, view-tabs, or KPIs — those belong
|
|
44
|
-
to `ListPageTemplate` / `KeyMetrics` / `DataTable`. The header is the route
|
|
45
|
-
identity, nothing more.
|
|
46
|
-
|
|
47
|
-
## 3. States
|
|
48
|
-
|
|
49
|
-
| State | Visual / behavior |
|
|
50
|
-
|---|---|
|
|
51
|
-
| Default | Title + subtitle + actions; primary CTA filled. |
|
|
52
|
-
| Collaboration empty | Outline "Add collaborator" replaces face rail. |
|
|
53
|
-
| Collaboration populated | Face rail with `+N` opens `InviteCollaboratorsDrawer`. |
|
|
54
|
-
| Loading | Title skeleton (60% width), meta skeleton (30% width). |
|
|
55
|
-
| Error | The header still renders; errors land in the body's `LocalBanner`. |
|
|
56
|
-
| RTL | Slots mirror; FA glyphs auto-mirror via Tailwind's `rtl:`. |
|
|
57
|
-
|
|
58
|
-
## 4. Tokens consumed
|
|
59
|
-
|
|
60
|
-
| Token | Used for |
|
|
61
|
-
|---|---|
|
|
62
|
-
| `--background` / `--foreground` | Surface + ink |
|
|
63
|
-
| `--muted-foreground` | Subtitle / meta line |
|
|
64
|
-
| `--brand-color` | Product mark fills (when icon is a product logo) |
|
|
65
|
-
| `--ring` | Focus ring on actions + face rail buttons |
|
|
66
|
-
| `--font-heading` | Title font family (Ivy Presto) — **not** body Inter |
|
|
67
|
-
| `--text-xs` | Meta line at min 11px (SC 1.4.3) |
|
|
68
|
-
| `--radius-md` | Action button corners |
|
|
69
|
-
|
|
70
|
-
For monospace IDs in the subtitle, see
|
|
71
|
-
[`exxat-mono-ids.mdc`](../../../.cursor/rules/exxat-mono-ids.mdc): only the
|
|
72
|
-
ID token gets `font-mono tabular-nums`, the rest of the line stays sans.
|
|
73
|
-
|
|
74
|
-
## 5. Accessibility
|
|
75
|
-
|
|
76
|
-
| WCAG SC | How this blueprint complies |
|
|
77
|
-
|---|---|
|
|
78
|
-
| 1.1.1 Non-text content | Product icon decorative (Case A — title sits beside it). If a header icon must stand alone, follow Case B (label + tooltip). |
|
|
79
|
-
| 1.3.1 Info & relationships | Title is exactly one `<h1>` — every route has one and only one. |
|
|
80
|
-
| 1.4.3 Contrast (text) | `--muted-foreground` is ≥ 5.5:1 on `--background`. |
|
|
81
|
-
| 2.1.1 Keyboard | Tab order: breadcrumb → title link (if any) → face rail → primary → overflow trigger. |
|
|
82
|
-
| 2.4.6 Headings / labels | Title strings match `<title>` (document title) where they describe the same route. |
|
|
83
|
-
| 2.4.11 Focus visible | All interactive slots inherit `:focus-visible` ring from `--ring`. |
|
|
84
|
-
|
|
85
|
-
## 6. Variants
|
|
86
|
-
|
|
87
|
-
| Variant | When to use | Differences |
|
|
88
|
-
|---|---|---|
|
|
89
|
-
| `base` | Default — most routes | Title + actions only |
|
|
90
|
-
| `object-home` | Lists / hubs with optional metrics + tabs **below** the header | Adds a count/freshness slot under the title |
|
|
91
|
-
| `record-home` | Detail / record views | May expose a small detail row (label/value pairs) — keep ≤ 5 pairs |
|
|
92
|
-
| `collaboration` | Shared hubs (Library, future) | Adds face rail + invite entry — see [`exxat-collaboration-access.mdc`](../../../.cursor/rules/exxat-collaboration-access.mdc) |
|
|
93
|
-
|
|
94
|
-
Pick **one** variant per header. Combining `collaboration` with
|
|
95
|
-
`record-home` is allowed only when the record itself is a shareable
|
|
96
|
-
artifact (e.g. a question).
|
|
97
|
-
|
|
98
|
-
## 7. Implementation
|
|
99
|
-
|
|
100
|
-
| Framework | Component(s) | File |
|
|
101
|
-
|---|---|---|
|
|
102
|
-
| **React (this app)** | `PageHeader` (shell) + per-hub headers (composition) | [`apps/web/components/page-header.tsx`](../../components/page-header.tsx), [`apps/web/components/library-page-header.tsx`](../../components/library-page-header.tsx) |
|
|
103
|
-
| Mobile | — | — |
|
|
104
|
-
| Figma | — | — |
|
|
105
|
-
|
|
106
|
-
Reference hub-level compositions:
|
|
107
|
-
|
|
108
|
-
- **Placements** — filled primary CTA `New placement` + `⋯` (Export, Customize…)
|
|
109
|
-
- **Team** — same shape, count + freshness in subtitle
|
|
110
|
-
- **Library** — `variant="collaboration"` + folder-scoped customize entry
|
|
111
|
-
|
|
112
|
-
## 8. Do / Don't
|
|
113
|
-
|
|
114
|
-
| ✅ Do | ❌ Don't |
|
|
115
|
-
|---|---|
|
|
116
|
-
| Render exactly one `<h1>` per route | Render two H1s (e.g. one in header + one in body) |
|
|
117
|
-
| Put the primary CTA inside the header — filled, often `size="lg"` | Use `variant="outline"` for the sole primary action on an exportable page |
|
|
118
|
-
| Put **Export** under `⋯` → `ExportDrawer` | Put Export as a second primary button beside New |
|
|
119
|
-
| Use `ExxatProductLogo` for product marks | Substitute a logo.dev raster for the product mark |
|
|
120
|
-
| Keep subtitle to **one line**; truncate long meta | Stack two meta lines below the title |
|
|
121
|
-
| Show keyboard shortcuts via `Kbd` in tooltips on primary/overflow | Hard-code shortcut hints in the visible button label |
|
|
122
|
-
|
|
123
|
-
## 9. References
|
|
124
|
-
|
|
125
|
-
- [`apps/web/docs/data-views-pattern.md`](../data-views-pattern.md) — `PageHeader` in context of `ListPageTemplate`
|
|
126
|
-
- [`apps/web/docs/collaboration-access-pattern.md`](../collaboration-access-pattern.md) — `variant="collaboration"`
|
|
127
|
-
- [`apps/web/docs/library-hub-header-pattern.md`](../library-hub-header-pattern.md) — folder-scoped header
|
|
128
|
-
- [`.cursor/rules/exxat-collaboration-access.mdc`](../../../.cursor/rules/exxat-collaboration-access.mdc)
|
|
129
|
-
- [`.cursor/rules/exxat-mono-ids.mdc`](../../../.cursor/rules/exxat-mono-ids.mdc)
|
|
130
|
-
- [`apps/web/AGENTS.md`](../../AGENTS.md) §4.7, §6.2, §9
|