@nadicodeai/ui 12.1.234 → 12.1.235
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/dist/components/action-menu.d.ts +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/catalog-row.js +1 -8
- package/dist/components/collection-page.d.ts +2 -2
- package/dist/components/collection-page.js +2 -2
- package/dist/components/data-table.d.ts +5 -12
- package/dist/components/data-table.d.ts.map +1 -1
- package/dist/components/data-table.js +6 -6
- package/dist/components/record-list.d.ts +18 -15
- package/dist/components/record-list.d.ts.map +1 -1
- package/dist/components/record-list.js +17 -13
- package/dist/internal/record-grid.d.ts.map +1 -1
- package/dist/internal/record-grid.js +4 -3
- package/dist/showcase/usage.generated.js +12 -12
- package/package.json +2 -2
|
@@ -143,7 +143,7 @@ export type ActionContextMenuProps = Omit<RecordMenu, "commands"> & {
|
|
|
143
143
|
*
|
|
144
144
|
* @family Menus
|
|
145
145
|
* @when "ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity." (https://vercel.com/geist/context-menu)
|
|
146
|
-
* Ours: drawn by `
|
|
146
|
+
* Ours: drawn by `RecordList`'s rows and by `RecordContextMenu`, with every command the record's visible buttons and three dots hold; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).
|
|
147
147
|
* @instead "For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu)
|
|
148
148
|
* Ours: a product gives a card's right-click to `RecordContextMenu`, with the same commands it gives `RecordCommands` (nadicode decision).
|
|
149
149
|
* @behaviour "Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu)
|
|
@@ -50,7 +50,7 @@ export function ActionMenu({ label, record, commands, size, triggerId, open, onO
|
|
|
50
50
|
*
|
|
51
51
|
* @family Menus
|
|
52
52
|
* @when "ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity." (https://vercel.com/geist/context-menu)
|
|
53
|
-
* Ours: drawn by `
|
|
53
|
+
* Ours: drawn by `RecordList`'s rows and by `RecordContextMenu`, with every command the record's visible buttons and three dots hold; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).
|
|
54
54
|
* @instead "For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu)
|
|
55
55
|
* Ours: a product gives a card's right-click to `RecordContextMenu`, with the same commands it gives `RecordCommands` (nadicode decision).
|
|
56
56
|
* @behaviour "Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu)
|
|
@@ -102,14 +102,7 @@ export function useCatalogRows(kind, records, rowOf, words, extra) {
|
|
|
102
102
|
size: 176,
|
|
103
103
|
wraps: true,
|
|
104
104
|
};
|
|
105
|
-
const
|
|
106
|
-
let facts = [];
|
|
107
|
-
if (first)
|
|
108
|
-
facts = [first];
|
|
109
|
-
if (first && second)
|
|
110
|
-
facts = [first, second];
|
|
111
|
-
if (first && second && third)
|
|
112
|
-
facts = [first, second, third];
|
|
105
|
+
const facts = [categoryFact, originFact, ...own].filter((fact) => fact !== undefined);
|
|
113
106
|
return {
|
|
114
107
|
list: { name, facts },
|
|
115
108
|
filters,
|
|
@@ -50,10 +50,10 @@ export type CollectionPageProps<TRecord extends RowData> = RecordListWithout<TRe
|
|
|
50
50
|
*
|
|
51
51
|
* @family Compositions
|
|
52
52
|
* @when “Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity)
|
|
53
|
-
* Ours: a list of
|
|
53
|
+
* Ours: a list of things a person finds one of, opens and acts on: Customers, Member accounts, Agents, Skills, Apps, MCP servers, Mailboxes, domains, environment variables (a row with an `editor` expands into its form). Its rows are a `RecordList`'s, so a row has a mark, a name over a muted line and the facts a person reads to choose one, each naming itself, with no heading row (owner, 2026-11-08).
|
|
54
54
|
* Ours: Customers and Partners use the full-width list, with actionable attention above the toolbar when present. Business summaries belong on Dashboard and Analytics. A rail remains available for context that belongs to the collection itself, such as the selected Library hub.
|
|
55
55
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
56
|
-
* Ours:
|
|
56
|
+
* Ours: rows that are not things a person opens but lines of figures read under their headings, such as usage per product or invoices, are a `DataTable` under the page's own title and toolbar (owner, 2026-11-08). A list inside another page's section is a `RecordList` with its `heading`.
|
|
57
57
|
* @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as the product decides it: where no title is drawn over the page, as under `ProductShell`, whose path names the page and whose title stays unseen, the page's actions end its search row, after the filters, whatever they do (owner, 2026-11-08); where a title is drawn (`PageActionsHostProvider`'s `titled`, as a `PageFrame` with its `title`, or this composition's own `title`), every action stands on the title's row. The product says which, never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The actions are drawn from `actions` in `PageActions`' order. The primary stays where they stand whether the collection is empty or not, filled; a first use repeats it as the filled button in its card. The page's actions stay where they stand whichever tab is shown, each tab's collection given the same `actions`; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The toolbar is the kit's `FilterToolbar`, the one `DataTable` draws too, so its order, its waiting line and its search's wait for the page to be interactive are the same over every list (nadicode decision). The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.
|
|
58
58
|
* @words “For multi-facet filters use the plural template `No {Items} Match Your Filters` and suggest widening or clearing.” (https://vercel.com/geist/empty-state)
|
|
59
59
|
* Ours: every string is the product's, in sentence case. The title names the collection in the plural ("Agents"); the search says what it finds ("Find a skill"); no match says what found nothing and offers to clear it ("Clear search", "Clear filters").
|
|
@@ -13,10 +13,10 @@ import { CollectionRailColumn } from "../internal/collection-rail.js";
|
|
|
13
13
|
*
|
|
14
14
|
* @family Compositions
|
|
15
15
|
* @when “Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity)
|
|
16
|
-
* Ours: a list of
|
|
16
|
+
* Ours: a list of things a person finds one of, opens and acts on: Customers, Member accounts, Agents, Skills, Apps, MCP servers, Mailboxes, domains, environment variables (a row with an `editor` expands into its form). Its rows are a `RecordList`'s, so a row has a mark, a name over a muted line and the facts a person reads to choose one, each naming itself, with no heading row (owner, 2026-11-08).
|
|
17
17
|
* Ours: Customers and Partners use the full-width list, with actionable attention above the toolbar when present. Business summaries belong on Dashboard and Analytics. A rail remains available for context that belongs to the collection itself, such as the selected Library hub.
|
|
18
18
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
19
|
-
* Ours:
|
|
19
|
+
* Ours: rows that are not things a person opens but lines of figures read under their headings, such as usage per product or invoices, are a `DataTable` under the page's own title and toolbar (owner, 2026-11-08). A list inside another page's section is a `RecordList` with its `heading`.
|
|
20
20
|
* @behaviour The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as the product decides it: where no title is drawn over the page, as under `ProductShell`, whose path names the page and whose title stays unseen, the page's actions end its search row, after the filters, whatever they do (owner, 2026-11-08); where a title is drawn (`PageActionsHostProvider`'s `titled`, as a `PageFrame` with its `title`, or this composition's own `title`), every action stands on the title's row. The product says which, never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The actions are drawn from `actions` in `PageActions`' order. The primary stays where they stand whether the collection is empty or not, filled; a first use repeats it as the filled button in its card. The page's actions stay where they stand whichever tab is shown, each tab's collection given the same `actions`; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The toolbar is the kit's `FilterToolbar`, the one `DataTable` draws too, so its order, its waiting line and its search's wait for the page to be interactive are the same over every list (nadicode decision). The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.
|
|
21
21
|
* @words “For multi-facet filters use the plural template `No {Items} Match Your Filters` and suggest widening or clearing.” (https://vercel.com/geist/empty-state)
|
|
22
22
|
* Ours: every string is the product's, in sentence case. The title names the collection in the plural ("Agents"); the search says what it finds ("Find a skill"); no match says what found nothing and offers to clear it ("Clear search", "Clear filters").
|
|
@@ -114,13 +114,6 @@ type DataTableBaseProps<TData extends RowData> = {
|
|
|
114
114
|
group?: (row: TData) => string;
|
|
115
115
|
/** A fixed comparison inside an existing detail Card keeps that one frame. */
|
|
116
116
|
embedded?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* `entities` draws records a person opens as `RecordList` draws its rows, for a registry whose
|
|
119
|
-
* columns `RecordList` cannot hold: aligned columns from 48rem of
|
|
120
|
-
* card with no heading row, one card per record below, 72 px rows, the identity column a
|
|
121
|
-
* `RecordIdentity`.
|
|
122
|
-
*/
|
|
123
|
-
rows?: "figures" | "entities";
|
|
124
117
|
summary?: {
|
|
125
118
|
label: string;
|
|
126
119
|
value: React.ReactNode;
|
|
@@ -211,16 +204,16 @@ export declare function columnMenuLabel<TData extends RowData, TValue extends Ce
|
|
|
211
204
|
columnDef: Pick<DataTableColumn<TData, TValue>["columnDef"], "header">;
|
|
212
205
|
}): string;
|
|
213
206
|
/**
|
|
214
|
-
*
|
|
215
|
-
* across a row, inside their `TableCard`.
|
|
207
|
+
* Lines of figures read and compared: the same figures on every row, read down a column under
|
|
208
|
+
* its heading and across a row, inside their `TableCard`.
|
|
216
209
|
*
|
|
217
210
|
* @family Data
|
|
218
211
|
* @when “Use `<Table>` for tabular data where rows share the same shape and at least one column is sortable or comparable across rows.” (https://vercel.com/geist/table)
|
|
219
|
-
* Ours:
|
|
212
|
+
* Ours: if each row is a thing you can open, it is a list; if each row is a line of numbers you read, it is a table (owner, 2026-11-08). This is the table: its rows are not things a person opens but lines of figures read and compared, such as usage per product, the amounts in a statement or invoices. It has a visible heading row, because a number means nothing without its label, and at least one column is a figure.
|
|
220
213
|
* @instead “For a row of descriptive content paired with a single action (membership row, integration row), use `Entity` instead.” (https://vercel.com/geist/table)
|
|
221
214
|
* “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table)
|
|
222
|
-
* Ours: Geist's `Entity` is a `RecordList` row
|
|
223
|
-
* @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows.
|
|
215
|
+
* Ours: Geist's `Entity` is a `RecordList` row: a row that is one thing with a name a person opens, such as a deployment, a Customer, a Member account or an Agent, is a `RecordList`'s, however many facts it shows (owner, 2026-11-08). Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.
|
|
216
|
+
* @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows. A bounded page's paging stands in the card's footer strip at its trailing edge, opposite `footer`, which stands at the leading edge: its `status` ("Page 2 of 7") before Previous and Next, which are the product's router links (`previousLink`, `nextLink`) when each page is its own address, and buttons otherwise; the one that leads nowhere stays, disabled. A note about the whole table is `footerNote`, in a strip of its own under that one: one muted line, an optional *Learn more* after it at the left and one secondary action at the right; it is the one place a table says a sentence. Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
|
|
224
217
|
* “When the underlying list is empty (filter cleared, never created), render `Empty State` outside the table rather than an empty `<Table.Body>`.” (https://vercel.com/geist/table)
|
|
225
218
|
* “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
|
|
226
219
|
* Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/components/data-table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EAGnB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,eAA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EAAE,UAAU,CAAC,GAAG,IAAI,CAAC;CAC3E,CAAC;AAqDF,wBAAgB,eAAe,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM,SAAS,QAAQ,GAAG,QAAQ,EACvF,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG;IACnD,SAAS,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC;CACxE,GACA,MAAM,CAGR;AAuDD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,SAAS,CAAC,KAAK,SAAS,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,qBAE5E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,OAAO,EACP,MAAM,GACP,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACxC,qBAwCA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,SAAS,OAAO,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,qBAEhF"}
|
|
@@ -110,16 +110,16 @@ function GroupHeading({ children, span }) {
|
|
|
110
110
|
return (_jsx("tbody", { "data-slot": "table-group-heading", children: _jsx(TableRow, { children: _jsx(TableHead, { className: "text-foreground last:text-left", colSpan: span, scope: "colgroup", children: children }) }) }));
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
114
|
-
* across a row, inside their `TableCard`.
|
|
113
|
+
* Lines of figures read and compared: the same figures on every row, read down a column under
|
|
114
|
+
* its heading and across a row, inside their `TableCard`.
|
|
115
115
|
*
|
|
116
116
|
* @family Data
|
|
117
117
|
* @when “Use `<Table>` for tabular data where rows share the same shape and at least one column is sortable or comparable across rows.” (https://vercel.com/geist/table)
|
|
118
|
-
* Ours:
|
|
118
|
+
* Ours: if each row is a thing you can open, it is a list; if each row is a line of numbers you read, it is a table (owner, 2026-11-08). This is the table: its rows are not things a person opens but lines of figures read and compared, such as usage per product, the amounts in a statement or invoices. It has a visible heading row, because a number means nothing without its label, and at least one column is a figure.
|
|
119
119
|
* @instead “For a row of descriptive content paired with a single action (membership row, integration row), use `Entity` instead.” (https://vercel.com/geist/table)
|
|
120
120
|
* “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table)
|
|
121
|
-
* Ours: Geist's `Entity` is a `RecordList` row
|
|
122
|
-
* @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows.
|
|
121
|
+
* Ours: Geist's `Entity` is a `RecordList` row: a row that is one thing with a name a person opens, such as a deployment, a Customer, a Member account or an Agent, is a `RecordList`'s, however many facts it shows (owner, 2026-11-08). Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.
|
|
122
|
+
* @behaviour Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows. A bounded page's paging stands in the card's footer strip at its trailing edge, opposite `footer`, which stands at the leading edge: its `status` ("Page 2 of 7") before Previous and Next, which are the product's router links (`previousLink`, `nextLink`) when each page is its own address, and buttons otherwise; the one that leads nowhere stays, disabled. A note about the whole table is `footerNote`, in a strip of its own under that one: one muted line, an optional *Learn more* after it at the left and one secondary action at the right; it is the one place a table says a sentence. Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries.
|
|
123
123
|
* “When the underlying list is empty (filter cleared, never created), render `Empty State` outside the table rather than an empty `<Table.Body>`.” (https://vercel.com/geist/table)
|
|
124
124
|
* “After an async filter change, wrap the region in `aria-live="polite"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state)
|
|
125
125
|
* Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced.
|
|
@@ -137,7 +137,7 @@ function GroupHeading({ children, span }) {
|
|
|
137
137
|
* @access A native table named by `tableLabel`, which is required; `th scope="col"`; the record's name is the row's one link. A sorted column's heading carries `aria-sort`. `DataTableSkeleton` is busy and its placeholder table is hidden from assistive technology. Ours: a missing value is a hidden "—" with screen-reader text, never blank.
|
|
138
138
|
*/
|
|
139
139
|
export function DataTable(props) {
|
|
140
|
-
return _jsx(RecordsTable, { ...props, kind:
|
|
140
|
+
return _jsx(RecordsTable, { ...props, kind: "figures" });
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* What stands in a DataTable's place while its page reads the rows: its card, a heading row and
|
|
@@ -2,6 +2,7 @@ import type { RowData } from "@tanstack/react-table";
|
|
|
2
2
|
import { type ReactElement, type ReactNode } from "react";
|
|
3
3
|
import { type DataTableRowLinkProps } from "./data-table.js";
|
|
4
4
|
import { type EmptyStateKind } from "./empty-state.js";
|
|
5
|
+
import { type NoticeBannerProps } from "./notice-banner.js";
|
|
5
6
|
import type { IdentityMarkProps } from "./identity-mark.js";
|
|
6
7
|
import { type CardActions, type PageCommand } from "./page-actions.js";
|
|
7
8
|
import { type ProgressChecklistProps } from "./progress-checklist.js";
|
|
@@ -49,8 +50,8 @@ export type RecordFact<TRecord> = RecordFactColumn & ({
|
|
|
49
50
|
of: (record: TRecord) => TableReading | null | undefined;
|
|
50
51
|
missing: string;
|
|
51
52
|
});
|
|
52
|
-
/**
|
|
53
|
-
export type RecordFacts<TRecord> = readonly
|
|
53
|
+
/** As many as the person reads to choose a record: a row is a list's however many facts it lines up. */
|
|
54
|
+
export type RecordFacts<TRecord> = readonly RecordFact<TRecord>[];
|
|
54
55
|
export type RecordStatus = {
|
|
55
56
|
label: string;
|
|
56
57
|
tone: StatusBadgeTone;
|
|
@@ -133,7 +134,7 @@ export type RecordListProps<TRecord extends RowData> = RecordCommandsOf<TRecord>
|
|
|
133
134
|
/** Already searched, filtered and ordered; undefined while they load. */
|
|
134
135
|
records: readonly TRecord[] | undefined;
|
|
135
136
|
getId: (record: TRecord) => string;
|
|
136
|
-
/** What the row is called: required, because every row is
|
|
137
|
+
/** What the row is called: required, because every row is one thing with a mark, a name and a line under it. */
|
|
137
138
|
name: (record: TRecord) => RecordName;
|
|
138
139
|
/**
|
|
139
140
|
* `true`: the name is the record's whole text, such as a memory: it wraps in full. `"detail"`:
|
|
@@ -215,44 +216,46 @@ export type RecordListProps<TRecord extends RowData> = RecordCommandsOf<TRecord>
|
|
|
215
216
|
state?: (record: TRecord) => RowMessage | null;
|
|
216
217
|
/**
|
|
217
218
|
* The least width of the commands column in pixels, whatever its rows draw: two lists on one
|
|
218
|
-
* page give the same, so their columns line up although only one of them has a button.
|
|
219
|
+
* page give the same, so their columns line up although only one of them has a button. Given,
|
|
220
|
+
* the column stands, empty, on a list whose records have no command.
|
|
219
221
|
*/
|
|
220
222
|
commandsSize?: number;
|
|
221
223
|
};
|
|
222
224
|
export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey> = RecordListProps<TRecord> extends infer TProps ? TProps extends unknown ? Omit<TProps, Key> : never : never;
|
|
223
225
|
/**
|
|
224
226
|
* What stands in a RecordList's place while its page reads the records: its card and `rows` of the
|
|
225
|
-
* loading rows the list draws itself, with no words
|
|
227
|
+
* loading rows the list draws itself, with no words, under the page's `notice` when a read of the
|
|
228
|
+
* records is failing, as `CollectionPage` places it.
|
|
226
229
|
*/
|
|
227
|
-
export declare function RecordListSkeleton({ rows }: {
|
|
230
|
+
export declare function RecordListSkeleton({ rows, notice, }: {
|
|
228
231
|
rows?: number;
|
|
232
|
+
notice?: NoticeBannerProps | undefined;
|
|
229
233
|
}): import("react").JSX.Element;
|
|
230
234
|
/**
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* last.
|
|
235
|
+
* Things a person opens, one line each on one resting card: the identity mark and name over
|
|
236
|
+
* what it is, then its attributes as data, one per column: its facts, its state, when it
|
|
237
|
+
* happened, the one command the row is waiting on, and the three dots last.
|
|
235
238
|
*
|
|
236
239
|
* @family Compositions
|
|
237
240
|
* @when “Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity)
|
|
238
|
-
* Ours: the
|
|
241
|
+
* Ours: if each row is a thing you can open, it is a list; if each row is a line of numbers you read, it is a table (owner, 2026-11-08). This is the list: every row is one thing with a name, such as a deployment, a domain, a project, a Customer, a Member account, an Agent, a Skill or a mailbox, which a person opens by its row or acts on with its buttons. It lines up as many of the thing's facts in columns as the person reads to choose one (status, branch, time) and stays a list however many that is: a list of Member accounts with six facts is a list, never a table of figures (owner, 2026-11-08). A list inside another page: an Overview's exceptions, an object page's "Needs attention". A page whose whole job is the list is a `CollectionPage`, which draws this. Values edited in place (a domain, an environment variable) are the same rows with an `editor`: the row expands into its form.
|
|
239
242
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
240
243
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
241
|
-
* Ours: Geist's `Table` is a `DataTable`, for
|
|
242
|
-
* @behaviour One bordered card, a 1 px rule between records and none after the last.
|
|
244
|
+
* Ours: Geist's `Table` is a `DataTable`, for rows that are not things a person opens but lines of figures read and compared under a visible heading row: usage per product, the amounts in a statement, invoices (owner, 2026-11-08). A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item` (nadicode decision).
|
|
245
|
+
* @behaviour One bordered card, a 1 px rule between records and none after the last. No list draws a heading row a person sees: its column names are read by screen readers only, so every value on a row names itself (owner, 2026-11-08). From 48rem of card, one width whatever the columns, the records stand in aligned columns, and on a narrower card each record is a card of its own: its first line holds the mark and the name with the controls beside them (the `select` box before, the `checklist` ring and the commands after), the ring and the commands moving under the name when beside it the name would have less than 10rem, and its facts, state and time wrap under it, each whole, a fact the record lacks left out. The columns stand left to right: the `select` box, the identity (the rest of the row, never less than 10rem), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring and the commands; the browser lays them out, the sized ones at their `size` while the row has room and narrower, each value ending in an ellipsis, when it has not, and the ring and the commands as wide as their widest row, never narrower than a `commandsSize` the caller gives. A row is 72 px. A `checklist` puts the record's `ProgressChecklist` ring just before its commands; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. With `layout="line"`, the facts and the status share one muted line, joined by a middle dot, in one column. The product gives each record's `commands`, everything it can do now, and the list draws them: every command in the three dots, the record's name heading them and a destructive one last, after a divider, in the error colour; the one marked `main`, which the row is waiting on (a request to approve, a connection to finish), stands as a 32 px outline button before the three dots (owner, 2026-11-08). A command a record cannot run now stays, disabled, with a lock at its end and its reason read by a screen reader, never a line of text (owner, 2026-11-09); only permission leaves one out (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). Every column of the records' attributes stands on every row, so the values line up: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; the record's state stands on every row too, *Ready* included (owner, 2026-11-08); the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the list gives `commandsSize`. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands. With `open` the whole row is one target and takes the `accent` hover, with no chevron; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`, drawn above the box and never inside it: its title, the one sentence under it, and at the title row's trailing edge its `actions`, such as its Add command and a muted count; the box holds the rows alone (owner, 2026-11-09). The heading's actions act on the list as a whole, adding a record; a command on one record is that record's, in its own row, never in the heading's menu (owner, 2026-11-09). A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging. A long list a person reads in part, such as their signed-in sessions, takes `footer.more`: its first `shows` records, then an outline button at the footer's end that shows the rest and, once they show, fewer again, its `aria-expanded` saying which; the page never draws that button under the list itself (nadicode decision). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"); the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge, a `Tag` and a failed action's message.
|
|
243
246
|
* “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state)
|
|
244
247
|
* Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision).
|
|
245
248
|
* “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
|
|
246
249
|
* Ours: the right column holds the three dots and, before them, at most the one button the row is waiting on, as the commands rule above draws them (owner, 2026-11-08).
|
|
247
250
|
* “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
|
|
248
|
-
* Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision). A page that reads the records before it can draw the list, such as a route's fallback, shows `RecordListSkeleton`: the same card and the same loading rows, as many as the fold the list fills (`rows`), with no words (nadicode decision).
|
|
251
|
+
* Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision). A page that reads the records before it can draw the list, such as a route's fallback, shows `RecordListSkeleton`: the same card and the same loading rows, as many as the fold the list fills (`rows`), with no words, under the page's `notice` while a read of the records is failing, as `CollectionPage` places it (nadicode decision).
|
|
249
252
|
* @words “Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity)
|
|
250
253
|
* Ours: the name is the record's own and the labels around it are sentence case, not Title Case (nadicode decision).
|
|
251
254
|
* “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity)
|
|
252
255
|
* Ours: a command reads the same on every row that has it, sentence case ("Cancel invite"), and the record's own name goes in its `accessibleName`, never in the label (nadicode decision).
|
|
253
256
|
* “Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table)
|
|
254
257
|
* “Render — in cells where a value is unknown or not applicable. Don’t substitute N/A, null, or an empty string.” (https://vercel.com/geist/table)
|
|
255
|
-
* Ours: a list is the records' attributes shown as data, not written as text. Its columns are the
|
|
258
|
+
* Ours: a list is the records' attributes shown as data, not written as text. Its columns are the attributes a person compares across the records to decide what to do with one (a deployment's status, environment, commit, branch and time), chosen from that job, never from what there is to say about a record. A cell holds the value alone, in the same shape down its column, and says what it is with no heading over it: a kind ("Customer"), a count with its unit ("3 keys"), a time or a date in its sentence ("Updated 3h ago", "Auto-renews Aug 3"), a figure after the word that names it, with its meter where it has one ("Included 92% of $200.00", "Extra €15.00"), a state as its badge, or a name after the mark of its kind (`icon`, a `Tag`'s `mark`, a plan's emblem). Never a sentence that restates the column ("Through Partner Alpha", "Joins as a company"), and never a word in place of a missing value ("Not available", "No Partner"): `of` returns nothing and the list draws the dash, and `nadicodeai/record-fact-no-stand-in` refuses the word given by `??`, a presence check or a guard clause. A known zero stays the count ("0 Agents") and a complete report that found nothing keeps its word ("None"), as `TableValue` says; a word that names a kind of its own, a glossary term such as "Direct customer", is a value. A fact's `label`, the status's and the time's name their columns for assistive technology ("Partner", "State", "Asked"). A condition of the record that waits on someone, outside its state, is the `badge` beside its name. The name's line under it is the one place a record is described in words, and the time keeps its verb's sentence ("Updated 3h ago"), as the approved canvas rules. Every string is the product's: `label` names the list, a time's `phrase` writes its sentence, `missing` is what a screen reader hears behind a dash, `moreLabel` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the record's state in `StatusBadge`'s words, never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds the paging, never how many records the list holds or a help sentence: the rows end at the last record, and guidance a step needs lives in that step (owner, 2026-11-09).
|
|
256
259
|
* @access “Wrap the loading region in `aria-busy="true"` and announce completion with `aria-live="polite"` on the destination container, not the skeleton itself.” (https://vercel.com/geist/skeleton)
|
|
257
260
|
* Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column's is `commandsHeader`, and empty without one, since its controls name themselves, never the list's name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu's first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision). `RecordListSkeleton`, which a page shows while it reads the records, is busy and carries no words.
|
|
258
261
|
* “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-list.d.ts","sourceRoot":"","sources":["../../src/components/record-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAKf,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,WAAW,EAEjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAqB,KAAK,sBAAsB,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kB,CAAC,EACjC,IAAQ,EACR,MAAM,GACP,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACxC,+BAiBA;AA2JD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,UAAU,CAAC,OAAO,SAAS,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,sCA4FlF"}
|
|
@@ -7,6 +7,7 @@ import { Button } from "./button.js";
|
|
|
7
7
|
import { Checkbox } from "./checkbox.js";
|
|
8
8
|
import { EntityTable, } from "./data-table.js";
|
|
9
9
|
import { EmptyState } from "./empty-state.js";
|
|
10
|
+
import { NoticeBanner } from "./notice-banner.js";
|
|
10
11
|
import { CardActionsRow, PageCommandButton, } from "./page-actions.js";
|
|
11
12
|
import { ProgressChecklist } from "./progress-checklist.js";
|
|
12
13
|
import { RowCommandButtons, rowCommandShape } from "./record-commands.js";
|
|
@@ -131,10 +132,14 @@ function LoadingRecords({ label }) {
|
|
|
131
132
|
}
|
|
132
133
|
/**
|
|
133
134
|
* What stands in a RecordList's place while its page reads the records: its card and `rows` of the
|
|
134
|
-
* loading rows the list draws itself, with no words
|
|
135
|
+
* loading rows the list draws itself, with no words, under the page's `notice` when a read of the
|
|
136
|
+
* records is failing, as `CollectionPage` places it.
|
|
135
137
|
*/
|
|
136
|
-
export function RecordListSkeleton({ rows = 3 }) {
|
|
137
|
-
|
|
138
|
+
export function RecordListSkeleton({ rows = 3, notice, }) {
|
|
139
|
+
const skeleton = (_jsx("div", { "aria-busy": "true", className: "min-w-0", "data-slot": "record-list-skeleton", children: _jsx(TableCard, { children: _jsx("div", { className: "divide-y divide-border", children: _jsx(LoadingRows, { rows: rows }) }) }) }));
|
|
140
|
+
if (!notice)
|
|
141
|
+
return skeleton;
|
|
142
|
+
return (_jsxs("div", { className: "grid min-w-0 gap-4", children: [_jsx(NoticeBanner, { ...notice }), skeleton] }));
|
|
138
143
|
}
|
|
139
144
|
function Pages({ pages }) {
|
|
140
145
|
const side = (label, onClick) => ({
|
|
@@ -216,7 +221,7 @@ function recordColumns(props) {
|
|
|
216
221
|
}
|
|
217
222
|
const { commands, state } = props;
|
|
218
223
|
const someRecordHasCommands = props.records.some((record) => (commands?.(record).length ?? 0) > 0 || Boolean(state?.(record)));
|
|
219
|
-
if (props.
|
|
224
|
+
if (someRecordHasCommands || props.commandsSize !== undefined) {
|
|
220
225
|
const commandsColumn = {
|
|
221
226
|
id: "commands",
|
|
222
227
|
header: { hidden: props.commandsHeader ?? "" },
|
|
@@ -252,31 +257,30 @@ function RecordRows(props) {
|
|
|
252
257
|
return props.open ? (_jsx(EntityTable, { ...table, renderRowLink: props.open.renderLink, rowHref: props.open.href, rowLabel: props.open.label })) : (_jsx(EntityTable, { ...table }));
|
|
253
258
|
}
|
|
254
259
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
* last.
|
|
260
|
+
* Things a person opens, one line each on one resting card: the identity mark and name over
|
|
261
|
+
* what it is, then its attributes as data, one per column: its facts, its state, when it
|
|
262
|
+
* happened, the one command the row is waiting on, and the three dots last.
|
|
259
263
|
*
|
|
260
264
|
* @family Compositions
|
|
261
265
|
* @when “Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity)
|
|
262
|
-
* Ours: the
|
|
266
|
+
* Ours: if each row is a thing you can open, it is a list; if each row is a line of numbers you read, it is a table (owner, 2026-11-08). This is the list: every row is one thing with a name, such as a deployment, a domain, a project, a Customer, a Member account, an Agent, a Skill or a mailbox, which a person opens by its row or acts on with its buttons. It lines up as many of the thing's facts in columns as the person reads to choose one (status, branch, time) and stays a list however many that is: a list of Member accounts with six facts is a list, never a table of figures (owner, 2026-11-08). A list inside another page: an Overview's exceptions, an object page's "Needs attention". A page whose whole job is the list is a `CollectionPage`, which draws this. Values edited in place (a domain, an environment variable) are the same rows with an `editor`: the row expands into its form.
|
|
263
267
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
264
268
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
265
|
-
* Ours: Geist's `Table` is a `DataTable`, for
|
|
266
|
-
* @behaviour One bordered card, a 1 px rule between records and none after the last.
|
|
269
|
+
* Ours: Geist's `Table` is a `DataTable`, for rows that are not things a person opens but lines of figures read and compared under a visible heading row: usage per product, the amounts in a statement, invoices (owner, 2026-11-08). A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item` (nadicode decision).
|
|
270
|
+
* @behaviour One bordered card, a 1 px rule between records and none after the last. No list draws a heading row a person sees: its column names are read by screen readers only, so every value on a row names itself (owner, 2026-11-08). From 48rem of card, one width whatever the columns, the records stand in aligned columns, and on a narrower card each record is a card of its own: its first line holds the mark and the name with the controls beside them (the `select` box before, the `checklist` ring and the commands after), the ring and the commands moving under the name when beside it the name would have less than 10rem, and its facts, state and time wrap under it, each whole, a fact the record lacks left out. The columns stand left to right: the `select` box, the identity (the rest of the row, never less than 10rem), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring and the commands; the browser lays them out, the sized ones at their `size` while the row has room and narrower, each value ending in an ellipsis, when it has not, and the ring and the commands as wide as their widest row, never narrower than a `commandsSize` the caller gives. A row is 72 px. A `checklist` puts the record's `ProgressChecklist` ring just before its commands; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. With `layout="line"`, the facts and the status share one muted line, joined by a middle dot, in one column. The product gives each record's `commands`, everything it can do now, and the list draws them: every command in the three dots, the record's name heading them and a destructive one last, after a divider, in the error colour; the one marked `main`, which the row is waiting on (a request to approve, a connection to finish), stands as a 32 px outline button before the three dots (owner, 2026-11-08). A command a record cannot run now stays, disabled, with a lock at its end and its reason read by a screen reader, never a line of text (owner, 2026-11-09); only permission leaves one out (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). Every column of the records' attributes stands on every row, so the values line up: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; the record's state stands on every row too, *Ready* included (owner, 2026-11-08); the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the list gives `commandsSize`. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands. With `open` the whole row is one target and takes the `accent` hover, with no chevron; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`, drawn above the box and never inside it: its title, the one sentence under it, and at the title row's trailing edge its `actions`, such as its Add command and a muted count; the box holds the rows alone (owner, 2026-11-09). The heading's actions act on the list as a whole, adding a record; a command on one record is that record's, in its own row, never in the heading's menu (owner, 2026-11-09). A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging. A long list a person reads in part, such as their signed-in sessions, takes `footer.more`: its first `shows` records, then an outline button at the footer's end that shows the rest and, once they show, fewer again, its `aria-expanded` saying which; the page never draws that button under the list itself (nadicode decision). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"); the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge, a `Tag` and a failed action's message.
|
|
267
271
|
* “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state)
|
|
268
272
|
* Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision).
|
|
269
273
|
* “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity)
|
|
270
274
|
* Ours: the right column holds the three dots and, before them, at most the one button the row is waiting on, as the commands rule above draws them (owner, 2026-11-08).
|
|
271
275
|
* “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity)
|
|
272
|
-
* Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision). A page that reads the records before it can draw the list, such as a route's fallback, shows `RecordListSkeleton`: the same card and the same loading rows, as many as the fold the list fills (`rows`), with no words (nadicode decision).
|
|
276
|
+
* Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision). A page that reads the records before it can draw the list, such as a route's fallback, shows `RecordListSkeleton`: the same card and the same loading rows, as many as the fold the list fills (`rows`), with no words, under the page's `notice` while a read of the records is failing, as `CollectionPage` places it (nadicode decision).
|
|
273
277
|
* @words “Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity)
|
|
274
278
|
* Ours: the name is the record's own and the labels around it are sentence case, not Title Case (nadicode decision).
|
|
275
279
|
* “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity)
|
|
276
280
|
* Ours: a command reads the same on every row that has it, sentence case ("Cancel invite"), and the record's own name goes in its `accessibleName`, never in the label (nadicode decision).
|
|
277
281
|
* “Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table)
|
|
278
282
|
* “Render — in cells where a value is unknown or not applicable. Don’t substitute N/A, null, or an empty string.” (https://vercel.com/geist/table)
|
|
279
|
-
* Ours: a list is the records' attributes shown as data, not written as text. Its columns are the
|
|
283
|
+
* Ours: a list is the records' attributes shown as data, not written as text. Its columns are the attributes a person compares across the records to decide what to do with one (a deployment's status, environment, commit, branch and time), chosen from that job, never from what there is to say about a record. A cell holds the value alone, in the same shape down its column, and says what it is with no heading over it: a kind ("Customer"), a count with its unit ("3 keys"), a time or a date in its sentence ("Updated 3h ago", "Auto-renews Aug 3"), a figure after the word that names it, with its meter where it has one ("Included 92% of $200.00", "Extra €15.00"), a state as its badge, or a name after the mark of its kind (`icon`, a `Tag`'s `mark`, a plan's emblem). Never a sentence that restates the column ("Through Partner Alpha", "Joins as a company"), and never a word in place of a missing value ("Not available", "No Partner"): `of` returns nothing and the list draws the dash, and `nadicodeai/record-fact-no-stand-in` refuses the word given by `??`, a presence check or a guard clause. A known zero stays the count ("0 Agents") and a complete report that found nothing keeps its word ("None"), as `TableValue` says; a word that names a kind of its own, a glossary term such as "Direct customer", is a value. A fact's `label`, the status's and the time's name their columns for assistive technology ("Partner", "State", "Asked"). A condition of the record that waits on someone, outside its state, is the `badge` beside its name. The name's line under it is the one place a record is described in words, and the time keeps its verb's sentence ("Updated 3h ago"), as the approved canvas rules. Every string is the product's: `label` names the list, a time's `phrase` writes its sentence, `missing` is what a screen reader hears behind a dash, `moreLabel` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the record's state in `StatusBadge`'s words, never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds the paging, never how many records the list holds or a help sentence: the rows end at the last record, and guidance a step needs lives in that step (owner, 2026-11-09).
|
|
280
284
|
* @access “Wrap the loading region in `aria-busy="true"` and announce completion with `aria-live="polite"` on the destination container, not the skeleton itself.” (https://vercel.com/geist/skeleton)
|
|
281
285
|
* Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column's is `commandsHeader`, and empty without one, since its controls name themselves, never the list's name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu's first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision). `RecordListSkeleton`, which a page shows while it reads the records, is busy and carries no words.
|
|
282
286
|
* “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-grid.d.ts","sourceRoot":"","sources":["../../src/internal/record-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,mGAAmG;AACnG,KAAK,oBAAoB,GACrB;IACE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,GACD,SAAS,CAAC;AAEd,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,mFAAmF;IACnF,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,EAAE,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,O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AE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,4FAA4F;IAC5F,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAeF,wGAAwG;AACxG,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC9B,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,GAAG,SAAS,CAelD;AAQD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,QAAQ,EACR,KAAK,EACL,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,qBAwBA;AASD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE;IACD,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IACjC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACjC,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,qBA2EhD;AAED,oGAAoG;AACpG,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAWjF"}
|
|
@@ -31,8 +31,9 @@ export function openRowOnClick(href) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
// From 48rem of card the records stand in aligned columns; on a narrower card each record is a
|
|
34
|
-
// card of its own: its first line holds the name and the controls beside it,
|
|
35
|
-
//
|
|
34
|
+
// card of its own: its first line holds the name and the controls beside it, the controls moving
|
|
35
|
+
// under the name when beside it the name would have less than 10rem, and the other values wrap
|
|
36
|
+
// under it.
|
|
36
37
|
const WIDE_GRID = "@3xl/list:col-span-full @3xl/list:grid @3xl/list:grid-cols-subgrid";
|
|
37
38
|
/**
|
|
38
39
|
* Records a person opens, in aligned columns on a wide card and one card per record on a narrow
|
|
@@ -49,7 +50,7 @@ export function RecordGrid({ columns, headings, label, children, }) {
|
|
|
49
50
|
}
|
|
50
51
|
const PLACE = {
|
|
51
52
|
lead: "order-1 shrink-0",
|
|
52
|
-
identity: "order-2 grow basis-0",
|
|
53
|
+
identity: "order-2 grow basis-0 min-w-40 @3xl/list:min-w-0",
|
|
53
54
|
trail: "order-3 shrink-0",
|
|
54
55
|
fact: "order-5 max-w-full",
|
|
55
56
|
};
|
|
@@ -74,8 +74,8 @@ export const USAGE = [
|
|
|
74
74
|
module: "collection-page",
|
|
75
75
|
family: "Compositions",
|
|
76
76
|
summary: "A page whose job is a list of records: its title with the page's actions on one row, or, where no title is drawn, its actions at the end of its search row; its sibling collections, one toolbar, then one line per record.",
|
|
77
|
-
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: a list of
|
|
78
|
-
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) Ours:
|
|
77
|
+
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: a list of things a person finds one of, opens and acts on: Customers, Member accounts, Agents, Skills, Apps, MCP servers, Mailboxes, domains, environment variables (a row with an `editor` expands into its form). Its rows are a `RecordList`'s, so a row has a mark, a name over a muted line and the facts a person reads to choose one, each naming itself, with no heading row (owner, 2026-11-08). Ours: Customers and Partners use the full-width list, with actionable attention above the toolbar when present. Business summaries belong on Dashboard and Analytics. A rail remains available for context that belongs to the collection itself, such as the selected Library hub.",
|
|
78
|
+
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) Ours: rows that are not things a person opens but lines of figures read under their headings, such as usage per product or invoices, are a `DataTable` under the page's own title and toolbar (owner, 2026-11-08). A list inside another page's section is a `RecordList` with its `heading`.",
|
|
79
79
|
behaviour: "The page supplies its records and their commands as data, never its own toolbar, table, rows or menus. Title or none, as the product decides it: where no title is drawn over the page, as under `ProductShell`, whose path names the page and whose title stays unseen, the page's actions end its search row, after the filters, whatever they do (owner, 2026-11-08); where a title is drawn (`PageActionsHostProvider`'s `titled`, as a `PageFrame` with its `title`, or this composition's own `title`), every action stands on the title's row. The product says which, never what the page shows at the moment, so an issue appearing above the list never moves the actions. With a `rail`, the toolbar spans the page and under it stand two columns from 1280 px: the rail, 300 px, then the records' card, its top level with the rail's first title and named by the page's title alone, never a second heading, and the records' rows are `RecordList`'s `line` rows; below 1280 px the records come first and the rail follows them. Each rail card has its title above it at 16 px, an optional 44 px muted summary row with its one outline button at its end (a button never stands in a row of its own, so a card with an `action` has a `summary`), then its items: a figure is one 36 px row, its title and its number at the trailing edge; a record is its 24 px mark, a title over a muted line that wraps to a second before it is cut, and a figure or a status at its end, the whole item opening its record; a card with no items draws its `empty` inside it as one 44 px row like an item. While the rail's read is in flight a card's `items` are undefined and it holds its place with three placeholder lines, so the two columns stand from the first frame; a rail whose read `failed` is one card saying so, and the records beside it stay. Under the title sits only the `description`, when the collection's kind needs explaining; otherwise nothing. The page's title names the collection once, and the records' card never adds a header that only describes it. The actions are drawn from `actions` in `PageActions`' order. The primary stays where they stand whether the collection is empty or not, filled; a first use repeats it as the filled button in its card. The page's actions stay where they stand whichever tab is shown, each tab's collection given the same `actions`; the toolbar belongs to the tab shown, and switching clears its search and page. One toolbar holds the search, which grows, then the filters, then the sort; it shows while there are records, a search or filter is set, or a facet hides records while unset (`hidesWhileUnset`, as the archived companies), and is glass only where the rows scroll under it. While a new search, filter or sort is read, the toolbar is busy and, after a second, shows the one waiting line, while the last rows stay. The toolbar is the kit's `FilterToolbar`, the one `DataTable` draws too, so its order, its waiting line and its search's wait for the page to be interactive are the same over every list (nadicode decision). The rows, their states and their loading are the RecordList's; no match is offered only in those same cases, so records a facet hides by default are always one choice away.",
|
|
80
80
|
words: '“For multi-facet filters use the plural template `No {Items} Match Your Filters` and suggest widening or clearing.” (https://vercel.com/geist/empty-state) Ours: every string is the product\'s, in sentence case. The title names the collection in the plural ("Agents"); the search says what it finds ("Find a skill"); no match says what found nothing and offers to clear it ("Clear search", "Clear filters").',
|
|
81
81
|
access: "“After an async filter change, wrap the region in `aria-live=\"polite\"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state) Ours: the rows' region is the RecordList's, which holds it. The title is the page's h1 when the composition draws it. The toolbar is named by `label` and busy while `pending`; the rows are the RecordList's table, named by `label`.",
|
|
@@ -293,11 +293,11 @@ export const USAGE = [
|
|
|
293
293
|
name: "RecordList",
|
|
294
294
|
module: "record-list",
|
|
295
295
|
family: "Compositions",
|
|
296
|
-
summary: "
|
|
297
|
-
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: the
|
|
298
|
-
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity) Ours: Geist's `Table` is a `DataTable`, for
|
|
299
|
-
behaviour: "One bordered card, a 1 px rule between records and none after the last.
|
|
300
|
-
words: '“Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity) Ours: the name is the record\'s own and the labels around it are sentence case, not Title Case (nadicode decision). “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity) Ours: a command reads the same on every row that has it, sentence case ("Cancel invite"), and the record\'s own name goes in its `accessibleName`, never in the label (nadicode decision). “Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table) “Render — in cells where a value is unknown or not applicable. Don’t substitute N/A, null, or an empty string.” (https://vercel.com/geist/table) Ours: a list is the records\' attributes shown as data, not written as text. Its columns are the
|
|
296
|
+
summary: "Things a person opens, one line each on one resting card: the identity mark and name over what it is, then its attributes as data, one per column: its facts, its state, when it happened, the one command the row is waiting on, and the three dots last.",
|
|
297
|
+
when: "“Use `<Entity>` for a row of descriptive content paired with one or two controls (member rows, integration rows, domain rows).” (https://vercel.com/geist/entity) Ours: if each row is a thing you can open, it is a list; if each row is a line of numbers you read, it is a table (owner, 2026-11-08). This is the list: every row is one thing with a name, such as a deployment, a domain, a project, a Customer, a Member account, an Agent, a Skill or a mailbox, which a person opens by its row or acts on with its buttons. It lines up as many of the thing's facts in columns as the person reads to choose one (status, branch, time) and stays a list however many that is: a list of Member accounts with six facts is a list, never a table of figures (owner, 2026-11-08). A list inside another page: an Overview's exceptions, an object page's \"Needs attention\". A page whose whole job is the list is a `CollectionPage`, which draws this. Values edited in place (a domain, an environment variable) are the same rows with an `editor`: the row expands into its form.",
|
|
298
|
+
instead: "“For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity) “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity) Ours: Geist's `Table` is a `DataTable`, for rows that are not things a person opens but lines of figures read and compared under a visible heading row: usage per product, the amounts in a statement, invoices (owner, 2026-11-08). A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item` (nadicode decision).",
|
|
299
|
+
behaviour: "One bordered card, a 1 px rule between records and none after the last. No list draws a heading row a person sees: its column names are read by screen readers only, so every value on a row names itself (owner, 2026-11-08). From 48rem of card, one width whatever the columns, the records stand in aligned columns, and on a narrower card each record is a card of its own: its first line holds the mark and the name with the controls beside them (the `select` box before, the `checklist` ring and the commands after), the ring and the commands moving under the name when beside it the name would have less than 10rem, and its facts, state and time wrap under it, each whole, a fact the record lacks left out. The columns stand left to right: the `select` box, the identity (the rest of the row, never less than 10rem), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring and the commands; the browser lays them out, the sized ones at their `size` while the row has room and narrower, each value ending in an ellipsis, when it has not, and the ring and the commands as wide as their widest row, never narrower than a `commandsSize` the caller gives. A row is 72 px. A `checklist` puts the record's `ProgressChecklist` ring just before its commands; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps=\"detail\"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. With `layout=\"line\"`, the facts and the status share one muted line, joined by a middle dot, in one column. The product gives each record's `commands`, everything it can do now, and the list draws them: every command in the three dots, the record's name heading them and a destructive one last, after a divider, in the error colour; the one marked `main`, which the row is waiting on (a request to approve, a connection to finish), stands as a 32 px outline button before the three dots (owner, 2026-11-08). A command a record cannot run now stays, disabled, with a lock at its end and its reason read by a screen reader, never a line of text (owner, 2026-11-09); only permission leaves one out (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). Every column of the records' attributes stands on every row, so the values line up: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; the record's state stands on every row too, *Ready* included (owner, 2026-11-08); the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the list gives `commandsSize`. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands. With `open` the whole row is one target and takes the `accent` hover, with no chevron; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`, drawn above the box and never inside it: its title, the one sentence under it, and at the title row's trailing edge its `actions`, such as its Add command and a muted count; the box holds the rows alone (owner, 2026-11-09). The heading's actions act on the list as a whole, adding a record; a command on one record is that record's, in its own row, never in the heading's menu (owner, 2026-11-09). A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging. A long list a person reads in part, such as their signed-in sessions, takes `footer.more`: its first `shows` records, then an outline button at the footer's end that shows the rest and, once they show, fewer again, its `aria-expanded` saying which; the page never draws that button under the list itself (nadicode decision). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs (\"2 selected\") and their one command stands at the footer's end as an outline button (\"Invite 2\"); the record's own commands stay on its row, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge, a `Tag` and a failed action's message. “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state) Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision). “The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.” (https://vercel.com/geist/entity) Ours: the right column holds the three dots and, before them, at most the one button the row is waiting on, as the commands rule above draws them (owner, 2026-11-08). “Render the Skeleton variant (`entity-with-skeleton`) during load instead of an empty row, and swap to real content once data resolves.” (https://vercel.com/geist/entity) Ours: three still skeleton rows hold the place, in a region that announces what replaces them; then the first that holds: the failed read, no match, the empty state, the rows (nadicode decision). A page that reads the records before it can draw the list, such as a route's fallback, shows `RecordListSkeleton`: the same card and the same loading rows, as many as the fold the list fills (`rows`), with no words, under the page's `notice` while a read of the records is failing, as `CollectionPage` places it (nadicode decision).",
|
|
300
|
+
words: '“Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity) Ours: the name is the record\'s own and the labels around it are sentence case, not Title Case (nadicode decision). “Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen.” (https://vercel.com/geist/entity) Ours: a command reads the same on every row that has it, sentence case ("Cancel invite"), and the record\'s own name goes in its `accessibleName`, never in the label (nadicode decision). “Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table) “Render — in cells where a value is unknown or not applicable. Don’t substitute N/A, null, or an empty string.” (https://vercel.com/geist/table) Ours: a list is the records\' attributes shown as data, not written as text. Its columns are the attributes a person compares across the records to decide what to do with one (a deployment\'s status, environment, commit, branch and time), chosen from that job, never from what there is to say about a record. A cell holds the value alone, in the same shape down its column, and says what it is with no heading over it: a kind ("Customer"), a count with its unit ("3 keys"), a time or a date in its sentence ("Updated 3h ago", "Auto-renews Aug 3"), a figure after the word that names it, with its meter where it has one ("Included 92% of $200.00", "Extra €15.00"), a state as its badge, or a name after the mark of its kind (`icon`, a `Tag`\'s `mark`, a plan\'s emblem). Never a sentence that restates the column ("Through Partner Alpha", "Joins as a company"), and never a word in place of a missing value ("Not available", "No Partner"): `of` returns nothing and the list draws the dash, and `nadicodeai/record-fact-no-stand-in` refuses the word given by `??`, a presence check or a guard clause. A known zero stays the count ("0 Agents") and a complete report that found nothing keeps its word ("None"), as `TableValue` says; a word that names a kind of its own, a glossary term such as "Direct customer", is a value. A fact\'s `label`, the status\'s and the time\'s name their columns for assistive technology ("Partner", "State", "Asked"). A condition of the record that waits on someone, outside its state, is the `badge` beside its name. The name\'s line under it is the one place a record is described in words, and the time keeps its verb\'s sentence ("Updated 3h ago"), as the approved canvas rules. Every string is the product\'s: `label` names the list, a time\'s `phrase` writes its sentence, `missing` is what a screen reader hears behind a dash, `moreLabel` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the record\'s state in `StatusBadge`\'s words, never the state a row\'s own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds the paging, never how many records the list holds or a help sentence: the rows end at the last record, and guidance a step needs lives in that step (owner, 2026-11-09).',
|
|
301
301
|
access: '“Wrap the loading region in `aria-busy="true"` and announce completion with `aria-live="polite"` on the destination container, not the skeleton itself.” (https://vercel.com/geist/skeleton) Ours: the loading rows sit in one `SkeletonRegion` that is busy while they stand and announces what replaces them. A table named by `label`, its column headings read by assistive technology only; the commands column\'s is `commandsHeader`, and empty without one, since its controls name themselves, never the list\'s name a second time. The row link carries `open.label`; the three dots carry `moreLabel`, and the menu\'s first line names the record; a right-click on a row opens every command of the record in one menu. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them (nadicode decision). `RecordListSkeleton`, which a page shows while it reads the records, is busy and carries no words. “For multi-select rows, the leading `Checkbox` carries `aria-label="Select {entity name}"` so the row is selectable without relying on the visual label.” (https://vercel.com/geist/entity) Ours: each box is named by `select.label`, which reads "Select {record}" (nadicode decision).',
|
|
302
302
|
},
|
|
303
303
|
{
|
|
@@ -1338,10 +1338,10 @@ export const USAGE = [
|
|
|
1338
1338
|
name: "DataTable",
|
|
1339
1339
|
module: "data-table",
|
|
1340
1340
|
family: "Data",
|
|
1341
|
-
summary: "
|
|
1342
|
-
when: "“Use `<Table>` for tabular data where rows share the same shape and at least one column is sortable or comparable across rows.” (https://vercel.com/geist/table) Ours:
|
|
1343
|
-
instead:
|
|
1344
|
-
behaviour: "Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows.
|
|
1341
|
+
summary: "Lines of figures read and compared: the same figures on every row, read down a column under its heading and across a row, inside their `TableCard`.",
|
|
1342
|
+
when: "“Use `<Table>` for tabular data where rows share the same shape and at least one column is sortable or comparable across rows.” (https://vercel.com/geist/table) Ours: if each row is a thing you can open, it is a list; if each row is a line of numbers you read, it is a table (owner, 2026-11-08). This is the table: its rows are not things a person opens but lines of figures read and compared, such as usage per product, the amounts in a statement or invoices. It has a visible heading row, because a number means nothing without its label, and at least one column is a figure.",
|
|
1343
|
+
instead: "“For a row of descriptive content paired with a single action (membership row, integration row), use `Entity` instead.” (https://vercel.com/geist/table) “For a key/value metadata block on a detail page, use `Description`, not a two-column table.” (https://vercel.com/geist/table) Ours: Geist's `Entity` is a `RecordList` row: a row that is one thing with a name a person opens, such as a deployment, a Customer, a Member account or an Agent, is a `RecordList`'s, however many facts it shows (owner, 2026-11-08). Its `Description` is `ObjectFacts`. A list on a page of its own is a `CollectionPage`. A descriptive list is `ItemGroup`.",
|
|
1344
|
+
behaviour: "Every column has a `header`; a column without one does not compile. The headings are always visible, medium weight in the cells' body grey, 48 px high, with 12 px of room under the labels and then the rule, so the first row starts at the rule like every other; rows are 40 px. Each column is at least its definition's `size`, in pixels, and as wide as its longest value, whose words stay on one line unless the column `wraps`; a column marked `identifier` holds ids or paths and is cut in the middle. The last column trails unless it `wraps` or is `centered`; a `centered` column's heading and values sit in the middle of it. Records are divided by a 1 px rule, none after the last. The first and last columns stand in from the card's edges by the card's spacing, so the first lines up with the title. Records of several kinds stand in one table under `group` headings: a heading row that spans the columns, in ink, medium text, 36 px high with the same rule under it, one per group in the order the groups first appear, never a second table; a heading is the group's name and carries no figure of its own. A row that opens a record takes `accent` on hover, and any row on focus within and while its menu is open; a row that opens nothing never reacts to hover. A selected row takes `muted`; headers and footers never highlight and carry no fill. On a card narrower than its columns a table of figures keeps every column and scrolls sideways inside its card, as Geist's and shadcn's tables do (owner, 2026-11-08); a document's table, such as a legal page's, takes the `wraps` option on its columns, so their words wrap and the row grows. A bounded page's paging stands in the card's footer strip at its trailing edge, opposite `footer`, which stands at the leading edge: its `status` (\"Page 2 of 7\") before Previous and Next, which are the product's router links (`previousLink`, `nextLink`) when each page is its own address, and buttons otherwise; the one that leads nowhere stays, disabled. A note about the whole table is `footerNote`, in a strip of its own under that one: one muted line, an optional *Learn more* after it at the left and one secondary action at the right; it is the one place a table says a sentence. Colour is neutral: headings and cells in the body grey, no hue, except a status badge or a tone the cell itself carries. “When the underlying list is empty (filter cleared, never created), render `Empty State` outside the table rather than an empty `<Table.Body>`.” (https://vercel.com/geist/table) “After an async filter change, wrap the region in `aria-live=\"polite\"` so screen readers announce the new state.” (https://vercel.com/geist/empty-state) Ours: empty sits outside the body, in a polite live region that stays in place so a filter that empties the table is announced. Ours: a table that is the page's job under its title takes the page's `notice`, one `NoticeBanner` above its toolbar, 12 px over it, as a collection page places it under the title: a refresh of the rows that failed, with Try again (nadicode decision). Ours: the table draws its own toolbar, a `FilterToolbar`: from `toolbar` for a registry whose search, filters and sort the product keeps (the URL), or else its own local search; the column menu and `toolbarActions` end it. A product never draws a table's toolbar itself. While the page reads the rows, `DataTableSkeleton` stands in the table's place: the same card, a heading row and the given number of rows at the table's heights, the columns after the second leaving it below 640 px, with no words (nadicode decision). “Sortable column headers are buttons. The visible label stays Title Case; the sort-direction arrow is decorative and the button announces the next sort state to assistive tech.” (https://vercel.com/geist/table) Ours: the order has one owner, the app's `sorting`, which the URL holds and a `CollectionSort` above the list sets, so no heading is a button and every page of a paged list follows one order. “Apply `tabular-nums` (or Geist Mono) to numeric columns so digits align across rows for comparison.” (https://vercel.com/geist/table) Ours: a numeric column trails in tabular figures.",
|
|
1345
1345
|
words: '“Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table) “Render `—` in cells where a value is unknown or not applicable. Don’t substitute `N/A`, `null`, or an empty string.” (https://vercel.com/geist/table) “Use the canonical short relative-time form in cells (`2m ago`, `5h ago`); switch to `Mar 14, 2026` past 7 days. See `Relative Time Card`.” (https://vercel.com/geist/table) “Pagination labels are `Previous` and `Next`. Page-count copy reads `Page 2 of 7` or `21–40 of 142` with an en-dash inside the range.” (https://vercel.com/geist/table) Ours: headings are sentence case nouns with their unit, "Cost (€)", "Tokens", where Geist writes Title Case. The words of a time and of Previous and Next are the product\'s catalogue, in both languages. The footer is a count or the paging, never a help sentence: guidance a step needs lives in that step. Totals and paging each stand in a footer zone of their own, the paging at the trailing edge; the summary row is a labelled total. Italian headings run a third longer and never wrap.',
|
|
1346
1346
|
access: 'A native table named by `tableLabel`, which is required; `th scope="col"`; the record\'s name is the row\'s one link. A sorted column\'s heading carries `aria-sort`. `DataTableSkeleton` is busy and its placeholder table is hidden from assistive technology. Ours: a missing value is a hidden "—" with screen-reader text, never blank.',
|
|
1347
1347
|
},
|
|
@@ -1746,7 +1746,7 @@ export const USAGE = [
|
|
|
1746
1746
|
module: "action-menu",
|
|
1747
1747
|
family: "Menus",
|
|
1748
1748
|
summary: "A record's menu opened from its row by a right-click: the mirror of its visible commands.",
|
|
1749
|
-
when: "\"ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity.\" (https://vercel.com/geist/context-menu) Ours: drawn by `
|
|
1749
|
+
when: "\"ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity.\" (https://vercel.com/geist/context-menu) Ours: drawn by `RecordList`'s rows and by `RecordContextMenu`, with every command the record's visible buttons and three dots hold; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).",
|
|
1750
1750
|
instead: '"For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu) Ours: a product gives a card\'s right-click to `RecordContextMenu`, with the same commands it gives `RecordCommands` (nadicode decision).',
|
|
1751
1751
|
behaviour: '"Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: every command of the record, in the order of its buttons and dots, with the dropdown\'s surface and rows, destructive last after a divider, a destructive one opening its confirmation; with no command the row renders alone and keeps its element (nadicode decision).',
|
|
1752
1752
|
words: '"Items follow the same rules as `Menu`: Title Case `Verb + Noun` (`Open in New Tab`, `Copy URL`, `Delete Deployment`). Bare verbs are wrong." (https://vercel.com/geist/context-menu) Ours: sentence case, "Copy address"; a command reached two ways reads the same both ways (nadicode decision).',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.235",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@headless-tree/react": "1.8.0",
|
|
83
83
|
"@iconify-icons/logos": "^2.0.3",
|
|
84
84
|
"@iconify/react": "^6.0.2",
|
|
85
|
-
"@nadicodeai/design-system": "12.1.
|
|
85
|
+
"@nadicodeai/design-system": "12.1.235",
|
|
86
86
|
"@tanstack/react-table": "^9.3.1",
|
|
87
87
|
"@vgpu/wgsl": "0.6.0",
|
|
88
88
|
"class-variance-authority": "^0.7.1",
|