@nadicodeai/ui 12.1.206 → 12.1.208

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/components/account-menu.d.ts.map +1 -1
  2. package/dist/components/account-menu.js +7 -5
  3. package/dist/components/action-menu.d.ts +119 -23
  4. package/dist/components/action-menu.d.ts.map +1 -1
  5. package/dist/components/action-menu.js +52 -24
  6. package/dist/components/catalog-entry.d.ts +3 -2
  7. package/dist/components/catalog-entry.d.ts.map +1 -1
  8. package/dist/components/chart-date-range-control.js +1 -1
  9. package/dist/components/collection-page.d.ts +6 -3
  10. package/dist/components/collection-page.d.ts.map +1 -1
  11. package/dist/components/collection-page.js +4 -3
  12. package/dist/components/company-card.js +1 -1
  13. package/dist/components/confirm-dialog.d.ts +37 -10
  14. package/dist/components/confirm-dialog.d.ts.map +1 -1
  15. package/dist/components/confirm-dialog.js +63 -11
  16. package/dist/components/data-table.d.ts +2 -2
  17. package/dist/components/data-table.d.ts.map +1 -1
  18. package/dist/components/data-table.js +7 -2
  19. package/dist/components/input-group.d.ts +1 -1
  20. package/dist/components/kpi-card.d.ts +2 -2
  21. package/dist/components/kpi-card.d.ts.map +1 -1
  22. package/dist/components/kpi-card.js +6 -3
  23. package/dist/components/message-notice.js +1 -1
  24. package/dist/components/notice-banner.d.ts +1 -1
  25. package/dist/components/notice-banner.js +1 -1
  26. package/dist/components/object-page.d.ts +4 -1
  27. package/dist/components/object-page.d.ts.map +1 -1
  28. package/dist/components/object-page.js +3 -2
  29. package/dist/components/overview-page.d.ts +4 -1
  30. package/dist/components/overview-page.d.ts.map +1 -1
  31. package/dist/components/overview-page.js +3 -2
  32. package/dist/components/page-actions.d.ts +12 -61
  33. package/dist/components/page-actions.d.ts.map +1 -1
  34. package/dist/components/page-actions.js +27 -35
  35. package/dist/components/record-commands.d.ts +71 -0
  36. package/dist/components/record-commands.d.ts.map +1 -0
  37. package/dist/components/record-commands.js +92 -0
  38. package/dist/components/record-list.d.ts +32 -64
  39. package/dist/components/record-list.d.ts.map +1 -1
  40. package/dist/components/record-list.js +53 -61
  41. package/dist/components/record-sheet.d.ts +3 -3
  42. package/dist/components/record-sheet.d.ts.map +1 -1
  43. package/dist/components/settings-page.d.ts +5 -2
  44. package/dist/components/settings-page.d.ts.map +1 -1
  45. package/dist/components/settings-page.js +4 -3
  46. package/dist/internal/catalog-list.d.ts.map +1 -1
  47. package/dist/internal/catalog-list.js +2 -4
  48. package/dist/internal/command-runner.d.ts +13 -0
  49. package/dist/internal/command-runner.d.ts.map +1 -0
  50. package/dist/internal/command-runner.js +67 -0
  51. package/dist/internal/page-command-button.d.ts +83 -0
  52. package/dist/internal/page-command-button.d.ts.map +1 -0
  53. package/dist/internal/page-command-button.js +47 -0
  54. package/dist/internal/record-menu-items.d.ts +7 -5
  55. package/dist/internal/record-menu-items.d.ts.map +1 -1
  56. package/dist/internal/record-menu-items.js +1 -9
  57. package/dist/showcase/samples.d.ts +9 -2
  58. package/dist/showcase/samples.d.ts.map +1 -1
  59. package/dist/showcase/samples.js +15 -1
  60. package/dist/showcase/specimens/actions.d.ts +2 -0
  61. package/dist/showcase/specimens/actions.d.ts.map +1 -1
  62. package/dist/showcase/specimens/actions.js +4 -1
  63. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  64. package/dist/showcase/specimens/compositions.js +17 -14
  65. package/dist/showcase/specimens/index.d.ts +2 -0
  66. package/dist/showcase/specimens/index.d.ts.map +1 -1
  67. package/dist/showcase/specimens/menus.d.ts.map +1 -1
  68. package/dist/showcase/specimens/menus.js +4 -3
  69. package/dist/showcase/usage.generated.d.ts +1 -1
  70. package/dist/showcase/usage.generated.d.ts.map +1 -1
  71. package/dist/showcase/usage.generated.js +52 -30
  72. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
1
  import type { RowData } from "@tanstack/react-table";
2
2
  import { type ReactElement, type ReactNode } from "react";
3
- import { type MenuCommand } from "./action-menu.js";
4
3
  import { type DataTableRowLinkProps } from "./data-table.js";
5
4
  import { type EmptyStateKind } from "./empty-state.js";
6
5
  import type { IdentityMarkProps } from "./identity-mark.js";
7
- import { type CardActions, type PageCommand, type PageCommandAction } from "./page-actions.js";
6
+ import { type CardActions, type PageCommand } from "./page-actions.js";
8
7
  import { type ProgressChecklistProps } from "./progress-checklist.js";
8
+ import { type RowCommand } from "./record-commands.js";
9
9
  import { type StatusBadgeTone } from "./status-badge.js";
10
10
  import { type TableReading } from "./table-value.js";
11
11
  import type { CollectionNote } from "../internal/collection-note.js";
12
12
  import { type RowMessage } from "../internal/row-message.js";
13
- export type { RowMessage };
13
+ export type { RowMessage, RowCommand };
14
14
  export type RecordName = {
15
15
  /** One line, ending in an ellipsis and whole in its title, unless the list `wraps` it. */
16
16
  name: string;
@@ -53,12 +53,6 @@ export type RecordStatus = {
53
53
  label: string;
54
54
  tone: StatusBadgeTone;
55
55
  };
56
- /**
57
- * A row's button as the list names it: the face from `commands`, the action and name from the row.
58
- * A product that draws the same command outside a list, such as a lone Connect button, builds it
59
- * with this, so the button reads the same in both places.
60
- */
61
- export declare function rowButton<TCommand extends string>(faces: Readonly<Record<TCommand, RecordRowCommandFace>>, row: RecordRowCommand<TCommand>): PageCommand;
62
56
  export type RecordTimeColumn<TRecord> = {
63
57
  label: string;
64
58
  of: (record: TRecord) => Date | number | string | null | undefined;
@@ -104,47 +98,26 @@ export type RecordListFooter = {
104
98
  /** One muted line about the whole list, with Learn more and one secondary action, in a strip of its own under the count and the paging. */
105
99
  note?: CollectionNote;
106
100
  };
107
- /** One kind of row button, named once for the whole list, so every row that does the job draws it alike. */
108
- export type RecordRowCommandFace = {
109
- label: string;
110
- icon?: ReactElement | undefined;
111
- /** Opens outside the product: the arrow after the label. */
112
- external?: boolean | undefined;
113
- /** What the button says while a row's command runs, for a command that can be pending. */
114
- pendingLabel?: string | undefined;
115
- };
116
- /** One row's button: which of the list's `commands` it is, what it does, and the record it acts on. */
117
- export type RecordRowCommand<TCommand extends string = string> = PageCommandAction & {
118
- use: TCommand;
119
- /** Every row's button reads the same, so this names the row's record: "Let in ada@acme.it". */
120
- accessibleName: string;
121
- pending?: boolean | undefined;
122
- disabled?: boolean | undefined;
123
- /** The face is the list's, in `commands`: a row never writes its own. */
124
- label?: never;
125
- icon?: never;
126
- pendingLabel?: never;
127
- external?: never;
128
- };
129
- /** A list's visible row buttons: their kinds, named once, and each row's pick; both or neither. */
130
- export type RecordRowCommands<TRecord extends RowData, TCommand extends string> = {
131
- /**
132
- * The kinds of visible row button, each named once for the whole list ("Approve", "Add to an
133
- * Agent"), so every row that does a job draws the same button at the same width. A row never
134
- * writes its own label, and a kind with no running word keeps its label while it runs.
135
- */
136
- commands: Readonly<Record<TCommand, RecordRowCommandFace>>;
101
+ /**
102
+ * The records' commands: what each record can do now, in the product's order, and the name of its
103
+ * three dots; both or neither.
104
+ */
105
+ export type RecordCommandsOf<TRecord extends RowData> = {
137
106
  /**
138
- * The row's visible commands, one or two outline buttons of 32 px before the three dots: the
139
- * record's main job, picked from `commands`. Every other command, a lone one included, goes in
140
- * the menu. A compact row draws them under the name.
107
+ * Everything the record can do now. The list draws it (owner, 2026-11-06): none draws
108
+ * nothing, one is an outline button, two are two outline buttons with the `main` first, and
109
+ * three or more are the `main` as a button, or none, and the rest in the three dots, which
110
+ * therefore always hold two or more. A command the person may never run is left out; one
111
+ * that cannot run now stays, with its `disabledReason`.
141
112
  */
142
- command: (record: TRecord) => RecordRowCommand<NoInfer<TCommand>> | readonly [RecordRowCommand<NoInfer<TCommand>>, RecordRowCommand<NoInfer<TCommand>>] | null;
113
+ commands: (record: TRecord) => readonly RowCommand[];
114
+ /** The three dots' name, from the catalogue: "More for {record}". */
115
+ moreLabel: (record: TRecord) => string;
143
116
  } | {
144
117
  commands?: never;
145
- command?: never;
118
+ moreLabel?: never;
146
119
  };
147
- export type RecordListProps<TRecord extends RowData, TCommand extends string = never> = RecordRowCommands<TRecord, TCommand> & {
120
+ export type RecordListProps<TRecord extends RowData> = RecordCommandsOf<TRecord> & {
148
121
  /** Names the list for assistive technology: "Skills". */
149
122
  label: string;
150
123
  /** Already searched, filtered and ordered; undefined while they load. */
@@ -162,7 +135,7 @@ export type RecordListProps<TRecord extends RowData, TCommand extends string = n
162
135
  select?: RecordSelection<TRecord>;
163
136
  /**
164
137
  * `line` draws Vercel's project row: the facts and the status share one muted line between the
165
- * name and the time, and the row ends in the ring and the three dots even for one command; it
138
+ * name and the time, and the row ends in the ring and its commands; it
166
139
  * folds like every list, once the card is narrower than its columns; `columns`, the
167
140
  * default, gives each fact its own column. A `CollectionPage` with a `rail` sets it.
168
141
  */
@@ -186,11 +159,6 @@ export type RecordListProps<TRecord extends RowData, TCommand extends string = n
186
159
  label: string;
187
160
  of: (record: TRecord) => ProgressChecklistProps | null;
188
161
  };
189
- /** The row's three dots; its first line is `name(record).name`. */
190
- menu?: (record: TRecord) => {
191
- label: string;
192
- commands: readonly MenuCommand[];
193
- } | null;
194
162
  /**
195
163
  * Names the command column for assistive technology: "Actions". Left out, its heading is empty,
196
164
  * since each of its controls names itself, and never the list's name a second time.
@@ -244,7 +212,7 @@ export type RecordListProps<TRecord extends RowData, TCommand extends string = n
244
212
  */
245
213
  commandsSize?: number;
246
214
  };
247
- export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey, TCommand extends string = never> = RecordListProps<TRecord, TCommand> extends infer TProps ? TProps extends unknown ? Omit<TProps, Key> : never : never;
215
+ export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey> = RecordListProps<TRecord> extends infer TProps ? TProps extends unknown ? Omit<TProps, Key> : never : never;
248
216
  /**
249
217
  * Entity rows: objects a person opens or acts on, one line each on one resting card: the
250
218
  * identity mark and name over what it is, then its attributes as data, one per column: a few
@@ -253,28 +221,28 @@ export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey,
253
221
  *
254
222
  * @family Compositions
255
223
  * @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)
256
- * Ours: the records are things a person opens or acts on and that name themselves: projects, deployments, domains, members, integrations, Agents, Skills, mailboxes. 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. Of the three kinds of list, entity rows and rows edited in place are this; records compared across columns are a `DataTable`.
224
+ * Ours: the records are things a person opens or acts on and that name themselves: projects, deployments, domains, members, integrations, Agents, Skills, mailboxes. 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. Of the three kinds of list, entity rows and rows edited in place are this; records compared across columns are a `DataTable` (nadicode decision).
257
225
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
258
226
  * “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
259
- * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. 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`.
260
- * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; 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. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu keeps every command in the three dots, one alone included, as Vercel's Environment Variables and Members rows do: a button stands on a row only where the list names it as `command`, the record's main job, on every row that can do it, so one list never mixes rows ending in a button with rows ending in dots. The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. 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, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; 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`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. 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, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). 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"), so choosing never changes the page's title row; the record's own main job stays its row's `command`, 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 and a failed action's message.
227
+ * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. 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).
228
+ * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; 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. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. The product gives each record's `commands`, everything it can do now, and the list draws them: none draws nothing; one is an outline button; two are two outline buttons, the `main` first; three or more are the `main` as a button, or none, and the rest in the three dots, which therefore always hold two or more, never one (owner, 2026-11-06). The row's buttons and its three dots are 32 px, a button its label alone and a command's icon leading it only in the three dots, as Geist's row buttons read (nadicode decision). A command a record cannot run now stays, disabled, with its reason: in a button's tooltip, or in a line under its label in the three dots; only permission leaves one out (nadicode decision). A destructive command, visible, is an outline button named verb and noun, never red; in the three dots it comes last after a divider; either way it opens its confirmation, or runs at once with its Undo in a toast (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the buttons, a decorative icon for the record's mark, or a status on every row. 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, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; 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`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. 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, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). 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"), so choosing never changes the page's title row; 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 and a failed action's message.
261
229
  * “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)
262
- * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card.
230
+ * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision).
263
231
  * “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)
264
- * Ours: one or two row commands (outline buttons of 32 px) stand before the three dots (36 px), the Dots Menu.
232
+ * Ours: at most two buttons stand on a row, then the three dots, all 32 px, as the commands rule above draws them (owner, 2026-11-06).
265
233
  * “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)
266
- * 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.
234
+ * 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).
267
235
  * @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)
268
- * Ours: the name is the record's own and the labels around it are sentence case, not Title Case.
236
+ * Ours: the name is the record's own and the labels around it are sentence case, not Title Case (nadicode decision).
269
237
  * “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)
270
- * Ours: the list names each kind of row button once, in `commands`, so every row that does a job draws the same words at the same width; the record's own name goes in the row's `accessibleName`, never in the label.
238
+ * 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).
271
239
  * “Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table)
272
240
  * “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)
273
- * Ours: a list is the records' attributes shown as data, not written as text. Its columns are the few 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: a name, a kind ("Customer"), a count with its unit ("3 keys"), an amount; its position, the mark of its kind (`icon`, as Vercel marks a branch before "main") and its type say what it is, so the hidden heading needs no words in the cell. 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 are the nouns the headings would be ("Partner", "State", "Asked"). 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, the menu's `label` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the exception's word ("Needs attention", "Can't sign in"), never "Active" on every row, and never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds a count or the paging, never a help sentence: guidance a step needs lives in that step.
241
+ * Ours: a list is the records' attributes shown as data, not written as text. Its columns are the few 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: a name, a kind ("Customer"), a count with its unit ("3 keys"), an amount; its position, the mark of its kind (`icon`, as Vercel marks a branch before "main") and its type say what it is, so the hidden heading needs no words in the cell. 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 are the nouns the headings would be ("Partner", "State", "Asked"). 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 exception's word ("Needs attention", "Can't sign in"), never "Active" on every row, and never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds a count or the paging, never a help sentence: guidance a step needs lives in that step (nadicode decision).
274
242
  * @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)
275
- * 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 the menu's `label`, and the menu's first line names the record. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them.
243
+ * 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).
276
244
  * “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)
277
- * Ours: each box is named by `select.label`, which reads "Select {record}".
245
+ * Ours: each box is named by `select.label`, which reads "Select {record}" (nadicode decision).
278
246
  */
279
- export declare function RecordList<TRecord extends RowData, TCommand extends string = never>(props: RecordListProps<TRecord, TCommand>): import("react").JSX.Element | null;
247
+ export declare function RecordList<TRecord extends RowData>(props: RecordListProps<TRecord>): import("react").JSX.Element | null;
280
248
  //# sourceMappingURL=record-list.d.ts.map
@@ -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;AACrD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExE,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,EAChB,K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box.js";
6
6
  import { EntityTable, } from "./data-table.js";
7
7
  import { EmptyState } from "./empty-state.js";
8
- import { PageCommandButton, } from "./page-actions.js";
8
+ import { PageCommandButton } from "./page-actions.js";
9
9
  import { ProgressChecklist } from "./progress-checklist.js";
10
+ import { RowCommandButtons, rowCommandShape } from "./record-commands.js";
10
11
  import { RecordIdentity } from "./record-identity.js";
11
12
  import { RecordTime, recordDate } from "./record-time.js";
12
13
  import { Skeleton, SkeletonRegion } from "./skeleton.js";
13
14
  import { StatusBadge } from "./status-badge.js";
14
15
  import { TableCard } from "./table-card.js";
15
16
  import { TableValue } from "./table-value.js";
17
+ import { useCommandRunner } from "../internal/command-runner.js";
16
18
  import { RowMessageActions, RowMessageLine } from "../internal/row-message.js";
17
19
  import { CompactOnly, WideOnly } from "../internal/table-compact-line.js";
18
20
  const CELL_START = 8;
@@ -27,39 +29,13 @@ const BUTTON_ICON_SLOT = 20;
27
29
  const BUTTON_ICON_GAP = 3;
28
30
  const EXTERNAL_ARROW = 14;
29
31
  const WIDEST_LABEL_CHARACTER = 8;
30
- /**
31
- * A row's button as the list names it: the face from `commands`, the action and name from the row.
32
- * A product that draws the same command outside a list, such as a lone Connect button, builds it
33
- * with this, so the button reads the same in both places.
34
- */
35
- export function rowButton(faces, row) {
36
- const { use, accessibleName, pending, disabled, ...action } = row;
37
- const face = faces[use];
38
- // A kind with no running word of its own keeps its label while it runs.
39
- const pendingWord = pending
40
- ? { pending: true, pendingLabel: face.pendingLabel ?? face.label }
41
- : { pendingLabel: face.pendingLabel };
42
- return {
43
- ...action,
44
- ...pendingWord,
45
- label: face.label,
46
- icon: face.icon,
47
- external: face.external,
48
- accessibleName,
49
- disabled,
50
- };
51
- }
52
32
  function shownCommands(list, record) {
53
- const menu = list.menu?.(record);
54
- const commands = menu?.commands ?? [];
55
- const own = list.command?.(record);
56
- const ownButtons = own
57
- ? [own].flat().map((row) => rowButton(list.commands ?? {}, row))
58
- : [];
33
+ const name = list.name(record).name;
34
+ const { buttons, menu } = rowCommandShape(`RecordList "${name}"`, list.commands?.(record) ?? []);
59
35
  const state = list.state?.(record) ?? null;
60
- const dots = menu && commands.length > 0 ? menu : undefined;
36
+ const dots = menu && list.moreLabel ? { label: list.moreLabel(record), commands: menu } : undefined;
61
37
  const opens = Boolean(list.open?.href(record)) && !state;
62
- return { besideDots: ownButtons, underName: ownButtons, state, dots, opens };
38
+ return { buttons, state, dots, opens };
63
39
  }
64
40
  function buttonRoom(command, size) {
65
41
  const longerLabel = Math.max(command.label.length, command.pendingLabel?.length ?? 0);
@@ -69,9 +45,9 @@ function buttonRoom(command, size) {
69
45
  longerLabel * WIDEST_LABEL_CHARACTER);
70
46
  }
71
47
  function commandsRoom(list, record) {
72
- const { besideDots, state, dots } = shownCommands(list, record);
48
+ const { buttons, state, dots } = shownCommands(list, record);
73
49
  const widths = [
74
- ...besideDots.map((command) => buttonRoom(command, "sm")),
50
+ ...buttons.map((command) => buttonRoom({ ...command, icon: undefined }, "sm")),
75
51
  ...(state?.message.actions ?? []).map((action) => buttonRoom(action, "default")),
76
52
  ];
77
53
  if (widths.length === 0)
@@ -91,6 +67,18 @@ function commandsColumnSize(props) {
91
67
  const CHECKLIST_SIZE = 52;
92
68
  const SELECT_SIZE = 40;
93
69
  const ShownList = createContext(undefined);
70
+ /**
71
+ * The list's one runner for its rows' buttons: a row draws its buttons in its commands column
72
+ * when wide and under its name when compact, and a layout change swaps one for the other while a
73
+ * confirmation may be open and running, so the runner and its confirmation stand above both.
74
+ */
75
+ const RowCommandsArm = createContext(null);
76
+ function useRowCommandsArm() {
77
+ const arm = useContext(RowCommandsArm);
78
+ if (!arm)
79
+ throw new Error("A RecordList row's commands are drawn inside its RecordList.");
80
+ return arm;
81
+ }
94
82
  function useShownList() {
95
83
  // SAFETY: only RecordList provides ShownList, with its own props, around the rows of that same RecordList<TRecord>.
96
84
  // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- a React context cannot carry a type parameter; RecordList<TRecord> is ShownList's only provider and passes its own props.
@@ -112,10 +100,11 @@ function UnderName({ record }) {
112
100
  const list = useShownList();
113
101
  const state = list.state?.(record);
114
102
  const nextSteps = state?.message.actions.length ? state : null;
115
- const { underName } = shownCommands(list, record);
116
- if (!nextSteps && underName.length === 0)
103
+ const arm = useRowCommandsArm();
104
+ const { buttons } = shownCommands(list, record);
105
+ if (!nextSteps && buttons.length === 0)
117
106
  return null;
118
- return (_jsx(CompactOnly, { children: _jsxs("span", { className: "flex flex-wrap gap-2 pt-2 pl-12 whitespace-normal", "data-slot": "record-under-name", children: [nextSteps ? _jsx(RowMessageActions, { state: nextSteps }) : null, underName.map((command) => (_jsx(PageCommandButton, { command: command, size: "sm", variant: "outline" }, command.label)))] }) }));
107
+ return (_jsx(CompactOnly, { children: _jsxs("span", { className: "flex flex-wrap gap-2 pt-2 pl-12 whitespace-normal", "data-slot": "record-under-name", children: [nextSteps ? _jsx(RowMessageActions, { state: nextSteps }) : null, _jsx(RowCommandButtons, { arm: arm, commands: buttons })] }) }));
119
108
  }
120
109
  function SelectCell({ row }) {
121
110
  const select = useShownList().select;
@@ -176,12 +165,13 @@ function ChecklistCell({ row }) {
176
165
  }
177
166
  function CommandsCell({ row }) {
178
167
  const list = useShownList();
168
+ const arm = useRowCommandsArm();
179
169
  const record = row.original;
180
- const { besideDots, state, dots } = shownCommands(list, record);
181
- const menu = dots ? (_jsx(ActionMenu, { commands: dots.commands, label: dots.label, record: list.name(record).name })) : null;
182
- if (besideDots.length === 0 && !state && !menu)
170
+ const { buttons, state, dots } = shownCommands(list, record);
171
+ const menu = dots ? (_jsx(ActionMenu, { commands: dots.commands, label: dots.label, record: list.name(record).name, size: "row" })) : null;
172
+ if (buttons.length === 0 && !state && !menu)
183
173
  return null;
184
- return (_jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsxs(WideOnly, { children: [besideDots.length > 0 ? (_jsx("div", { className: "flex min-w-0 justify-end gap-2 *:max-w-full *:min-w-0 *:shrink [&>*>span:not([data-icon])]:truncate", children: besideDots.map((command) => (_jsx(PageCommandButton, { command: command, size: "sm", variant: "outline" }, command.label))) })) : null, state ? _jsx(RowMessageActions, { state: state }) : null] }), menu] }));
174
+ return (_jsxs("div", { className: "flex items-center justify-end gap-2", children: [_jsxs(WideOnly, { children: [buttons.length > 0 ? (_jsx("div", { className: "flex min-w-0 justify-end gap-2 *:max-w-full *:min-w-0 *:shrink [&>*>span:not([data-icon])]:truncate", children: _jsx(RowCommandButtons, { arm: arm, commands: buttons }) })) : null, state ? _jsx(RowMessageActions, { state: state }) : null] }), menu] }));
185
175
  }
186
176
  function LoadingRecords({ label }) {
187
177
  return (_jsx("div", { "aria-busy": "true", "aria-label": label, className: "divide-y divide-border", role: "status", children: Array.from({ length: 3 }, (_, index) => (_jsxs("div", { className: "flex items-center gap-4 px-2 py-4", children: [_jsx(Skeleton, { className: "shrink-0", height: 32, width: 32 }), _jsxs("div", { className: "grid min-w-0 gap-2", children: [_jsx(Skeleton, { className: "max-w-full", height: 16, width: 160 }), _jsx(Skeleton, { className: "max-w-full", height: 16, width: 224 })] }), _jsx(Skeleton, { className: "ml-auto", height: 16, width: 92 })] }, index))) }));
@@ -263,8 +253,8 @@ function recordColumns(props) {
263
253
  cell: ChecklistCell,
264
254
  });
265
255
  }
266
- const { menu, command, state } = props;
267
- const someRecordHasCommands = props.records.some((record) => menu?.(record) ?? command?.(record) ?? state?.(record));
256
+ const { commands, state } = props;
257
+ const someRecordHasCommands = props.records.some((record) => (commands?.(record).length ?? 0) > 0 || Boolean(state?.(record)));
268
258
  if (props.open || someRecordHasCommands) {
269
259
  columns.push({
270
260
  id: "commands",
@@ -277,14 +267,15 @@ function recordColumns(props) {
277
267
  }
278
268
  function RecordRows(props) {
279
269
  const columns = recordColumns(props);
280
- const menu = props.menu;
270
+ const { commands, moreLabel } = props;
281
271
  const table = {
282
272
  columns,
283
- rowMenu: menu
284
- ? (record) => {
285
- const shown = menu(record);
286
- return shown ? { ...shown, record: props.name(record).name } : null;
287
- }
273
+ rowMenu: commands && moreLabel
274
+ ? (record) => ({
275
+ label: moreLabel(record),
276
+ record: props.name(record).name,
277
+ commands: commands(record),
278
+ })
288
279
  : undefined,
289
280
  data: [...props.records],
290
281
  embedded: true,
@@ -306,31 +297,32 @@ function RecordRows(props) {
306
297
  *
307
298
  * @family Compositions
308
299
  * @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)
309
- * Ours: the records are things a person opens or acts on and that name themselves: projects, deployments, domains, members, integrations, Agents, Skills, mailboxes. 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. Of the three kinds of list, entity rows and rows edited in place are this; records compared across columns are a `DataTable`.
300
+ * Ours: the records are things a person opens or acts on and that name themselves: projects, deployments, domains, members, integrations, Agents, Skills, mailboxes. 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. Of the three kinds of list, entity rows and rows edited in place are this; records compared across columns are a `DataTable` (nadicode decision).
310
301
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
311
302
  * “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
312
- * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. 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`.
313
- * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; 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. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu keeps every command in the three dots, one alone included, as Vercel's Environment Variables and Members rows do: a button stands on a row only where the list names it as `command`, the record's main job, on every row that can do it, so one list never mixes rows ending in a button with rows ending in dots. The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. 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, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; 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`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. 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, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). 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"), so choosing never changes the page's title row; the record's own main job stays its row's `command`, 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 and a failed action's message.
303
+ * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. 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).
304
+ * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; 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. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. The product gives each record's `commands`, everything it can do now, and the list draws them: none draws nothing; one is an outline button; two are two outline buttons, the `main` first; three or more are the `main` as a button, or none, and the rest in the three dots, which therefore always hold two or more, never one (owner, 2026-11-06). The row's buttons and its three dots are 32 px, a button its label alone and a command's icon leading it only in the three dots, as Geist's row buttons read (nadicode decision). A command a record cannot run now stays, disabled, with its reason: in a button's tooltip, or in a line under its label in the three dots; only permission leaves one out (nadicode decision). A destructive command, visible, is an outline button named verb and noun, never red; in the three dots it comes last after a divider; either way it opens its confirmation, or runs at once with its Undo in a toast (nadicode decision). More than ten commands for a record, or two marked `main`, throws in development and tests (nadicode decision). The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the buttons, a decorative icon for the record's mark, or a status on every row. 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, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; 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`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. 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, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). 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"), so choosing never changes the page's title row; 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 and a failed action's message.
314
305
  * “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)
315
- * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card.
306
+ * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision).
316
307
  * “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)
317
- * Ours: one or two row commands (outline buttons of 32 px) stand before the three dots (36 px), the Dots Menu.
308
+ * Ours: at most two buttons stand on a row, then the three dots, all 32 px, as the commands rule above draws them (owner, 2026-11-06).
318
309
  * “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)
319
- * 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.
310
+ * 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).
320
311
  * @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)
321
- * Ours: the name is the record's own and the labels around it are sentence case, not Title Case.
312
+ * Ours: the name is the record's own and the labels around it are sentence case, not Title Case (nadicode decision).
322
313
  * “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)
323
- * Ours: the list names each kind of row button once, in `commands`, so every row that does a job draws the same words at the same width; the record's own name goes in the row's `accessibleName`, never in the label.
314
+ * 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).
324
315
  * “Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table)
325
316
  * “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)
326
- * Ours: a list is the records' attributes shown as data, not written as text. Its columns are the few 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: a name, a kind ("Customer"), a count with its unit ("3 keys"), an amount; its position, the mark of its kind (`icon`, as Vercel marks a branch before "main") and its type say what it is, so the hidden heading needs no words in the cell. 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 are the nouns the headings would be ("Partner", "State", "Asked"). 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, the menu's `label` reads "More for {record}". A row command names its result in sentence case ("Edit domain"). A status is the exception's word ("Needs attention", "Can't sign in"), never "Active" on every row, and never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds a count or the paging, never a help sentence: guidance a step needs lives in that step.
317
+ * Ours: a list is the records' attributes shown as data, not written as text. Its columns are the few 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: a name, a kind ("Customer"), a count with its unit ("3 keys"), an amount; its position, the mark of its kind (`icon`, as Vercel marks a branch before "main") and its type say what it is, so the hidden heading needs no words in the cell. 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 are the nouns the headings would be ("Partner", "State", "Asked"). 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 exception's word ("Needs attention", "Can't sign in"), never "Active" on every row, and never the state a row's own command already says: a row that ends in "Resend link" carries no "Link sent". The footer holds a count or the paging, never a help sentence: guidance a step needs lives in that step (nadicode decision).
327
318
  * @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)
328
- * 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 the menu's `label`, and the menu's first line names the record. The loading rows are a status named by `loadingLabel`, inside the one live region that announces what replaces them.
319
+ * 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).
329
320
  * “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)
330
- * Ours: each box is named by `select.label`, which reads "Select {record}".
321
+ * Ours: each box is named by `select.label`, which reads "Select {record}" (nadicode decision).
331
322
  */
332
323
  export function RecordList(props) {
333
324
  const { records, heading, footer, select } = props;
325
+ const { arm, dialog } = useCommandRunner();
334
326
  const loading = !props.failed && records === undefined;
335
327
  const chosenRecords = records?.filter((record) => select?.checked(record) === true) ?? [];
336
328
  const chosen = select && chosenRecords.length > 0 ? select.chosen(chosenRecords) : undefined;
@@ -349,11 +341,11 @@ export function RecordList(props) {
349
341
  }
350
342
  else if (records.length === 0) {
351
343
  if (!props.empty)
352
- return null;
344
+ return dialog;
353
345
  body = _jsx(EmptyState, { ...props.empty, headingLevel: heading ? 3 : 2, scope: "card" });
354
346
  }
355
347
  else {
356
348
  body = _jsx(RecordRows, { ...props, records: records });
357
349
  }
358
- return (_jsx(TableCard, { actions: heading?.actions, footer: chosen || pages ? (_jsxs(_Fragment, { children: [chosen ? _jsx(PageCommandButton, { command: chosen.command, variant: "outline" }) : null, pages ? _jsx(Pages, { pages: pages }) : null] })) : undefined, footerHint: chosen?.count ?? footer?.count, note: footer?.note, description: heading?.description, status: heading?.status, title: heading?.title, children: _jsx(ShownList.Provider, { value: props, children: _jsx(SkeletonRegion, { busy: loading, children: body }) }) }));
350
+ return (_jsxs(_Fragment, { children: [_jsx(TableCard, { actions: heading?.actions, footer: chosen || pages ? (_jsxs(_Fragment, { children: [chosen ? _jsx(PageCommandButton, { command: chosen.command, variant: "outline" }) : null, pages ? _jsx(Pages, { pages: pages }) : null] })) : undefined, footerHint: chosen?.count ?? footer?.count, note: footer?.note, description: heading?.description, status: heading?.status, title: heading?.title, children: _jsx(ShownList.Provider, { value: props, children: _jsx(RowCommandsArm.Provider, { value: arm, children: _jsx(SkeletonRegion, { busy: loading, children: body }) }) }) }), dialog] }));
359
351
  }
@@ -7,7 +7,7 @@ import { type PageCommand } from "./page-actions.js";
7
7
  import { type RecordListProps } from "./record-list.js";
8
8
  import { type StepCardsProps } from "./step-cards.js";
9
9
  import { SheetContent } from "./sheet.js";
10
- export type RecordSheetProps<THeld extends RowData = never, THeldCommand extends string = never> = {
10
+ export type RecordSheetProps<THeld extends RowData = never> = {
11
11
  open: boolean;
12
12
  onOpenChange: (open: boolean) => void;
13
13
  /** Names the record: "invoice.payment_failed". */
@@ -27,7 +27,7 @@ export type RecordSheetProps<THeld extends RowData = never, THeldCommand extends
27
27
  * The few records this record holds, each managed on its own: an app's accounts. A `RecordList`
28
28
  * with its `heading`, whose actions add one, and each row's commands.
29
29
  */
30
- held?: RecordListProps<THeld, THeldCommand>;
30
+ held?: RecordListProps<THeld>;
31
31
  /** The record's setup in numbered steps, in the body, in place of its facts: connecting an app. */
32
32
  steps?: StepCardsProps;
33
33
  /** The way to the record's owner: "Open Beta Studio". */
@@ -45,5 +45,5 @@ export type RecordSheetProps<THeld extends RowData = never, THeldCommand extends
45
45
  * @words The title is the record's own name, as its row shows it. The footer's command names where it goes: "Open Beta Studio".
46
46
  * @access A dialog named by its title, not `modal` while it is only read: no scrim, and focus stays inside it; `modal`, with the scrim, while it holds records or a setup. Escape and Close close it. Focus returns to the row it opened from (`finalFocus`) after every close but a mouse, touch or pen one, as `Sheet` does by default; a caller that passes its own `finalFocus` decides. The payload is a read-only text area named by its label.
47
47
  */
48
- export declare function RecordSheet<THeld extends RowData = never, THeldCommand extends string = never>({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, steps, footer, finalFocus, }: RecordSheetProps<THeld, THeldCommand>): import("react").JSX.Element;
48
+ export declare function RecordSheet<THeld extends RowData = never>({ open, onOpenChange, title, mark, description, closeLabel, facts, code, held, steps, footer, finalFocus, }: RecordSheetProps<THeld>): import("react").JSX.Element;
49
49
  //# sourceMappingURL=record-sheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record-sheet.d.ts","sourceRoot":"","sources":["../../src/components/record-sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAEL,YAAY,EAKb,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,gB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DAAyD;IACzD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC;CAChE,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,SAAS,OAAO,GAAG,KAAK,EAAE,EACzD,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,IAAI,EACJ,WAAW,EACX,UAAU,EACV,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,UAAU,GACX,EAAE,gBAAgB,CAAC,KAAK,CAAC,+BA8CzB"}
@@ -1,6 +1,9 @@
1
1
  import type { ReactElement, ReactNode } from "react";
2
+ import { type NoticeBannerProps } from "./notice-banner.js";
2
3
  export type SettingsPageProps = {
3
- /** The section cards, in order: SettingsSection, SettingsFactsSection. */
4
+ /** A condition of what the page sets that the page fixes, above its first card: one `NoticeBanner`. */
5
+ notice?: NoticeBannerProps;
6
+ /** The section cards, in order: SettingsSection, SettingsFactsSection, or a product's component that renders one. */
4
7
  children: ReactNode;
5
8
  };
6
9
  /**
@@ -13,5 +16,5 @@ export type SettingsPageProps = {
13
16
  * @words The sections' titles and lines; a card's title is never the page's h1.
14
17
  * @access Draws no heading of its own: the page frame's header is the page's h1.
15
18
  */
16
- export declare function SettingsPage({ children }: SettingsPageProps): ReactElement;
19
+ export declare function SettingsPage({ notice, children }: SettingsPageProps): ReactElement;
17
20
  //# sourceMappingURL=settings-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-page.d.ts","sourceRoot":"","sources":["../../src/components/settings-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAE1E"}
1
+ {"version":3,"file":"settings-page.d.ts","sourceRoot":"","sources":["../../src/components/settings-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uGAAuG;IACvG,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,qHAAqH;IACrH,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAOlF"}
@@ -1,4 +1,5 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { NoticeBanner } from "./notice-banner.js";
2
3
  import { ReadingColumn } from "./reading-column.js";
3
4
  /**
4
5
  * A page of settings: section cards across the page's width under its title, each saving its own values.
@@ -10,6 +11,6 @@ import { ReadingColumn } from "./reading-column.js";
10
11
  * @words The sections' titles and lines; a card's title is never the page's h1.
11
12
  * @access Draws no heading of its own: the page frame's header is the page's h1.
12
13
  */
13
- export function SettingsPage({ children }) {
14
- return _jsx(ReadingColumn, { width: "settings", children: children });
14
+ export function SettingsPage({ notice, children }) {
15
+ return (_jsxs(ReadingColumn, { width: "settings", children: [notice ? _jsx(NoticeBanner, { ...notice }) : null, children] }));
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-list.d.ts","sourceRoot":"","sources":["../../src/internal/catalog-list.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AASpF,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAqG5B,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAgB,EAChB,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACrB,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;CACrC,+BAsBA;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAoB7F;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,OAAO,CAE3E"}
1
+ {"version":3,"file":"catalog-list.d.ts","sourceRoot":"","sources":["../../src/internal/catalog-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AASpF,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAmG5B,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAgB,EAChB,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACrB,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;CACrC,+BAsBA;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAoB7F;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,OAAO,CAE3E"}