@nadicodeai/ui 12.1.224 → 12.1.225
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/AGENTS.md +4 -1
- package/dist/components/action-menu.d.ts +4 -4
- package/dist/components/action-menu.d.ts.map +1 -1
- package/dist/components/action-menu.js +2 -2
- package/dist/components/agent-card.d.ts +1 -1
- package/dist/components/agent-card.js +1 -1
- package/dist/components/badge.d.ts +2 -1
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +2 -1
- package/dist/components/brand.d.ts +1 -1
- package/dist/components/brand.d.ts.map +1 -1
- package/dist/components/brand.js +21 -2
- package/dist/components/card.d.ts +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/catalog-card.d.ts +1 -2
- package/dist/components/catalog-card.d.ts.map +1 -1
- package/dist/components/catalog-card.js +1 -2
- package/dist/components/chart-card.d.ts +2 -2
- package/dist/components/chart-card.d.ts.map +1 -1
- package/dist/components/chart-card.js +1 -1
- package/dist/components/check-counts.d.ts +3 -5
- package/dist/components/check-counts.d.ts.map +1 -1
- package/dist/components/check-counts.js +5 -7
- package/dist/components/collection-page.d.ts +6 -7
- package/dist/components/collection-page.d.ts.map +1 -1
- package/dist/components/collection-page.js +3 -3
- package/dist/components/data-table.d.ts +13 -21
- package/dist/components/data-table.d.ts.map +1 -1
- package/dist/components/data-table.js +57 -192
- package/dist/components/drawer-steps.d.ts +1 -1
- package/dist/components/drawer-steps.js +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -4
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +7 -6
- package/dist/components/empty-state.d.ts +4 -1
- package/dist/components/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state.js +5 -4
- package/dist/components/figure-row.d.ts +58 -0
- package/dist/components/figure-row.d.ts.map +1 -0
- package/dist/components/figure-row.js +41 -0
- package/dist/components/form-dialog.d.ts +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-drawer.d.ts +2 -2
- package/dist/components/form-drawer.js +2 -2
- package/dist/components/gauge.d.ts +2 -0
- package/dist/components/gauge.d.ts.map +1 -1
- package/dist/components/gauge.js +2 -0
- package/dist/components/icon-tile.d.ts +27 -0
- package/dist/components/icon-tile.d.ts.map +1 -0
- package/dist/components/icon-tile.js +18 -0
- package/dist/components/identity-mark.d.ts +3 -2
- package/dist/components/identity-mark.d.ts.map +1 -1
- package/dist/components/identity-mark.js +3 -10
- package/dist/components/kpi-card.d.ts +23 -6
- package/dist/components/kpi-card.d.ts.map +1 -1
- package/dist/components/kpi-card.js +11 -7
- package/dist/components/library-shelf.d.ts +1 -1
- package/dist/components/library-shelf.js +1 -1
- package/dist/components/menu-choice-row.d.ts +1 -2
- package/dist/components/menu-choice-row.d.ts.map +1 -1
- package/dist/components/menu-choice-row.js +1 -2
- package/dist/components/notice-banner.d.ts +1 -1
- package/dist/components/notice-banner.js +1 -1
- package/dist/components/numbered-steps.d.ts +1 -1
- package/dist/components/numbered-steps.js +1 -1
- package/dist/components/object-page.d.ts +25 -9
- package/dist/components/object-page.d.ts.map +1 -1
- package/dist/components/object-page.js +13 -9
- package/dist/components/object-workspace.d.ts +2 -2
- package/dist/components/object-workspace.js +2 -2
- package/dist/components/overview-page.d.ts +6 -1
- package/dist/components/overview-page.d.ts.map +1 -1
- package/dist/components/page-actions.d.ts +16 -15
- package/dist/components/page-actions.d.ts.map +1 -1
- package/dist/components/page-actions.js +9 -7
- package/dist/components/page-frame.d.ts +1 -1
- package/dist/components/page-frame.js +1 -1
- package/dist/components/page-header.d.ts +12 -9
- package/dist/components/page-header.d.ts.map +1 -1
- package/dist/components/page-header.js +11 -8
- package/dist/components/product-shell.d.ts +10 -13
- package/dist/components/product-shell.d.ts.map +1 -1
- package/dist/components/product-shell.js +9 -12
- package/dist/components/progress-checklist.d.ts +4 -4
- package/dist/components/progress-checklist.d.ts.map +1 -1
- package/dist/components/progress-checklist.js +4 -14
- package/dist/components/progress.d.ts +3 -1
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +3 -1
- package/dist/components/reading-column.d.ts +2 -2
- package/dist/components/reading-column.js +2 -2
- package/dist/components/record-commands.d.ts +15 -7
- package/dist/components/record-commands.d.ts.map +1 -1
- package/dist/components/record-commands.js +26 -19
- package/dist/components/record-identity.d.ts +4 -2
- package/dist/components/record-identity.d.ts.map +1 -1
- package/dist/components/record-identity.js +3 -4
- package/dist/components/record-list.d.ts +25 -27
- package/dist/components/record-list.d.ts.map +1 -1
- package/dist/components/record-list.js +31 -79
- package/dist/components/record-sheet.d.ts +1 -1
- package/dist/components/record-sheet.js +1 -1
- package/dist/components/row-edit-form.d.ts +1 -1
- package/dist/components/row-edit-form.js +1 -1
- package/dist/components/settings-facts.d.ts +5 -6
- package/dist/components/settings-facts.d.ts.map +1 -1
- package/dist/components/settings-facts.js +3 -4
- package/dist/components/settings-page.d.ts +2 -2
- package/dist/components/settings-page.js +2 -2
- package/dist/components/settings-section.d.ts +10 -5
- package/dist/components/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section.js +8 -4
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar-sections.d.ts +4 -4
- package/dist/components/sidebar-sections.d.ts.map +1 -1
- package/dist/components/sidebar-sections.js +3 -3
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/status-badge.d.ts +15 -12
- package/dist/components/status-badge.d.ts.map +1 -1
- package/dist/components/status-badge.js +15 -12
- package/dist/components/step-cards.d.ts +1 -2
- package/dist/components/step-cards.d.ts.map +1 -1
- package/dist/components/step-cards.js +1 -2
- package/dist/components/switch.d.ts +4 -2
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +9 -3
- package/dist/components/table-card.d.ts +2 -3
- package/dist/components/table-card.d.ts.map +1 -1
- package/dist/components/table-card.js +2 -3
- package/dist/components/table.d.ts +6 -24
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/table.js +11 -23
- package/dist/components/tabs-nav.d.ts +2 -2
- package/dist/components/tabs-nav.js +2 -2
- package/dist/components/text-link.d.ts +5 -5
- package/dist/components/text-link.js +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/internal/badge-frame.d.ts +1 -1
- package/dist/internal/badge-frame.d.ts.map +1 -1
- package/dist/internal/badge-frame.js +1 -0
- package/dist/internal/catalog-list.d.ts.map +1 -1
- package/dist/internal/catalog-list.js +1 -1
- package/dist/internal/collection-rail.d.ts +2 -2
- package/dist/internal/collection-rail.d.ts.map +1 -1
- package/dist/internal/empty.d.ts +1 -1
- package/dist/internal/empty.d.ts.map +1 -1
- package/dist/internal/empty.js +1 -2
- package/dist/internal/fieldset-disabled.d.ts +6 -0
- package/dist/internal/fieldset-disabled.d.ts.map +1 -0
- package/dist/internal/fieldset-disabled.js +7 -0
- package/dist/internal/final-focus.d.ts +2 -2
- package/dist/internal/final-focus.js +2 -2
- package/dist/internal/icon-tile-frame.d.ts +16 -0
- package/dist/internal/icon-tile-frame.d.ts.map +1 -0
- package/dist/internal/icon-tile-frame.js +21 -0
- package/dist/internal/record-grid.d.ts +58 -0
- package/dist/internal/record-grid.d.ts.map +1 -0
- package/dist/internal/record-grid.js +79 -0
- package/dist/internal/settings-save.d.ts.map +1 -1
- package/dist/internal/settings-save.js +2 -1
- package/dist/showcase/specimens/actions.d.ts.map +1 -1
- package/dist/showcase/specimens/actions.js +1 -1
- package/dist/showcase/specimens/charts.d.ts.map +1 -1
- package/dist/showcase/specimens/charts.js +1 -1
- package/dist/showcase/specimens/compositions.d.ts.map +1 -1
- package/dist/showcase/specimens/compositions.js +3 -3
- package/dist/showcase/specimens/data.d.ts +1 -0
- package/dist/showcase/specimens/data.d.ts.map +1 -1
- package/dist/showcase/specimens/data.js +7 -4
- package/dist/showcase/specimens/index.d.ts +2 -0
- package/dist/showcase/specimens/index.d.ts.map +1 -1
- package/dist/showcase/specimens/status.d.ts +1 -0
- package/dist/showcase/specimens/status.d.ts.map +1 -1
- package/dist/showcase/specimens/status.js +4 -2
- package/dist/showcase/usage.generated.d.ts +1 -1
- package/dist/showcase/usage.generated.d.ts.map +1 -1
- package/dist/showcase/usage.generated.js +99 -77
- package/dist/standalone/index.js +1 -1
- package/package.json +2 -2
- package/dist/components/table-layouts.d.ts +0 -110
- package/dist/components/table-layouts.d.ts.map +0 -1
- package/dist/components/table-layouts.js +0 -125
- package/dist/internal/table-compact-line.d.ts +0 -57
- package/dist/internal/table-compact-line.d.ts.map +0 -1
- package/dist/internal/table-compact-line.js +0 -119
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type IconTileTone } from "./icon-tile.js";
|
|
1
2
|
import type { IconComponent } from "./identity-mark.js";
|
|
2
3
|
import { type PageCommand } from "./page-actions.js";
|
|
3
4
|
/** The ground of a step's icon tile: a hue says which kind of step it is, never whether it is done. */
|
|
4
|
-
export type ChecklistStepTone =
|
|
5
|
+
export type ChecklistStepTone = IconTileTone;
|
|
5
6
|
export type ChecklistStep = {
|
|
6
7
|
id: string;
|
|
7
8
|
/** What the step asks for, as a done thing reads: "Company details confirmed". */
|
|
@@ -35,10 +36,9 @@ export type ProgressChecklistProps = {
|
|
|
35
36
|
* that opens the steps in a drawer at the right edge.
|
|
36
37
|
*
|
|
37
38
|
* @family Status
|
|
38
|
-
* @when
|
|
39
|
-
* Ours: the steps a Customer or a Partner takes before nadicode's work runs for them, each one a fact the Portal can read (company details confirmed, a plan, Nadia connected, an Agent at work), at the end of the record's row.
|
|
39
|
+
* @when Ours: the steps a Customer or a Partner takes before nadicode's work runs for them, each one a fact the Portal can read (company details confirmed, a plan, Nadia connected, an Agent at work), at the end of the record's row.
|
|
40
40
|
* @instead Steps a person follows on a page, one after the other, are `NumberedSteps`; a setup with a wait is `FormDrawer job="steps"`. A ratio with no steps behind it is a `Gauge`. One state of a record is a `StatusBadge`.
|
|
41
|
-
* @behaviour The ring is a 24 px `Gauge` in blue with the double check inside in ink, so the glyph reads at a glance, on a 36 px ghost button before the row's commands, whose tooltip names the checklist and how far it is ("Customer setup 3/4"). It opens a drawer from the right: the ring again, the title, one line, then one card per step: its icon on a
|
|
41
|
+
* @behaviour The ring is a 24 px `Gauge` in blue with the double check inside in ink, so the glyph reads at a glance, on a 36 px ghost button before the row's commands, whose tooltip names the checklist and how far it is ("Customer setup 3/4"). It opens a drawer from the right: the ring again, the title, one line, then one card per step: its icon on a 32 px `IconTile` of its tone, its title, one line, and the outline button that goes where the step is done; every card is the same hairline card, and a done step differs only by its blue Done chip after its title, with no button, so the steps still to do, with their buttons, draw the eye. The arc is the share of steps done (done steps over all steps, none drawn for no steps) and the track is the neutral remainder, so the ring is whole when every step is done. The footer's button closes it. A step is done because the thing it asks for exists, so the checklist has no Skip and remembers nothing. A step's tone says which kind of step it is, never whether it is done.
|
|
42
42
|
* @words Every string is the product's. The title names the checklist ("Customer setup"); a step's title reads as the thing done ("Plan chosen"); its button names where it goes ("Open billing").
|
|
43
43
|
* @access The ring's button is named by `label`, which says whose checklist and how many steps are done; the ring itself is hidden from assistive technology. The drawer is a dialog named by its title; Escape, × and the footer's button close it and give focus back to the ring. The steps are a list.
|
|
44
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-checklist.d.ts","sourceRoot":"","sources":["../../src/components/progress-checklist.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAYhF,uGAAuG;AACvG,MAAM,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"progress-checklist.d.ts","sourceRoot":"","sources":["../../src/components/progress-checklist.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AAYhF,uGAAuG;AACvG,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,wFAAwF;IACxF,IAAI,EAAE,OAAO,CAAC;IACd,0FAA0F;IAC1F,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IAChC,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAsCF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,EACL,SAAS,EACT,UAAU,EACV,WAAW,GACZ,EAAE,sBAAsB,+BAuDxB"}
|
|
@@ -4,37 +4,27 @@ import { Check, CheckCheck } from "lucide-react";
|
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { Gauge } from "./gauge.js";
|
|
7
|
+
import { IconTile } from "./icon-tile.js";
|
|
7
8
|
import { PageCommandButton } from "./page-actions.js";
|
|
8
9
|
import { Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, } from "./sheet.js";
|
|
9
10
|
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.js";
|
|
10
11
|
import { cn } from "../lib/utils.js";
|
|
11
|
-
const TILE_TONES = {
|
|
12
|
-
neutral: "bg-card text-muted-foreground ring-1 ring-border ring-inset",
|
|
13
|
-
blue: "bg-info-soft text-info-soft-foreground",
|
|
14
|
-
green: "bg-success-soft text-success-soft-foreground",
|
|
15
|
-
amber: "bg-warning-soft text-warning-soft-foreground",
|
|
16
|
-
purple: "bg-category-purple text-category-purple-foreground",
|
|
17
|
-
teal: "bg-category-teal text-category-teal-foreground",
|
|
18
|
-
pink: "bg-category-pink text-category-pink-foreground",
|
|
19
|
-
};
|
|
20
12
|
function ratio(steps) {
|
|
21
13
|
if (steps.length === 0)
|
|
22
14
|
return 0;
|
|
23
15
|
return (steps.filter((step) => step.done).length / steps.length) * 100;
|
|
24
16
|
}
|
|
25
17
|
function StepCard({ step, doneLabel }) {
|
|
26
|
-
|
|
27
|
-
return (_jsxs("li", { className: cn("flex min-w-0 items-start gap-3 rounded-sm p-4 ring-1 ring-border ring-inset"), "data-done": step.done || undefined, "data-slot": "checklist-step", children: [_jsx("span", { "aria-hidden": "true", className: cn("inline-flex size-8 shrink-0 items-center justify-center rounded-sm", tileTone), children: _jsx(step.icon, { "aria-hidden": "true", size: 16 }) }), _jsxs("span", { className: "grid min-w-0 flex-1 gap-1", children: [_jsxs("span", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [_jsx("span", { className: "min-w-0 font-medium wrap-break-word text-foreground", children: step.title }), step.done ? (_jsxs("span", { className: "inline-flex h-5 items-center gap-1 rounded-full bg-info px-2 text-[11px]/5 font-medium text-info-foreground", children: [_jsx(Check, { "aria-hidden": "true", className: "size-3" }), doneLabel] })) : null] }), _jsx("span", { className: "text-body-sm wrap-break-word text-muted-foreground", children: step.description }), !step.done && step.action ? (_jsx("span", { className: "pt-2", children: _jsx(PageCommandButton, { command: step.action, size: "sm", variant: "outline" }) })) : null] })] }));
|
|
18
|
+
return (_jsxs("li", { className: cn("flex min-w-0 items-start gap-3 rounded-sm p-4 ring-1 ring-border ring-inset"), "data-done": step.done || undefined, "data-slot": "checklist-step", children: [_jsx(IconTile, { icon: step.icon, size: 32, tone: step.tone }), _jsxs("span", { className: "grid min-w-0 flex-1 gap-1", children: [_jsxs("span", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [_jsx("span", { className: "min-w-0 font-medium wrap-break-word text-foreground", children: step.title }), step.done ? (_jsxs("span", { className: "inline-flex h-5 items-center gap-1 rounded-full bg-info px-2 text-[11px]/5 font-medium text-info-foreground", children: [_jsx(Check, { "aria-hidden": "true", className: "size-3" }), doneLabel] })) : null] }), _jsx("span", { className: "text-body-sm wrap-break-word text-muted-foreground", children: step.description }), !step.done && step.action ? (_jsx("span", { className: "pt-2", children: _jsx(PageCommandButton, { command: step.action, size: "sm", variant: "outline" }) })) : null] })] }));
|
|
28
19
|
}
|
|
29
20
|
/**
|
|
30
21
|
* How far one record is through the steps that make it ready: a blue ring at the end of its row
|
|
31
22
|
* that opens the steps in a drawer at the right edge.
|
|
32
23
|
*
|
|
33
24
|
* @family Status
|
|
34
|
-
* @when
|
|
35
|
-
* Ours: the steps a Customer or a Partner takes before nadicode's work runs for them, each one a fact the Portal can read (company details confirmed, a plan, Nadia connected, an Agent at work), at the end of the record's row.
|
|
25
|
+
* @when Ours: the steps a Customer or a Partner takes before nadicode's work runs for them, each one a fact the Portal can read (company details confirmed, a plan, Nadia connected, an Agent at work), at the end of the record's row.
|
|
36
26
|
* @instead Steps a person follows on a page, one after the other, are `NumberedSteps`; a setup with a wait is `FormDrawer job="steps"`. A ratio with no steps behind it is a `Gauge`. One state of a record is a `StatusBadge`.
|
|
37
|
-
* @behaviour The ring is a 24 px `Gauge` in blue with the double check inside in ink, so the glyph reads at a glance, on a 36 px ghost button before the row's commands, whose tooltip names the checklist and how far it is ("Customer setup 3/4"). It opens a drawer from the right: the ring again, the title, one line, then one card per step: its icon on a
|
|
27
|
+
* @behaviour The ring is a 24 px `Gauge` in blue with the double check inside in ink, so the glyph reads at a glance, on a 36 px ghost button before the row's commands, whose tooltip names the checklist and how far it is ("Customer setup 3/4"). It opens a drawer from the right: the ring again, the title, one line, then one card per step: its icon on a 32 px `IconTile` of its tone, its title, one line, and the outline button that goes where the step is done; every card is the same hairline card, and a done step differs only by its blue Done chip after its title, with no button, so the steps still to do, with their buttons, draw the eye. The arc is the share of steps done (done steps over all steps, none drawn for no steps) and the track is the neutral remainder, so the ring is whole when every step is done. The footer's button closes it. A step is done because the thing it asks for exists, so the checklist has no Skip and remembers nothing. A step's tone says which kind of step it is, never whether it is done.
|
|
38
28
|
* @words Every string is the product's. The title names the checklist ("Customer setup"); a step's title reads as the thing done ("Plan chosen"); its button names where it goes ("Open billing").
|
|
39
29
|
* @access The ring's button is named by `label`, which says whose checklist and how many steps are done; the ring itself is hidden from assistive technology. The drawer is a dialog named by its title; Escape, × and the footer's button close it and give focus back to the ring. The steps are a list.
|
|
40
30
|
*/
|
|
@@ -31,7 +31,9 @@ type ProgressStop = {
|
|
|
31
31
|
* Ours: neither exists; an unknown wait is the waiting line, never a bar with an invented
|
|
32
32
|
* percentage.
|
|
33
33
|
* "For usage against a quota or ratio, use `Gauge`; the circle reads as health, the bar reads as progress." (https://vercel.com/geist/progress)
|
|
34
|
-
* Ours:
|
|
34
|
+
* Ours: usage against a quota is this bar with its figure, drawn in the Portal by `MeterReading`
|
|
35
|
+
* and inside an object's card by `FigureRow`. A run's consumption in a dense spot is a
|
|
36
|
+
* `UsageMeter`. A single figure is a `KpiCard`.
|
|
35
37
|
* @behaviour "Threshold colors via `dynamic colors` should mirror the same breakpoints used elsewhere (warning at the same threshold a quota note fires)." (https://vercel.com/geist/progress)
|
|
36
38
|
* Ours: colour sits on the fill alone: the track is always the neutral line colour and the words
|
|
37
39
|
* beside the bar stay neutral. The fill is neutral by default; `tone` is that threshold (amber
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,QAAA,MAAM,yBAAyB;;8EAiB9B,CAAC;AAEF,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAExF,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAOhC,KAAK,YAAY,GACb;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAexD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAkEF
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,QAAA,MAAM,yBAAyB;;8EAiB9B,CAAC;AAEF,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAExF,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAOhC,KAAK,YAAY,GACb;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAexD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAkEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAO,EACP,GAAS,EACT,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,IAAgB,EAChB,IAAW,EACX,cAAc,EACd,KAAK,EACL,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,iBAAiB,GAAG,OAAO,CAAC,GAC/E,YAAY,GAAG;IACb,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CACjC,+BAkDF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,+BAc5E;AAMD,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK,+BA8B3F;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,+BAQ5E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,+BAQ5E;AAED,OAAO,EACL,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,yBAAyB,GAC1B,CAAC;AACF,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -84,7 +84,9 @@ const ProgressStateContext = createContext({
|
|
|
84
84
|
* Ours: neither exists; an unknown wait is the waiting line, never a bar with an invented
|
|
85
85
|
* percentage.
|
|
86
86
|
* "For usage against a quota or ratio, use `Gauge`; the circle reads as health, the bar reads as progress." (https://vercel.com/geist/progress)
|
|
87
|
-
* Ours:
|
|
87
|
+
* Ours: usage against a quota is this bar with its figure, drawn in the Portal by `MeterReading`
|
|
88
|
+
* and inside an object's card by `FigureRow`. A run's consumption in a dense spot is a
|
|
89
|
+
* `UsageMeter`. A single figure is a `KpiCard`.
|
|
88
90
|
* @behaviour "Threshold colors via `dynamic colors` should mirror the same breakpoints used elsewhere (warning at the same threshold a quota note fires)." (https://vercel.com/geist/progress)
|
|
89
91
|
* Ours: colour sits on the fill alone: the track is always the neutral line colour and the words
|
|
90
92
|
* beside the bar stay neutral. The fill is neutral by default; `tone` is that threshold (amber
|
|
@@ -5,8 +5,8 @@ export type ReadingColumnWidth = "full" | "reading" | "settings";
|
|
|
5
5
|
*
|
|
6
6
|
* @family Other
|
|
7
7
|
* @when Setting a page's measure: `reading` (768 px) for prose and conversations, `settings` (960 px)
|
|
8
|
-
* for a page of settings,
|
|
9
|
-
*
|
|
8
|
+
* for a page of settings, and `full` (1280 px, the Portal shell's width) for collections, which fill
|
|
9
|
+
* the page.
|
|
10
10
|
* @instead A settings page's column is `SettingsPage`'s, and a page's column where the host app draws the page area is `PageFrame`'s `column`. A card row is `CardRow`.
|
|
11
11
|
* @behaviour Centred with a maximum width per kind; full takes the content's width.
|
|
12
12
|
* @words None of its own.
|
|
@@ -5,8 +5,8 @@ import { cn } from "../lib/utils.js";
|
|
|
5
5
|
*
|
|
6
6
|
* @family Other
|
|
7
7
|
* @when Setting a page's measure: `reading` (768 px) for prose and conversations, `settings` (960 px)
|
|
8
|
-
* for a page of settings,
|
|
9
|
-
*
|
|
8
|
+
* for a page of settings, and `full` (1280 px, the Portal shell's width) for collections, which fill
|
|
9
|
+
* the page.
|
|
10
10
|
* @instead A settings page's column is `SettingsPage`'s, and a page's column where the host app draws the page area is `PageFrame`'s `column`. A card row is `CardRow`.
|
|
11
11
|
* @behaviour Centred with a maximum width per kind; full takes the content's width.
|
|
12
12
|
* @words None of its own.
|
|
@@ -2,21 +2,24 @@ import type { ReactElement } from "react";
|
|
|
2
2
|
import { type ActionMenuProps, type MenuCommand, type MenuCommands } from "./action-menu.js";
|
|
3
3
|
import { type PageCommand } from "./page-actions.js";
|
|
4
4
|
import { type CommandRunner, type DrawnCommand } from "../internal/command-runner.js";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* One command of a record. `main` marks the one the row is waiting on, such as approving a
|
|
7
|
+
* request, which stands as a button before the three dots.
|
|
8
|
+
*/
|
|
6
9
|
export type RowCommand = MenuCommand & {
|
|
7
10
|
main?: true | undefined;
|
|
8
11
|
/** Opens outside the product: as a button, the arrow after its label. */
|
|
9
12
|
external?: boolean | undefined;
|
|
10
13
|
};
|
|
11
|
-
/** What a record's commands become: the
|
|
14
|
+
/** What a record's commands become: the button the row is waiting on, and the three dots' commands. */
|
|
12
15
|
export type RowCommandShape = {
|
|
13
16
|
buttons: readonly RowCommand[];
|
|
14
17
|
menu: MenuCommands | null;
|
|
15
18
|
};
|
|
16
19
|
/**
|
|
17
|
-
* The one decision for a record's commands (owner, 2026-11-
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
+
* The one decision for a record's commands (owner, 2026-11-08): every command stands in the three
|
|
21
|
+
* dots, except the one marked `main`, which the row is waiting on and which stands as a button
|
|
22
|
+
* before them.
|
|
20
23
|
*/
|
|
21
24
|
export declare function rowCommandShape(name: string, commands: readonly RowCommand[]): RowCommandShape;
|
|
22
25
|
/**
|
|
@@ -39,6 +42,11 @@ export type RecordCommandsProps = {
|
|
|
39
42
|
moreLabel: string;
|
|
40
43
|
/** Everything the record can do now, in the product's order; a command it may never run is left out. */
|
|
41
44
|
commands: readonly RowCommand[];
|
|
45
|
+
/**
|
|
46
|
+
* `row`: a row of a list or a table, every command in the three dots but the one the row waits
|
|
47
|
+
* on; `header`: the record's own header or card, where one or two commands stand as buttons.
|
|
48
|
+
*/
|
|
49
|
+
placement: "row" | "header";
|
|
42
50
|
} & Pick<ActionMenuProps, "open" | "onOpenChange" | "modal" | "side" | "finalFocus" | "triggerId">;
|
|
43
51
|
/**
|
|
44
52
|
* One record's commands outside a list: a message's hover bar, a member's card, an Agent's header.
|
|
@@ -46,12 +54,12 @@ export type RecordCommandsProps = {
|
|
|
46
54
|
* @family Actions
|
|
47
55
|
* @when Ours: the commands of one record that is not a row of a `RecordList`: Alveare's message hover bar and member card, Nadia's assignment card and an Agent's header (nadicode decision).
|
|
48
56
|
* @instead Ours: the records of a list give their commands to `RecordList`, which draws the same decision on every row; a page's own commands are its composition's `actions` (nadicode decision).
|
|
49
|
-
* @behaviour Ours:
|
|
57
|
+
* @behaviour Ours: in a row of a table (`placement="row"`), the rule `RecordList` holds for its rows: every command in the three dots but the one the row waits on (owner, 2026-11-08); on the record's own header or card (`placement="header"`), one or two commands stand as buttons, the `main` first, and from three the `main` stands and the rest go in the three dots (owner, 2026-11-06). A destructive one comes last and confirms; the buttons and the three dots are 32 px, aligned to the end (nadicode decision).
|
|
50
58
|
* @words “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)
|
|
51
59
|
* Ours: sentence case, "Cancel invite"; the three dots read "More for {record}" (nadicode decision).
|
|
52
60
|
* @access Ours: each button is named by its label, or its `accessibleName` where the label alone does not name the record; a reason is the button's description; the three dots carry `moreLabel` (nadicode decision).
|
|
53
61
|
*/
|
|
54
|
-
export declare function RecordCommands({ record, moreLabel, commands, ...menuProps }: RecordCommandsProps): import("react").JSX.Element | null;
|
|
62
|
+
export declare function RecordCommands({ record, moreLabel, commands, placement, ...menuProps }: RecordCommandsProps): import("react").JSX.Element | null;
|
|
55
63
|
export type RecordContextMenuProps = Pick<RecordCommandsProps, "record" | "moreLabel" | "commands"> & {
|
|
56
64
|
/** The record's card or row, which keeps its own element and opens the menu. */
|
|
57
65
|
children: ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-commands.d.ts","sourceRoot":"","sources":["../../src/components/record-commands.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EAElB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAoB,MAAM,2BAA2B,CAAC;AAEpG
|
|
1
|
+
{"version":3,"file":"record-commands.d.ts","sourceRoot":"","sources":["../../src/components/record-commands.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EAElB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAoB,MAAM,2BAA2B,CAAC;AAEpG;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,uGAAuG;AACvG,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,UAAU,EAAE,GAAG,eAAe,CAQ9F;AAmBD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,UAAU,CAAC,GAAG,WAAW,CAkB1E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,GAAG,GACJ,EAAE;IACD,QAAQ,EAAE,SAAS,UAAU,EAAE,CAAC;IAChC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;CAC3B,iCASA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,wGAAwG;IACxG,QAAQ,EAAE,SAAS,UAAU,EAAE,CAAC;IAChC;;;OAGG;IACH,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC,CAAC;AAEnG;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,SAAS,EACT,QAAQ,EACR,SAAS,EACT,GAAG,SAAS,EACb,EAAE,mBAAmB,sCAcrB;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,mBAAmB,EACnB,QAAQ,GAAG,WAAW,GAAG,UAAU,CACpC,GAAG;IACF,gFAAgF;IAChF,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE,sBAAsB,+BAMxB"}
|
|
@@ -3,30 +3,36 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { ActionContextMenu, ActionMenu, refuseTooManyCommands, } from "./action-menu.js";
|
|
4
4
|
import { PageCommandButton } from "./page-actions.js";
|
|
5
5
|
import { useCommandRunner } from "../internal/command-runner.js";
|
|
6
|
-
function twoOrMore(commands) {
|
|
7
|
-
const [first, second, ...rest] = commands;
|
|
8
|
-
return first && second ? [first, second, ...rest] : null;
|
|
9
|
-
}
|
|
10
6
|
/**
|
|
11
|
-
* The one decision for a record's commands (owner, 2026-11-
|
|
12
|
-
*
|
|
13
|
-
*
|
|
7
|
+
* The one decision for a record's commands (owner, 2026-11-08): every command stands in the three
|
|
8
|
+
* dots, except the one marked `main`, which the row is waiting on and which stands as a button
|
|
9
|
+
* before them.
|
|
14
10
|
*/
|
|
15
11
|
export function rowCommandShape(name, commands) {
|
|
16
12
|
refuseTooManyCommands(name, commands.length);
|
|
17
13
|
const mains = commands.filter((command) => command.main === true);
|
|
18
14
|
if (mains.length > 1 && typeof process !== "undefined" && process.env.NODE_ENV !== "production") {
|
|
19
|
-
throw new Error(`${name} marks ${mains.length} commands as main; a
|
|
15
|
+
throw new Error(`${name} marks ${mains.length} commands as main; a row waits on one at most.`);
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
const [first, ...rest] = commands.filter((command) => command.main !== true);
|
|
18
|
+
return { buttons: mains, menu: first ? [first, ...rest] : null };
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A record's commands where the record is the whole surface, its own header or card (an Agent's
|
|
22
|
+
* header, a member card): one or two stand as buttons, the `main` first; three or more are the
|
|
23
|
+
* `main` as a button, or none, and the rest in the three dots (owner, 2026-11-06).
|
|
24
|
+
*/
|
|
25
|
+
function headerCommandShape(name, commands) {
|
|
26
|
+
refuseTooManyCommands(name, commands.length);
|
|
27
|
+
const mains = commands.filter((command) => command.main === true);
|
|
28
|
+
if (mains.length > 1 && typeof process !== "undefined" && process.env.NODE_ENV !== "production") {
|
|
29
|
+
throw new Error(`${name} marks ${mains.length} commands as main; a record has one main job.`);
|
|
24
30
|
}
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
buttons:
|
|
28
|
-
|
|
29
|
-
};
|
|
31
|
+
const rest = commands.filter((command) => command.main !== true);
|
|
32
|
+
if (commands.length <= 2)
|
|
33
|
+
return { buttons: [...mains, ...rest], menu: null };
|
|
34
|
+
const [first, second, ...more] = rest;
|
|
35
|
+
return { buttons: mains, menu: first ? [first, ...(second ? [second] : []), ...more] : null };
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* A record's command as its outline button: its label alone, since its icon leads it only in the
|
|
@@ -64,14 +70,15 @@ export function RowCommandButtons({ commands, arm, }) {
|
|
|
64
70
|
* @family Actions
|
|
65
71
|
* @when Ours: the commands of one record that is not a row of a `RecordList`: Alveare's message hover bar and member card, Nadia's assignment card and an Agent's header (nadicode decision).
|
|
66
72
|
* @instead Ours: the records of a list give their commands to `RecordList`, which draws the same decision on every row; a page's own commands are its composition's `actions` (nadicode decision).
|
|
67
|
-
* @behaviour Ours:
|
|
73
|
+
* @behaviour Ours: in a row of a table (`placement="row"`), the rule `RecordList` holds for its rows: every command in the three dots but the one the row waits on (owner, 2026-11-08); on the record's own header or card (`placement="header"`), one or two commands stand as buttons, the `main` first, and from three the `main` stands and the rest go in the three dots (owner, 2026-11-06). A destructive one comes last and confirms; the buttons and the three dots are 32 px, aligned to the end (nadicode decision).
|
|
68
74
|
* @words “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)
|
|
69
75
|
* Ours: sentence case, "Cancel invite"; the three dots read "More for {record}" (nadicode decision).
|
|
70
76
|
* @access Ours: each button is named by its label, or its `accessibleName` where the label alone does not name the record; a reason is the button's description; the three dots carry `moreLabel` (nadicode decision).
|
|
71
77
|
*/
|
|
72
|
-
export function RecordCommands({ record, moreLabel, commands, ...menuProps }) {
|
|
78
|
+
export function RecordCommands({ record, moreLabel, commands, placement, ...menuProps }) {
|
|
73
79
|
const { arm, dialog } = useCommandRunner();
|
|
74
|
-
const
|
|
80
|
+
const shape = placement === "row" ? rowCommandShape : headerCommandShape;
|
|
81
|
+
const { buttons, menu } = shape(`RecordCommands "${record}"`, commands);
|
|
75
82
|
if (buttons.length === 0 && !menu)
|
|
76
83
|
return null;
|
|
77
84
|
return (_jsxs("div", { className: "flex items-center justify-end gap-2", "data-slot": "record-commands", children: [_jsx(RowCommandButtons, { arm: arm, commands: buttons }), dialog, menu ? (_jsx(ActionMenu, { ...menuProps, commands: menu, label: moreLabel, record: record, size: "row" })) : null] }));
|
|
@@ -8,12 +8,12 @@ import { type IdentityMarkProps } from "./identity-mark.js";
|
|
|
8
8
|
* @family Status
|
|
9
9
|
* @when The first cell of every collection row: the mark, the name, and one muted line saying what the record is or where it comes from, so the row reads without a heading.
|
|
10
10
|
* @instead An Agent in a gallery is `AgentListRow`; a model is `ModelIdentity`. A descriptive item with prose and actions is `Item`.
|
|
11
|
-
* @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text
|
|
11
|
+
* @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, a `badge` standing after it, or under it when the line is too short for both, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text. In a `DataTable` of figures, which scrolls sideways on a card narrower than its columns, neither is cut: the column is as wide as the name and the detail. `wraps` only when the name is the whole record, such as a memory: the name is then a sentence at the body's regular weight, not a name in semibold, and the detail wraps too. `wraps="detail"` keeps the name a one-line name in semibold and wraps the detail in full, for a line the person must read whole, such as the code a request asks them to check. The table owns the link.
|
|
12
12
|
* @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)
|
|
13
13
|
* Ours: the name as the record calls itself, and the detail in sentence case: kind, then relation, three to six words, "Company skill · every Agent has it".
|
|
14
14
|
* @access The name is the row link's text; the mark is decorative; the title carries the full name.
|
|
15
15
|
*/
|
|
16
|
-
declare function RecordIdentity({ name, mark, hint, detail, wraps, }: {
|
|
16
|
+
declare function RecordIdentity({ name, mark, hint, detail, badge, wraps, }: {
|
|
17
17
|
name: ReactNode;
|
|
18
18
|
/** Drawn at 32, whatever size it carries. An initials mark when the record has no picture. */
|
|
19
19
|
mark: IdentityMarkProps;
|
|
@@ -21,6 +21,8 @@ declare function RecordIdentity({ name, mark, hint, detail, wraps, }: {
|
|
|
21
21
|
hint?: string;
|
|
22
22
|
/** The muted line under the name; absent, the row is the name alone. */
|
|
23
23
|
detail?: ReactNode;
|
|
24
|
+
/** A `StatusBadge` beside the name for a condition that waits on someone. */
|
|
25
|
+
badge?: ReactNode;
|
|
24
26
|
/** `true` wraps the name and the detail; `"detail"` the detail alone. */
|
|
25
27
|
wraps?: boolean | "detail";
|
|
26
28
|
}): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-identity.d.ts","sourceRoot":"","sources":["../../src/components/record-identity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"record-identity.d.ts","sourceRoot":"","sources":["../../src/components/record-identity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGlF;;;;;;;;;;;;GAYG;AACH,iBAAS,cAAc,CAAC,EACtB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAa,GACd,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,8FAA8F;IAC9F,IAAI,EAAE,iBAAiB,CAAC;IACxB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC5B,+BAkCA;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { IdentityMark } from "./identity-mark.js";
|
|
3
|
-
import { TableCompactFacts, TableCompactNameFacts } from "../internal/table-compact-line.js";
|
|
4
3
|
import { cn } from "../lib/utils.js";
|
|
5
4
|
/**
|
|
6
5
|
* A record's identity in a row, as `RecordList` and `DataTable` draw it: its
|
|
@@ -10,15 +9,15 @@ import { cn } from "../lib/utils.js";
|
|
|
10
9
|
* @family Status
|
|
11
10
|
* @when The first cell of every collection row: the mark, the name, and one muted line saying what the record is or where it comes from, so the row reads without a heading.
|
|
12
11
|
* @instead An Agent in a gallery is `AgentListRow`; a model is `ModelIdentity`. A descriptive item with prose and actions is `Item`.
|
|
13
|
-
* @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text
|
|
12
|
+
* @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, a `badge` standing after it, or under it when the line is too short for both, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text. In a `DataTable` of figures, which scrolls sideways on a card narrower than its columns, neither is cut: the column is as wide as the name and the detail. `wraps` only when the name is the whole record, such as a memory: the name is then a sentence at the body's regular weight, not a name in semibold, and the detail wraps too. `wraps="detail"` keeps the name a one-line name in semibold and wraps the detail in full, for a line the person must read whole, such as the code a request asks them to check. The table owns the link.
|
|
14
13
|
* @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)
|
|
15
14
|
* Ours: the name as the record calls itself, and the detail in sentence case: kind, then relation, three to six words, "Company skill · every Agent has it".
|
|
16
15
|
* @access The name is the row link's text; the mark is decorative; the title carries the full name.
|
|
17
16
|
*/
|
|
18
|
-
function RecordIdentity({ name, mark, hint, detail, wraps = false, }) {
|
|
17
|
+
function RecordIdentity({ name, mark, hint, detail, badge, wraps = false, }) {
|
|
19
18
|
const nameWraps = wraps === true;
|
|
20
19
|
const detailWraps = wraps !== false;
|
|
21
20
|
const title = typeof name === "string" ? (hint ? `${name} · ${hint}` : name) : undefined;
|
|
22
|
-
return (_jsxs("span", { className: "flex min-w-0 items-center gap-4", "data-slot": "record-identity", children: [_jsx(IdentityMark, { ...mark, size: 32 }), _jsxs("span", { className: "
|
|
21
|
+
return (_jsxs("span", { className: "flex min-w-0 items-center gap-4", "data-slot": "record-identity", children: [_jsx(IdentityMark, { ...mark, size: 32 }), _jsxs("span", { className: "block min-w-0 in-[[role=table]]:w-0 in-[[role=table]]:flex-1", children: [_jsxs("span", { className: "flex min-w-0 flex-wrap items-center gap-x-2", children: [_jsx("span", { className: cn("min-w-0 text-foreground", nameWraps ? "wrap-break-word whitespace-pre-wrap" : "truncate font-semibold"), title: nameWraps ? undefined : title, children: name }), badge] }), _jsx("span", { className: cn("block text-sm text-muted-foreground", detailWraps ? "wrap-break-word whitespace-normal" : "truncate"), "data-slot": "record-identity-detail", title: !detailWraps && typeof detail === "string" ? detail : undefined, children: detail })] })] }));
|
|
23
22
|
}
|
|
24
23
|
export { RecordIdentity };
|
|
@@ -21,12 +21,14 @@ export type RecordName = {
|
|
|
21
21
|
detail?: ReactNode;
|
|
22
22
|
/** Its identity mark, drawn at 32. Every row has one: an initials mark when the record has no picture. */
|
|
23
23
|
mark: IdentityMarkProps;
|
|
24
|
+
/** A condition that waits on someone, beside the name: never the record's state, which is `status`. */
|
|
25
|
+
badge?: RecordStatus | undefined;
|
|
24
26
|
};
|
|
25
27
|
type RecordFactColumn = {
|
|
26
28
|
id: string;
|
|
27
29
|
/** The column's name for assistive technology. */
|
|
28
30
|
label: string;
|
|
29
|
-
/** The mark of the value's kind, drawn before it
|
|
31
|
+
/** The mark of the value's kind, drawn before it: for a value whose words do not say what it is, such as a Partner's name, and never on one that names its own kind ("Customer", "3 keys"). */
|
|
30
32
|
icon?: ReactElement;
|
|
31
33
|
/** Its column's width in pixels, for its longest value in every language the product ships. */
|
|
32
34
|
size: number;
|
|
@@ -34,9 +36,9 @@ type RecordFactColumn = {
|
|
|
34
36
|
wraps?: true;
|
|
35
37
|
};
|
|
36
38
|
/**
|
|
37
|
-
* One attribute of the records, in a column that stands on every row. `of` gives its value alone
|
|
38
|
-
*
|
|
39
|
-
*
|
|
39
|
+
* One attribute of the records, in a column that stands on every row. `of` gives its value alone
|
|
40
|
+
* ("Customer", "Partner Alpha", "3 keys"), never a sentence that restates the column. A fact some
|
|
41
|
+
* record can lack returns nothing for it, which the list draws as the muted dash,
|
|
40
42
|
* and names in `missing` what a screen reader hears behind the dash ("No Partner"), never a word on
|
|
41
43
|
* the screen in its place.
|
|
42
44
|
*/
|
|
@@ -81,7 +83,7 @@ export type RecordSelection<TRecord> = {
|
|
|
81
83
|
};
|
|
82
84
|
};
|
|
83
85
|
export type RecordListFooter = {
|
|
84
|
-
/**
|
|
86
|
+
/** That the list shows only part of its records, such as its first 50; never how many records it holds. */
|
|
85
87
|
count?: ReactNode;
|
|
86
88
|
/**
|
|
87
89
|
* A bounded server page: "Page 1 of 6" and Previous and Next. A side with no handler has no page,
|
|
@@ -113,11 +115,10 @@ export type RecordListFooter = {
|
|
|
113
115
|
*/
|
|
114
116
|
export type RecordCommandsOf<TRecord extends RowData> = {
|
|
115
117
|
/**
|
|
116
|
-
* Everything the record can do now. The list draws it (owner, 2026-11-
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* that cannot run now stays, with its `disabledReason`.
|
|
118
|
+
* Everything the record can do now. The list draws it (owner, 2026-11-08): every command
|
|
119
|
+
* stands in the three dots, and the one marked `main`, which the row is waiting on, stands
|
|
120
|
+
* as a button before them. A command the person may never run is left out; one that cannot
|
|
121
|
+
* run now stays, with its `disabledReason`.
|
|
121
122
|
*/
|
|
122
123
|
commands: (record: TRecord) => readonly RowCommand[];
|
|
123
124
|
/** The three dots' name, from the catalogue: "More for {record}". */
|
|
@@ -143,14 +144,14 @@ export type RecordListProps<TRecord extends RowData> = RecordCommandsOf<TRecord>
|
|
|
143
144
|
/** A box before each record, so a person can pick several. */
|
|
144
145
|
select?: RecordSelection<TRecord>;
|
|
145
146
|
/**
|
|
146
|
-
* `line
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
147
|
+
* With `line`, the facts and the status share one muted line between the name and the time,
|
|
148
|
+
* and the row ends in the ring and its commands; it folds like every list, once the card is
|
|
149
|
+
* narrower than its columns; `columns`, the default, gives each fact its own column. A
|
|
150
|
+
* `CollectionPage` with a `rail` sets it.
|
|
150
151
|
*/
|
|
151
152
|
layout?: "columns" | "line";
|
|
152
153
|
facts?: RecordFacts<TRecord>;
|
|
153
|
-
/**
|
|
154
|
+
/** The record's state, on every row, *Ready* included; null only where the record has none. */
|
|
154
155
|
status?: {
|
|
155
156
|
label: string;
|
|
156
157
|
of: (record: TRecord) => RecordStatus | null;
|
|
@@ -160,8 +161,7 @@ export type RecordListProps<TRecord extends RowData> = RecordCommandsOf<TRecord>
|
|
|
160
161
|
time?: RecordTimeColumn<TRecord>;
|
|
161
162
|
/**
|
|
162
163
|
* How far the record is through the steps that make it ready: the ring before the row's
|
|
163
|
-
* commands
|
|
164
|
-
* with no checklist.
|
|
164
|
+
* commands. Null for a record with no checklist.
|
|
165
165
|
*/
|
|
166
166
|
checklist?: {
|
|
167
167
|
/** Names the column for assistive technology: "Setup". */
|
|
@@ -214,10 +214,8 @@ export type RecordListProps<TRecord extends RowData> = RecordCommandsOf<TRecord>
|
|
|
214
214
|
/** The record's own action failed or was refused: its message inside its row. */
|
|
215
215
|
state?: (record: TRecord) => RowMessage | null;
|
|
216
216
|
/**
|
|
217
|
-
* The least width of the commands column in pixels, whatever its rows draw
|
|
218
|
-
*
|
|
219
|
-
* their labels, so none is cut: a list gives it only to hold a wider column, such as two lists
|
|
220
|
-
* on one page whose columns line up although only one of them has buttons.
|
|
217
|
+
* 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.
|
|
221
219
|
*/
|
|
222
220
|
commandsSize?: number;
|
|
223
221
|
};
|
|
@@ -232,20 +230,20 @@ export declare function RecordListSkeleton({ rows }: {
|
|
|
232
230
|
/**
|
|
233
231
|
* Entity rows: objects a person opens or acts on, one line each on one resting card: the
|
|
234
232
|
* identity mark and name over what it is, then its attributes as data, one per column: a few
|
|
235
|
-
* facts,
|
|
236
|
-
*
|
|
233
|
+
* facts, its state, when it happened, the one command the row is waiting on, and the three dots
|
|
234
|
+
* last.
|
|
237
235
|
*
|
|
238
236
|
* @family Compositions
|
|
239
237
|
* @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)
|
|
240
238
|
* 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).
|
|
241
239
|
* @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
|
|
242
240
|
* “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
|
|
243
|
-
* Ours: Geist's `Table` is a `DataTable
|
|
244
|
-
* @behaviour One bordered card, a 1 px rule between records and none after the last.
|
|
241
|
+
* Ours: Geist's `Table` is a `DataTable`, for lines of figures a person reads and compares: usage, statements, invoices. This list holds at most three facts, and anything more 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).
|
|
242
|
+
* @behaviour One bordered card, a 1 px rule between records and none after the last. From 48rem of card the records stand in aligned columns with no heading row, since every value on a row says what it is by its words or its mark, 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), 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. `facts` takes at most three. 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 rows open. 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.
|
|
245
243
|
* “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)
|
|
246
244
|
* Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card (nadicode decision).
|
|
247
245
|
* “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)
|
|
248
|
-
* Ours:
|
|
246
|
+
* 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).
|
|
249
247
|
* “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)
|
|
250
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
249
|
* @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)
|
|
@@ -254,7 +252,7 @@ export declare function RecordListSkeleton({ rows }: {
|
|
|
254
252
|
* 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).
|
|
255
253
|
* “Column headers (`<Table.Head>`) are Title Case nouns or noun phrases: `Last Used`, `Requests (7d)`, `Created`, `Status`. Never sentences.” (https://vercel.com/geist/table)
|
|
256
254
|
* “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)
|
|
257
|
-
* 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
|
|
255
|
+
* 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, and says what it is with no heading over it: a kind ("Customer"), a count with its unit ("3 keys"), a time in its sentence ("Updated 3h ago"), or a name after the mark of its kind (`icon`, or a `Tag`'s `mark`). 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).
|
|
258
256
|
* @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)
|
|
259
257
|
* 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.
|
|
260
258
|
* “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)
|