From 3edfa924478c07e55ee126861cb0b6ca0181b83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Tue, 15 Sep 2026 17:39:45 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9D=20record=20list-card,=20sh?= =?UTF-8?q?ared=20picker=20and=20empty-state=20conventions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/skills/ui-conventions/SKILL.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.claude/skills/ui-conventions/SKILL.md b/.claude/skills/ui-conventions/SKILL.md index ab21ffa..e67d9df 100644 --- a/.claude/skills/ui-conventions/SKILL.md +++ b/.claude/skills/ui-conventions/SKILL.md @@ -50,6 +50,13 @@ Active project reference docs (read the relevant one before changing that area): - Table-page headers fold into the `DataTable` title/description/actions area; do not render a separate `PageHeader` above table-primary pages. - Search inputs, dropdown filters, filter buttons, and column controls share the same compact height/radius (`h-8 rounded-lg`, `text-[13px]`) unless the shared component changes the standard globally. Page-header primary actions may stay `h-9`. - Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may. +- Every list page uses one card: optional `Tabs` above, then `section.data-shell` holding the `DataTable` (its `title`/`description`/`actions`). Card-grid lists use `DataSection` from `src/components/ui/data-section.tsx` for the same header. No standalone `PageHeader`/`h1` above a list, and no row counts in descriptions (the pager shows them). + +## Shared pickers & empty states + +- Dropdowns: `Select` (drop-in for ``, `type="date"` input (use `DatePicker`) or an ad-hoc search `Input` (use `DataTableSearch`). +- Confirmations and text prompts go through `ConfirmDialog`; never `window.confirm/prompt/alert`. +- Empty states: `EmptyState` (full panel, `kind` picks the unDraw scene) or `EmptyInline` (cards/charts). Scenes live in `src/assets/illustrations/` (license + slugs in its README); pixel glyphs come from `PixelIcon` (pixelarticons, MIT). ## Date/time & attendance