@tristan2828/ui-foundation 4.96.0 → 4.98.0
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/conventions/AGENTS.md +1 -1
- package/conventions/docs/add-an-entity.md +92 -64
- package/conventions/docs/cell-patterns.md +64 -54
- package/conventions/docs/design-language.md +168 -76
- package/conventions/docs/entity-plan-template.md +15 -21
- package/conventions/docs/reminders.md +2 -2
- package/conventions/docs/timed-screens.md +1 -1
- package/dist/components/app/action-error.js +1 -1
- package/dist/components/app/allow-reminders.js +1 -1
- package/dist/components/app/app-shell.js +4 -4
- package/dist/components/app/board.js +1 -1
- package/dist/components/app/choice-buttons.js +6 -1
- package/dist/components/app/data-table-tools.js +2 -2
- package/dist/components/app/data-table.js +4 -4
- package/dist/components/app/date-field.js +1 -1
- package/dist/components/app/emoji-field-data.js +7 -7
- package/dist/components/app/entity-form.js +1 -1
- package/dist/components/app/entity-view.d.ts +29 -11
- package/dist/components/app/entity-view.js +106 -29
- package/dist/components/app/error-state.js +1 -1
- package/dist/components/app/field-rows.js +6 -3
- package/dist/components/app/fill-in-queue.js +2 -2
- package/dist/components/app/filter-bar.js +1 -1
- package/dist/components/app/form-dialog.js +1 -1
- package/dist/components/app/form-section.d.ts +1 -1
- package/dist/components/app/image-field.js +3 -2
- package/dist/components/app/key-stats.d.ts +3 -1
- package/dist/components/app/key-stats.js +2 -2
- package/dist/components/app/list-header.js +2 -2
- package/dist/components/app/milkdown-editor.js +4 -4
- package/dist/components/app/month-day-field.js +3 -3
- package/dist/components/app/multi-pick.js +1 -1
- package/dist/components/app/needs-you.js +1 -1
- package/dist/components/app/notes-outline.js +1 -1
- package/dist/components/app/password-input.js +1 -1
- package/dist/components/app/record-dialog-context.d.ts +9 -0
- package/dist/components/app/record-dialog.d.ts +8 -1
- package/dist/components/app/record-dialog.js +19 -3
- package/dist/components/app/rich-text-format-items.js +6 -6
- package/dist/components/app/rich-text-highlight-menu.js +1 -1
- package/dist/components/app/rich-text-table-grips.js +16 -16
- package/dist/components/app/rich-text-toolbar.js +2 -2
- package/dist/components/app/rich-text-widgets.js +2 -2
- package/dist/components/app/secondary-filters.js +2 -2
- package/dist/components/app/session-view.js +1 -1
- package/dist/components/app/status-mark.d.ts +17 -0
- package/dist/components/app/status-mark.js +12 -0
- package/dist/components/app/timeline.js +1 -1
- package/dist/components/app/widget-layout-sheet.js +1 -1
- package/dist/components/ui/combobox.js +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/field.d.ts +3 -2
- package/dist/components/ui/field.js +13 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/lib/field-rows.d.ts +3 -1
- package/dist/lib/field-rows.js +24 -6
- package/dist/lib/group-by-day.js +2 -2
- package/dist/lib/status-kinds.d.ts +10 -0
- package/dist/lib/status-kinds.js +33 -0
- package/dist/lib/title-case.d.ts +13 -0
- package/dist/lib/title-case.js +66 -0
- package/dist/routes/login.js +4 -4
- package/dist/routes/register.js +1 -1
- package/package.json +1 -1
- package/styles/index.css +9 -0
package/conventions/AGENTS.md
CHANGED
|
@@ -115,7 +115,7 @@ A notification at a time the user chose, with the app closed, is Web
|
|
|
115
115
|
Push: `pwa()` in `vite.config.ts`, `AllowReminders` with
|
|
116
116
|
`usePushPermission()`, and the backend's `send_push` and reminders job.
|
|
117
117
|
Follow `docs/foundation/reminders.md`. Never ask for notification
|
|
118
|
-
permission on page load: only from the click on "Allow
|
|
118
|
+
permission on page load: only from the click on "Allow Reminders".
|
|
119
119
|
|
|
120
120
|
## Scope and Stopping
|
|
121
121
|
- Do the task you were given and nothing beyond it. A task is done when
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
## Index
|
|
5
5
|
|
|
6
6
|
- [The reference files](#the-reference-files) · lines 44–66
|
|
7
|
-
- [Before anything: the entity plan](#before-anything-the-entity-plan) · lines 68–
|
|
7
|
+
- [Before anything: the entity plan](#before-anything-the-entity-plan) · lines 68–847
|
|
8
8
|
- Step 1: Add `<Entity>` to `openapi.yaml` · lines 110–117
|
|
9
9
|
- Step 2: `npm run gen:api` · lines 118–119
|
|
10
10
|
- Step 3: Add gateway tests in `tests/gateway/<entity>.test.ts`, derived from the spec · lines 120–131
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
- Step 5: Add a gateway module in `src/api/gateway/<entity>.ts` · lines 142–146
|
|
13
13
|
- Step 6: Copy the reference files, one for one, not just the two screens · lines 147–735
|
|
14
14
|
- Step 7: Register routes · lines 736–751
|
|
15
|
-
- Step 8: Add Playwright specs for all three screens · lines 752–
|
|
16
|
-
- Step 9: Register the nav entry and route names · lines
|
|
17
|
-
- Step 10: `npm run verify`. · lines
|
|
18
|
-
- [How a list opens a record](#how-a-list-opens-a-record) · lines
|
|
19
|
-
- [The record view](#the-record-view) · lines
|
|
20
|
-
- [Forms](#forms) · lines
|
|
21
|
-
- [Dialogs](#dialogs) · lines
|
|
22
|
-
- [Toasts and feedback](#toasts-and-feedback) · lines
|
|
23
|
-
- [What not to copy](#what-not-to-copy) · lines
|
|
24
|
-
- [After a commit, in the backend](#after-a-commit-in-the-backend) · lines
|
|
25
|
-
- [Deleting](#deleting) · lines
|
|
26
|
-
- [Fields only a script writes](#fields-only-a-script-writes) · lines
|
|
27
|
-
- [Searching one part of the app](#searching-one-part-of-the-app) · lines
|
|
28
|
-
- [What a chat is told about an entity](#what-a-chat-is-told-about-an-entity) · lines
|
|
15
|
+
- Step 8: Add Playwright specs for all three screens · lines 752–829
|
|
16
|
+
- Step 9: Register the nav entry and route names · lines 830–844
|
|
17
|
+
- Step 10: `npm run verify`. · lines 845–847
|
|
18
|
+
- [How a list opens a record](#how-a-list-opens-a-record) · lines 849–1206
|
|
19
|
+
- [The record view](#the-record-view) · lines 1002–1063
|
|
20
|
+
- [Forms](#forms) · lines 1065–1123
|
|
21
|
+
- [Dialogs](#dialogs) · lines 1125–1156
|
|
22
|
+
- [Toasts and feedback](#toasts-and-feedback) · lines 1158–1206
|
|
23
|
+
- [What not to copy](#what-not-to-copy) · lines 1208–1234
|
|
24
|
+
- [After a commit, in the backend](#after-a-commit-in-the-backend) · lines 1236–1253
|
|
25
|
+
- [Deleting](#deleting) · lines 1255–1286
|
|
26
|
+
- [Fields only a script writes](#fields-only-a-script-writes) · lines 1288–1309
|
|
27
|
+
- [Searching one part of the app](#searching-one-part-of-the-app) · lines 1311–1320
|
|
28
|
+
- [What a chat is told about an entity](#what-a-chat-is-told-about-an-entity) · lines 1323–1365
|
|
29
29
|
|
|
30
30
|
<!-- /index -->
|
|
31
31
|
|
|
@@ -476,18 +476,18 @@ is a filled-in example while the Widgets demo is still here).
|
|
|
476
476
|
section that holds one long text or one sub-record list is a block
|
|
477
477
|
(`content`) with no label of its own, since a label would only repeat
|
|
478
478
|
the heading.
|
|
479
|
-
- **Layout
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
`sections` by the window's width yourself.
|
|
479
|
+
- **Layout** (the record standard, 4.98: no right rail). Pass no
|
|
480
|
+
`layout`: the default, `tabs`, is every record's shape. Give the
|
|
481
|
+
section of short facts (the plan's Placement `details`) `placement:
|
|
482
|
+
'rail'`: on a record with tabs it's the last tab, Details, and on
|
|
483
|
+
one without, it stays in the column in its place, its labels beside
|
|
484
|
+
their values. Widget's view has no tabs, so its Details comes first
|
|
485
|
+
in the one column. A few short facts that explain one tab (a dose
|
|
486
|
+
beside the notes) can sit in a small box beside that tab's
|
|
487
|
+
sections, under them on a phone: `placement: 'rail'` with that
|
|
488
|
+
`tab`. Short facts only, never free text. Never `layout="rail"` in a
|
|
489
|
+
new view; it's kept for apps not yet moved (consuming.md "4.98").
|
|
490
|
+
Never re-order `sections` by the window's width yourself.
|
|
491
491
|
- **A subtitle** (`subtitle`), only when the plan names a line that
|
|
492
492
|
says what the record is for (a goal, a one-line summary): under the
|
|
493
493
|
title in muted body type. When the plan marks it editable, wrap it
|
|
@@ -495,8 +495,8 @@ is a filled-in example while the Widgets demo is still here).
|
|
|
495
495
|
- **Key numbers** (`strip`), only when the plan names a few figures
|
|
496
496
|
read before anything else (done of total, time left, the next
|
|
497
497
|
date): `<KeyStats stats={[{ label, value, hint? }]} />`, under the
|
|
498
|
-
header
|
|
499
|
-
the
|
|
498
|
+
header, as wide as its numbers (4.98), so on a phone it comes before
|
|
499
|
+
the sections. Three to five; more belong in a section.
|
|
500
500
|
- **A notice** (`notice`), only when the plan names a state that
|
|
501
501
|
decides what you do with the record (held, overdue, archived and
|
|
502
502
|
read-only): a `<Notice tone=…>` saying what it means and what to do,
|
|
@@ -583,7 +583,7 @@ is a filled-in example while the Widgets demo is still here).
|
|
|
583
583
|
of its own; a removed page (soft-deleted) shows "Page removed" and,
|
|
584
584
|
with `onRestore` (the app's undelete, returning its promise),
|
|
585
585
|
Restore. Give the editor `onCreatePage={(title) => createPage(title).then((page) => pagePath(page))}`
|
|
586
|
-
too: "/page" (and Turn
|
|
586
|
+
too: "/page" (and Turn Into Page on selected words) asks for a
|
|
587
587
|
title, awaits the new page's address and puts in the link; a
|
|
588
588
|
rejection shows in the title box in the gateway's words and leaves
|
|
589
589
|
the text as it was. The page's own screen puts `PageTrail` above its
|
|
@@ -594,7 +594,7 @@ is a filled-in example while the Widgets demo is still here).
|
|
|
594
594
|
(under the record, or under the page whose note it's in).
|
|
595
595
|
- **Notes worth taking on paper** (a visit's prep and questions, a
|
|
596
596
|
guide, a checklist to tick by hand): mark each of those sections
|
|
597
|
-
`print: true`. The header gets a Print
|
|
597
|
+
`print: true`. The header gets a Print Notes icon (`printLabel`
|
|
598
598
|
renames its tooltip and name) that prints the marked sections alone, under the title
|
|
599
599
|
and subtitle: no rail, no shell, no buttons, light paper in either
|
|
600
600
|
theme, headings and bullets as written, nothing folded, tables
|
|
@@ -760,7 +760,7 @@ is a filled-in example while the Widgets demo is still here).
|
|
|
760
760
|
start), and load once more if the server refused one of its files,
|
|
761
761
|
so a spec's first expect never meets an empty page. The view's states are
|
|
762
762
|
loading, not found (a 404: "Not found", the way back, no retry), error
|
|
763
|
-
(a failed load, then Try
|
|
763
|
+
(a failed load, then Try Again recovering) and success (every section,
|
|
764
764
|
each value as its cell shows it), plus the sparse record showing its
|
|
765
765
|
"not set" labels and no blank value. Its flows: the table's title link
|
|
766
766
|
opens it, saving and cancelling the form return to it, creating opens
|
|
@@ -790,11 +790,10 @@ is a filled-in example while the Widgets demo is still here).
|
|
|
790
790
|
a heading, a list, a table, a link and raw HTML, and asserts the HTML
|
|
791
791
|
shows as text. Add the view's spec to `playwright.config.ts`'s
|
|
792
792
|
`mobile-chrome` `testMatch`, with a test that at phone width each
|
|
793
|
-
label sits above its value and nothing scrolls sideways. With
|
|
794
|
-
`
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
`e2e/widget-view.spec.ts`).
|
|
793
|
+
label sits above its value and nothing scrolls sideways. With a
|
|
794
|
+
section placed `details`, that test checks its labels sit beside
|
|
795
|
+
their values, and another on a wide screen that there's no rail (copy
|
|
796
|
+
`wide screens: …` in `e2e/widget-view.spec.ts`).
|
|
798
797
|
States forced via a first-load init script (loading, load-time error)
|
|
799
798
|
need `page.addInitScript` before navigation; states forced after the
|
|
800
799
|
page is already up (a mutation's error response) can use a
|
|
@@ -858,12 +857,16 @@ picks one per list (`docs/entities/<entity>.md` "List screen"):
|
|
|
858
857
|
|
|
859
858
|
| `opens.kind` | The record opens | Use it for |
|
|
860
859
|
| --- | --- | --- |
|
|
861
|
-
| `dialog` | in a dialog over the list, with Open
|
|
860
|
+
| `dialog` | in a dialog over the list, with Open Full Page; the record also has its page | most records |
|
|
862
861
|
| `dialog-only` | in a dialog over the list, and has no page of its own | a small record with no notes, where a page would only repeat the dialog |
|
|
863
862
|
| `page` | on its own page, `/<entity>/:id` | a record too big for a dialog: a drawing, an ordered sub-list, long writing |
|
|
864
863
|
| `panel` | in the panel beside the list (`detailPanel`) | reading records one after another |
|
|
865
864
|
| `rows` | nowhere: every value is edited in its row (cell pattern 18) | a record of a field or two |
|
|
866
865
|
|
|
866
|
+
A list's title, column headers, menus, view pills and buttons are Title
|
|
867
|
+
Case ("Rows per Page", "Show Deleted", "View All"); its empty state and
|
|
868
|
+
messages are sentences ("No books yet") ([design-language.md "Words on screen"](design-language.md#words-on-screen-title-case-and-sentence-case)).
|
|
869
|
+
|
|
867
870
|
Whichever it is, the record edits in place (cell pattern 18, EntityView's
|
|
868
871
|
`edit`) rather than through an Edit button and a form page, wherever the
|
|
869
872
|
plan allows it.
|
|
@@ -981,13 +984,13 @@ const created = useNewRecordDialog()
|
|
|
981
984
|
back to the list's entry (over every record opened inside the dialog,
|
|
982
985
|
a linked one included). Focus goes back to the row, on its own link
|
|
983
986
|
when it has one, or the link that opened it.
|
|
984
|
-
- **Open
|
|
987
|
+
- **Open Full Page**, in the dialog's bar (not with `fullPage={false}`),
|
|
985
988
|
swaps the entry for the same address as the full page; Back from there
|
|
986
989
|
is the list.
|
|
987
990
|
- **The view is unchanged.** `EntityView` sees the dialog: its title
|
|
988
991
|
names the dialog (`label` names it while loading or on an error), the
|
|
989
992
|
back link gives way to the dialog's bar, and not found's "Back to …"
|
|
990
|
-
closes the dialog. Loading, error with Try
|
|
993
|
+
closes the dialog. Loading, error with Try Again, and the plain 404
|
|
991
994
|
show inside it. A screen that isn't an `EntityView` can read
|
|
992
995
|
`useRecordDialog()` (null on the full page) for its `close`, as a
|
|
993
996
|
Delete should, rather than navigating to the list:
|
|
@@ -1000,35 +1003,48 @@ const created = useNewRecordDialog()
|
|
|
1000
1003
|
|
|
1001
1004
|
Every record a list opens is an `EntityView`, the same one in a dialog
|
|
1002
1005
|
and on its page, and every one has the same shape, so a change to the
|
|
1003
|
-
view reaches them all.
|
|
1006
|
+
view reaches them all. Its field labels, tab names and buttons are Title
|
|
1007
|
+
Case ("Print Notes", "Hide Empty"); an empty value's words and its
|
|
1008
|
+
messages are sentences ("Not set") ([design-language.md "Words on screen"](design-language.md#words-on-screen-title-case-and-sentence-case)).
|
|
1009
|
+
A record uses the parts it has, in this order:
|
|
1004
1010
|
|
|
1005
1011
|
- **Header**: the title, edited in place (`titleEdit`); under it a
|
|
1006
1012
|
one-line summary field, edited in place (`subtitle`: a goal, a
|
|
1007
1013
|
description); beside it the status as a quick action (a picker saved
|
|
1008
|
-
at once)
|
|
1014
|
+
at once), drawn as its `StatusMark` (4.98: icon, colour and word), and
|
|
1015
|
+
other status-like fields as badges, edited in place. A
|
|
1009
1016
|
record with a face or a mark of its own (a person's avatar, a
|
|
1010
1017
|
service's logo, a cover) puts it left of all that (`leading`, 4.76).
|
|
1011
1018
|
`actions` holds the record's own commands in words (Run, New visit),
|
|
1012
1019
|
then Delete (soft, with Undo) as an `IconAction`, never Edit. Print
|
|
1013
1020
|
notes is an icon of EntityView's own.
|
|
1014
1021
|
- **Strip**: the record's key numbers and ratings (`strip`, a
|
|
1015
|
-
`KeyStats
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1022
|
+
`KeyStats`, as wide as its numbers since 4.98), each edited in place
|
|
1023
|
+
where it's shown.
|
|
1024
|
+
- **Sections** (4.98, no right rail): one column. The label/value facts
|
|
1025
|
+
are placed `rail`, which makes them the last tab, Details, on a record
|
|
1026
|
+
with tabs, and keeps them in the column on one without; the long text
|
|
1027
|
+
(notes, a body) is folded by its toggle headings (`foldKey`;
|
|
1019
1028
|
`## Safety {toggle="true"}`, the only headings that fold) with an
|
|
1020
|
-
Outline for a long one and Print
|
|
1021
|
-
|
|
1022
|
-
|
|
1029
|
+
Outline for a long one and Print Notes (`print`). A small box of short
|
|
1030
|
+
facts may sit beside the one tab it explains (placed `rail` with that
|
|
1031
|
+
`tab`), never free text. Every value edited in place (`edit`), a
|
|
1032
|
+
sub-item list included (`editInPlace({ kind: 'list' })`).
|
|
1023
1033
|
- **Tabs** (4.76), for a main column with **three or more groups of
|
|
1024
1034
|
long content** (the steps, where it's used, the reasoning): a `tab` on
|
|
1025
1035
|
each main section groups them under a tab list, the selected one in
|
|
1026
1036
|
`?tab=`. Fewer groups stay one scroll, folded by headings. A record's
|
|
1027
1037
|
Notes stay outside the tabs, above them, unless they are one tab's
|
|
1028
|
-
content; the
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1038
|
+
content; the strip never goes in a tab, and the facts are a tab of
|
|
1039
|
+
their own (Details, `detailsTab` to name it otherwise).
|
|
1040
|
+
- **Facts beside their labels** (`railFields`, `beside` by default since
|
|
1041
|
+
4.81), so the short facts read as a list of pairs rather than a column
|
|
1042
|
+
of labels; keep labels to a word or two.
|
|
1043
|
+
- **A tiny record** (4.98: a few fields and no notes, like a lookup's
|
|
1044
|
+
row) opens as a small card: `RecordDialogRoute look="card"`, usually
|
|
1045
|
+
with `fullPage={false}`. A 420px dialog (a sheet on a phone), its
|
|
1046
|
+
title, Delete, Open full page and Close on one line, its facts as
|
|
1047
|
+
plain rows.
|
|
1032
1048
|
- **Empty fields folded** (`emptyFields="fold"`, 4.81): each card shows
|
|
1033
1049
|
what's known, then "N empty" opens the rest, still edited in place.
|
|
1034
1050
|
- **A few equal things** (a plan's phases, a price at each store, a
|
|
@@ -1061,20 +1077,26 @@ shape (4.85):
|
|
|
1061
1077
|
takes one short partner (Series and Number). `<Field solo>` keeps a
|
|
1062
1078
|
short one alone where a pairing would read wrong. Under 48rem every
|
|
1063
1079
|
field takes its own row but two dates or two numbers (`DateField` says
|
|
1064
|
-
so itself; a date picker of your own with `kind="date"`).
|
|
1080
|
+
so itself; a date picker of your own with `kind="date"`). A choice
|
|
1081
|
+
(`ChoiceButtons`, found by itself, 4.98) shares a row only with another
|
|
1082
|
+
choice, two to a row; on a phone two stay side by side while both
|
|
1083
|
+
groups fit, and go one per row when they don't. Never a hand-made
|
|
1065
1084
|
`sm:grid-cols-2` row.
|
|
1066
1085
|
- **Order:** required first, the status next, long text last.
|
|
1067
1086
|
- **Required:** `<FieldLabel required>` (an asterisk, and `aria-required`
|
|
1068
1087
|
on the control it names). Nothing on an optional field: never
|
|
1069
1088
|
"(optional)".
|
|
1070
|
-
- **Labels** above the box,
|
|
1071
|
-
|
|
1089
|
+
- **Labels** above the box, in Title Case ("My Rating"), and the form's
|
|
1090
|
+
title, section titles and buttons too ("Save Changes"); help text,
|
|
1091
|
+
placeholders and messages stay sentence case ([design-language.md "Words on screen"](design-language.md#words-on-screen-title-case-and-sentence-case)).
|
|
1092
|
+
Help text (`FieldDescription`) only where the label can't say it, one short line.
|
|
1072
1093
|
A placeholder only for a format the box needs (`https://`), never an
|
|
1073
1094
|
example that looks like a value.
|
|
1074
1095
|
- **Messages say what to do**, in the app's voice: "Give it a title",
|
|
1075
1096
|
"Enter a full address, starting https://", never "Title is required".
|
|
1076
|
-
- **A status** is an `OptionSelect` with the same `render` (its
|
|
1077
|
-
its cell and the record: `inPlace.select`'s
|
|
1097
|
+
- **A status** is an `OptionSelect` with the same `render` (its
|
|
1098
|
+
`StatusMark`, 4.98) as its cell and the record: `inPlace.select`'s
|
|
1099
|
+
`{ value, label }` options.
|
|
1078
1100
|
- **The controls** (4.88): a choice of two to four short options is
|
|
1079
1101
|
`ChoiceButtons` (`inPlace.choice` in place), five or more an
|
|
1080
1102
|
`OptionSelect`. A date is `DateField`, typed ("3/14", "Mar 14",
|
|
@@ -1082,7 +1104,7 @@ shape (4.85):
|
|
|
1082
1104
|
`ReferenceCombobox` (`inPlace.reference` in place), several are
|
|
1083
1105
|
`MultiReference`, and a set the app loads whole (tags, a few dozen
|
|
1084
1106
|
records from its list query) is `MultiPick`, whose chips wrap and which
|
|
1085
|
-
shows 30 before "Show
|
|
1107
|
+
shows 30 before "Show All". Where a missing record stops the form, give
|
|
1086
1108
|
the reference `onCreate(name)`: open the other entity's `FormDialog`
|
|
1087
1109
|
with the name filled in, and resolve with the record it saves (or
|
|
1088
1110
|
`null` on Cancel).
|
|
@@ -1095,7 +1117,7 @@ shape (4.85):
|
|
|
1095
1117
|
`isSubmitting` (the save's own move to the record) doesn't. With
|
|
1096
1118
|
`errors`, a refused Add moves to the first problem and the bar says
|
|
1097
1119
|
"2 to fix". Both come free; the form draws a failed save as a `Notice`
|
|
1098
|
-
with Try
|
|
1120
|
+
with Try Again in its bar, which sticks to the window's bottom on a long
|
|
1099
1121
|
form.
|
|
1100
1122
|
- **The words:** "New book", "Add book" (the word Add on every create
|
|
1101
1123
|
form), and the toast after it "Added The Long Walk".
|
|
@@ -1108,8 +1130,14 @@ Every dialog is one of three widths, `DialogContent`'s `size` (4.82):
|
|
|
1108
1130
|
| --- | --- | --- | --- |
|
|
1109
1131
|
| `confirm` | 420px | a sheet from the bottom, the buttons full width, the action above Cancel | a question with two answers: a delete, "Discard your changes?" |
|
|
1110
1132
|
| `form` | 640px | the whole screen, the title and buttons pinned | a small form (`FormDialog`, which is this size) |
|
|
1111
|
-
| `record` | 1,120px | full width,
|
|
1133
|
+
| `record` | 1,120px | full width, with a 1rem margin round it | a record over its list (`RecordDialogRoute`, which is this size) |
|
|
1134
|
+
|
|
1135
|
+
A tiny record (a few fields, no notes) opens in the `confirm` width
|
|
1136
|
+
instead, as a small card: `RecordDialogRoute look="card"` (4.98).
|
|
1112
1137
|
|
|
1138
|
+
- **A dialog's title and buttons are Title Case** ("New Book", "Keep
|
|
1139
|
+
Editing"); a question or a message in it is a sentence ("Discard your
|
|
1140
|
+
changes?") ([design-language.md "Words on screen"](design-language.md#words-on-screen-title-case-and-sentence-case)).
|
|
1113
1141
|
- **Never a width of its own** (`sm:max-w-…` on `DialogContent`). A
|
|
1114
1142
|
confirm's buttons go in `DialogFooter`, Cancel first, so the phone's
|
|
1115
1143
|
sheet stacks the action on top.
|
|
@@ -1121,7 +1149,7 @@ Every dialog is one of three widths, `DialogContent`'s `size` (4.82):
|
|
|
1121
1149
|
its own, for any other way of leaving with something unsaved.
|
|
1122
1150
|
- **A form in a dialog is a `FormDialog`**: the title, the fields
|
|
1123
1151
|
scrolling between it and the pinned Cancel and Add, a failed save as a
|
|
1124
|
-
destructive `Notice` above the buttons with Try
|
|
1152
|
+
destructive `Notice` above the buttons with Try Again, and `dirty`.
|
|
1125
1153
|
Opened from a page with `open`/`onOpenChange`; as a list's `new` route
|
|
1126
1154
|
with neither (above).
|
|
1127
1155
|
- **Always a dialog, never a side panel**, except a phone's filters
|
|
@@ -1138,7 +1166,7 @@ sight.** What happened where the person is looking says so there.
|
|
|
1138
1166
|
| A delete (soft: with Undo) | `DeleteAction`'s toast, "Deleted The Long Walk" |
|
|
1139
1167
|
| A record made, landing on its own page | a toast, "Added The Long Walk" |
|
|
1140
1168
|
| An edit in place, a quick action, a toggle | the value itself and its "Saved" (cell pattern 18). **Never a toast** |
|
|
1141
|
-
| An action that failed, its button still there | `ActionError` beside the button: the reason and Try
|
|
1169
|
+
| An action that failed, its button still there | `ActionError` beside the button: the reason and Try Again |
|
|
1142
1170
|
| An action that failed after its page was left | a toast that stays until it's closed (`useAction` does this) |
|
|
1143
1171
|
| A job that takes a while | `JobStatus` beside its button: "Checking 3 of 12…", then the result stays |
|
|
1144
1172
|
| A job that finished after its page was left | a toast (`useAction`'s `doneAway`) |
|
|
@@ -1160,7 +1188,7 @@ sight.** What happened where the person is looking says so there.
|
|
|
1160
1188
|
and `onDelete={(why) => remove({ id, reason: why })}`, `why` trimmed
|
|
1161
1189
|
and `''` when nothing's typed. The rest is the same confirm: 420px, a
|
|
1162
1190
|
bottom sheet on a phone, Cancel then the filled destructive button, a
|
|
1163
|
-
refusal in the dialog with Try
|
|
1191
|
+
refusal in the dialog with Try Again (sending the same words), and
|
|
1164
1192
|
closing with something typed asks "Discard your changes?" first. One
|
|
1165
1193
|
field only: a confirm that needs more is a `FormDialog`.
|
|
1166
1194
|
- **A toast's words come from `notify.done(verb, name, { undo })`**: the
|
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
<!-- index: written by `npm run docs:index` in the package from the headings below; never edit it by hand -->
|
|
4
4
|
## Index
|
|
5
5
|
|
|
6
|
-
- [The rules that apply to every cell](#the-rules-that-apply-to-every-cell) · lines 74–
|
|
7
|
-
- [1. Plain text](#1-plain-text) · lines
|
|
8
|
-
- [2. Icon + label](#2-icon--label) · lines
|
|
9
|
-
- [3. Icon in a badge](#3-icon-in-a-badge) · lines
|
|
10
|
-
- [4. Icon only, label in a tooltip](#4-icon-only-label-in-a-tooltip) · lines
|
|
11
|
-
- [Several values: the icons side by side, every name in one tooltip](#several-values-the-icons-side-by-side-every-name-in-one-tooltip) · lines
|
|
12
|
-
- [5. Enum → tone-mapped badge](#5-enum--tone-mapped-badge) · lines
|
|
13
|
-
- [6. Multi-value enum, clustered](#6-multi-value-enum-clustered) · lines
|
|
14
|
-
- [7. Link as an outline button](#7-link-as-an-outline-button) · lines
|
|
15
|
-
- [8. Date, relative](#8-date-relative) · lines
|
|
16
|
-
- [9. Ordinal scale (bounded integer)](#9-ordinal-scale-bounded-integer) · lines
|
|
17
|
-
- [Two variants the package draws: a step bar and a star](#two-variants-the-package-draws-a-step-bar-and-a-star) · lines
|
|
18
|
-
- [10. Summary in the cell, detail in a popover](#10-summary-in-the-cell-detail-in-a-popover) · lines
|
|
19
|
-
- [A second example: what a row depends on](#a-second-example-what-a-row-depends-on) · lines
|
|
20
|
-
- [11. Number or currency — Unproven](#11-number-or-currency--unproven) · lines
|
|
21
|
-
- [12. Boolean](#12-boolean) · lines
|
|
22
|
-
- [13. Progress bar — Unproven](#13-progress-bar--unproven) · lines
|
|
23
|
-
- [The compact form: `ProgressRing`](#the-compact-form-progressring) · lines
|
|
24
|
-
- [14. Avatar and name — Unproven](#14-avatar-and-name--unproven) · lines
|
|
25
|
-
- [15. Yes/no you flip in the row](#15-yesno-you-flip-in-the-row) · lines
|
|
26
|
-
- [A variant: a pressed icon inside another value's cell](#a-variant-a-pressed-icon-inside-another-values-cell) · lines
|
|
27
|
-
- [16. Title linking to the record's view](#16-title-linking-to-the-records-view) · lines
|
|
28
|
-
- [17. Quick action on the view](#17-quick-action-on-the-view) · lines
|
|
29
|
-
- [18. Editable value](#18-editable-value) · lines
|
|
30
|
-
- [Presets: one line per field](#presets-one-line-per-field) · lines
|
|
31
|
-
- [Several fields edited as one](#several-fields-edited-as-one) · lines
|
|
32
|
-
- [A link and its label](#a-link-and-its-label) · lines
|
|
33
|
-
- [A list of sub-items](#a-list-of-sub-items) · lines
|
|
34
|
-
- [In a table's rows](#in-a-tables-rows) · lines
|
|
35
|
-
- [A table of a few short columns: `width="content"`](#a-table-of-a-few-short-columns-widthcontent) · lines
|
|
36
|
-
- [19. Stage circle for an ordered status](#19-stage-circle-for-an-ordered-status) · lines
|
|
37
|
-
- [20. Count linking to the related records](#20-count-linking-to-the-related-records) · lines
|
|
38
|
-
- [21. Rows grouped under headings, and a pill filter](#21-rows-grouped-under-headings-and-a-pill-filter) · lines
|
|
39
|
-
- [22. A highlighted row, and rows that are done](#22-a-highlighted-row-and-rows-that-are-done) · lines
|
|
40
|
-
- [24. A list's rows: hover, lines, rows per page](#24-a-lists-rows-hover-lines-rows-per-page) · lines
|
|
41
|
-
- [23. A Group menu, and a record read beside the list](#23-a-group-menu-and-a-record-read-beside-the-list) · lines
|
|
42
|
-
- [24. A stored colour beside its name](#24-a-stored-colour-beside-its-name) · lines
|
|
43
|
-
- [25. A list's tools: views, filters, columns, row actions, a phone's rows](#25-a-lists-tools-views-filters-columns-row-actions-a-phones-rows) · lines
|
|
44
|
-
- [26. A record's related list, capped](#26-a-records-related-list-capped) · lines
|
|
45
|
-
- [27. A repeat and its next time](#27-a-repeat-and-its-next-time) · lines
|
|
6
|
+
- [The rules that apply to every cell](#the-rules-that-apply-to-every-cell) · lines 74–97
|
|
7
|
+
- [1. Plain text](#1-plain-text) · lines 99–152
|
|
8
|
+
- [2. Icon + label](#2-icon--label) · lines 154–177
|
|
9
|
+
- [3. Icon in a badge](#3-icon-in-a-badge) · lines 179–192
|
|
10
|
+
- [4. Icon only, label in a tooltip](#4-icon-only-label-in-a-tooltip) · lines 194–271
|
|
11
|
+
- [Several values: the icons side by side, every name in one tooltip](#several-values-the-icons-side-by-side-every-name-in-one-tooltip) · lines 219–271
|
|
12
|
+
- [5. Enum → tone-mapped badge](#5-enum--tone-mapped-badge) · lines 273–293
|
|
13
|
+
- [6. Multi-value enum, clustered](#6-multi-value-enum-clustered) · lines 295–307
|
|
14
|
+
- [7. Link as an outline button](#7-link-as-an-outline-button) · lines 309–330
|
|
15
|
+
- [8. Date, relative](#8-date-relative) · lines 332–369
|
|
16
|
+
- [9. Ordinal scale (bounded integer)](#9-ordinal-scale-bounded-integer) · lines 371–419
|
|
17
|
+
- [Two variants the package draws: a step bar and a star](#two-variants-the-package-draws-a-step-bar-and-a-star) · lines 389–419
|
|
18
|
+
- [10. Summary in the cell, detail in a popover](#10-summary-in-the-cell-detail-in-a-popover) · lines 421–471
|
|
19
|
+
- [A second example: what a row depends on](#a-second-example-what-a-row-depends-on) · lines 439–471
|
|
20
|
+
- [11. Number or currency — Unproven](#11-number-or-currency--unproven) · lines 473–513
|
|
21
|
+
- [12. Boolean](#12-boolean) · lines 515–545
|
|
22
|
+
- [13. Progress bar — Unproven](#13-progress-bar--unproven) · lines 547–583
|
|
23
|
+
- [The compact form: `ProgressRing`](#the-compact-form-progressring) · lines 567–583
|
|
24
|
+
- [14. Avatar and name — Unproven](#14-avatar-and-name--unproven) · lines 585–602
|
|
25
|
+
- [15. Yes/no you flip in the row](#15-yesno-you-flip-in-the-row) · lines 604–713
|
|
26
|
+
- [A variant: a pressed icon inside another value's cell](#a-variant-a-pressed-icon-inside-another-values-cell) · lines 630–713
|
|
27
|
+
- [16. Title linking to the record's view](#16-title-linking-to-the-records-view) · lines 715–750
|
|
28
|
+
- [17. Quick action on the view](#17-quick-action-on-the-view) · lines 752–825
|
|
29
|
+
- [18. Editable value](#18-editable-value) · lines 827–1505
|
|
30
|
+
- [Presets: one line per field](#presets-one-line-per-field) · lines 1137–1205
|
|
31
|
+
- [Several fields edited as one](#several-fields-edited-as-one) · lines 1207–1243
|
|
32
|
+
- [A link and its label](#a-link-and-its-label) · lines 1245–1269
|
|
33
|
+
- [A list of sub-items](#a-list-of-sub-items) · lines 1271–1404
|
|
34
|
+
- [In a table's rows](#in-a-tables-rows) · lines 1406–1491
|
|
35
|
+
- [A table of a few short columns: `width="content"`](#a-table-of-a-few-short-columns-widthcontent) · lines 1493–1505
|
|
36
|
+
- [19. Stage circle for an ordered status](#19-stage-circle-for-an-ordered-status) · lines 1507–1573
|
|
37
|
+
- [20. Count linking to the related records](#20-count-linking-to-the-related-records) · lines 1575–1639
|
|
38
|
+
- [21. Rows grouped under headings, and a pill filter](#21-rows-grouped-under-headings-and-a-pill-filter) · lines 1641–1739
|
|
39
|
+
- [22. A highlighted row, and rows that are done](#22-a-highlighted-row-and-rows-that-are-done) · lines 1741–1770
|
|
40
|
+
- [24. A list's rows: hover, lines, rows per page](#24-a-lists-rows-hover-lines-rows-per-page) · lines 1772–1810
|
|
41
|
+
- [23. A Group menu, and a record read beside the list](#23-a-group-menu-and-a-record-read-beside-the-list) · lines 1812–1888
|
|
42
|
+
- [24. A stored colour beside its name](#24-a-stored-colour-beside-its-name) · lines 1890–1913
|
|
43
|
+
- [25. A list's tools: views, filters, columns, row actions, a phone's rows](#25-a-lists-tools-views-filters-columns-row-actions-a-phones-rows) · lines 1915–2001
|
|
44
|
+
- [26. A record's related list, capped](#26-a-records-related-list-capped) · lines 2003–2039
|
|
45
|
+
- [27. A repeat and its next time](#27-a-repeat-and-its-next-time) · lines 2041–2086
|
|
46
46
|
|
|
47
47
|
<!-- /index -->
|
|
48
48
|
|
|
@@ -88,6 +88,9 @@ too, so it ships here for every app.
|
|
|
88
88
|
falling back.
|
|
89
89
|
- **A cell that reads across the row needs `row.original`**, not just
|
|
90
90
|
`getValue()`.
|
|
91
|
+
- **Column headers are Title Case** ("Available From", "Rows per Page");
|
|
92
|
+
a cell's value is written as its data is, and an empty value's words
|
|
93
|
+
("Not set") are a sentence ([design-language.md "Words on screen"](design-language.md#words-on-screen-title-case-and-sentence-case)).
|
|
91
94
|
- **Give a repeated control a row-specific `aria-label`.** Twenty-five
|
|
92
95
|
buttons all named "Link" are useless to a screen reader.
|
|
93
96
|
|
|
@@ -273,6 +276,13 @@ A many-valued enum that collapses to good / neutral / bad. **The grouping
|
|
|
273
276
|
is the decision, not the style** — see
|
|
274
277
|
[`design-language.md`](design-language.md#mapping-an-enum-to-tones).
|
|
275
278
|
|
|
279
|
+
**A record's status** is not this pattern since 4.98: it's a
|
|
280
|
+
`StatusMark` (an icon, a colour and the word, one of six kinds; see
|
|
281
|
+
[`design-language.md` "Status marks"](design-language.md#status-marks)),
|
|
282
|
+
`<StatusMark kind={STATUS_KIND[status]}>{STATUS_LABELS[status]}</StatusMark>`
|
|
283
|
+
in the cell. A tone badge stays for the other status-like values (a
|
|
284
|
+
computed progress, a source's health).
|
|
285
|
+
|
|
276
286
|
An **ordered** status (a lifecycle every record moves through toward
|
|
277
287
|
*done*) reads better as a stage circle beside the word (pattern 19);
|
|
278
288
|
the tone badge stays right for a status with no order, or one whose end
|
|
@@ -892,7 +902,7 @@ and in place: every option a toggle chip with its icon or colour where
|
|
|
892
902
|
the app draws one (`icon`), the picked ones pressed with a check, and a
|
|
893
903
|
filter box above them, not in front of them. The chips wrap at every
|
|
894
904
|
width (4.88); past 30 options (`limit`) it shows the picked ones and the
|
|
895
|
-
first 30, then "Show
|
|
905
|
+
first 30, then "Show All N", and a filter searches them all. The options
|
|
896
906
|
can be the app's list of records (its query's rows as `{ id, label }`,
|
|
897
907
|
`loading` meanwhile), so links to a few dozen other records use it too.
|
|
898
908
|
Larger sets, or ones that grow with the data, keep `MultiReference`
|
|
@@ -1037,7 +1047,7 @@ description: editInPlace({
|
|
|
1037
1047
|
```
|
|
1038
1048
|
|
|
1039
1049
|
**Leaving the page** (a link, Back) while a value holds unsaved text asks
|
|
1040
|
-
"Discard your changes?" first (Keep
|
|
1050
|
+
"Discard your changes?" first (Keep Editing / Discard); closing the tab
|
|
1041
1051
|
asks through the browser. A link press doesn't save the field on its
|
|
1042
1052
|
way out: the prompt decides.
|
|
1043
1053
|
|
|
@@ -1097,7 +1107,7 @@ const price = editInPlace({
|
|
|
1097
1107
|
highlighted in four colours (amber, yellow, green, red) from the
|
|
1098
1108
|
toolbars' Highlight menu or with "/highlight", and un-highlighted;
|
|
1099
1109
|
they're saved as `==words==` (`=={green}words==` for the others), plain
|
|
1100
|
-
Markdown, and `<Markdown>` shows them. The fixed toolbar's Full
|
|
1110
|
+
Markdown, and `<Markdown>` shows them. The fixed toolbar's Full Screen
|
|
1101
1111
|
button fills the window with the field (Esc leaves; nothing is lost or
|
|
1102
1112
|
saved by it), and on a touch screen or under 768px it carries Indent
|
|
1103
1113
|
and Outdent for list items, where there is no Tab. A field with only the
|
|
@@ -1631,7 +1641,7 @@ What the cell decides:
|
|
|
1631
1641
|
## 21. Rows grouped under headings, and a pill filter
|
|
1632
1642
|
|
|
1633
1643
|
A feed, an activity log or a timeline reads best as rows under day
|
|
1634
|
-
headings (Today, Yesterday, Earlier
|
|
1644
|
+
headings (Today, Yesterday, Earlier This Week, then each older week, then
|
|
1635
1645
|
months), each heading with a count and a summary ("4 · 1 h 12 m"). The
|
|
1636
1646
|
same screens usually want one quick filter as pills above the rows (All /
|
|
1637
1647
|
Video / Audio / Text, one pressed at a time) rather than a dropdown: there
|
|
@@ -1652,7 +1662,7 @@ const { page, filters, setFilter, setPage } = useTableUrlState(['kind'])
|
|
|
1652
1662
|
groupBy={byPublished}
|
|
1653
1663
|
groupSummary={(items) => `${items.length} · ${duration(sum(items, 'minutes'))}`}
|
|
1654
1664
|
emptyTitle={filters.kind ? `No ${KIND_LABELS[filters.kind].toLowerCase()} items` : 'Nothing in the feed yet'}
|
|
1655
|
-
emptyAction={filters.kind ? <Button variant="outline" onClick={() => setFilter('kind', '')}>Show
|
|
1665
|
+
emptyAction={filters.kind ? <Button variant="outline" onClick={() => setFilter('kind', '')}>Show All Types</Button> : undefined}
|
|
1656
1666
|
toolbar={
|
|
1657
1667
|
<PillFilter label="Type" value={filters.kind} onValueChange={(kind) => setFilter('kind', kind)}
|
|
1658
1668
|
options={KINDS.map((kind) => ({ value: kind, label: KIND_LABELS[kind] }))} />
|
|
@@ -1672,7 +1682,7 @@ const { page, filters, setFilter, setPage } = useTableUrlState(['kind'])
|
|
|
1672
1682
|
saving change never moves a row to the wrong day. Weeks start on
|
|
1673
1683
|
Monday (`weekStartsOn: 0` for Sunday). Four weeks back it switches to
|
|
1674
1684
|
months ("September", "December 2025"). A later date is Upcoming, no
|
|
1675
|
-
date is No
|
|
1685
|
+
date is No Date. Pin `now` in a test, as for pattern 8.
|
|
1676
1686
|
- **A heading is a row header for its group** (`<th scope="rowgroup">`
|
|
1677
1687
|
in the group's own `<tbody>`), so a screen reader names a cell's group
|
|
1678
1688
|
as it names its column. It stays in view while a wide table scrolls
|
|
@@ -1776,7 +1786,7 @@ standard), and the two choices it leaves an app.
|
|
|
1776
1786
|
- **No zebra stripes:** rows are told apart by the line under each.
|
|
1777
1787
|
`striped` brings the stripes back for an app that wants them. Tables in
|
|
1778
1788
|
notes keep theirs (4.67.1).
|
|
1779
|
-
- **Rows per
|
|
1789
|
+
- **Rows per Page:** a menu in the pagination bar, from
|
|
1780
1790
|
`useTableUrlState`, which keeps the pick in the URL (`?size=`) and on
|
|
1781
1791
|
this device:
|
|
1782
1792
|
|
|
@@ -1833,7 +1843,7 @@ const { grouping, setGrouping, ...table } = useTableUrlState(FILTERS, MULTI, VIE
|
|
|
1833
1843
|
- **None is the default**, and the table is exactly as it was until a
|
|
1834
1844
|
grouping is picked. The Group menu sits at the end of the toolbar
|
|
1835
1845
|
(before a layout switch): None, then each grouping. While grouped a
|
|
1836
|
-
Fold
|
|
1846
|
+
Fold All button joins it, and the menu says which ("Group: Status").
|
|
1837
1847
|
- **Only choice fields**: each group is one of the field's options, in
|
|
1838
1848
|
the options' order (the order the form lists them), so give the same
|
|
1839
1849
|
options list the column and the form use. A multi-value field (an
|
|
@@ -1954,7 +1964,7 @@ const { filters, multiFilters, setFilter, setFilters, setMultiFilter, activeView
|
|
|
1954
1964
|
views, each with its `label`, in order. The view on is pressed; none is
|
|
1955
1965
|
once the filters move off every view. Under 48rem they stay on one line
|
|
1956
1966
|
that scrolls sideways. Replaces a hand-written row of view buttons; a
|
|
1957
|
-
Deleted view goes in ListHeader's ⋯ menu as Show
|
|
1967
|
+
Deleted view goes in ListHeader's ⋯ menu as Show Deleted instead.
|
|
1958
1968
|
- **The filters** (L4): `FilterBar` holds search, the two filters used
|
|
1959
1969
|
most (`primary`), and the rest behind Filters (`secondary`, with their
|
|
1960
1970
|
chips, as `SecondaryFilters` draws them). No captions over controls:
|
|
@@ -1993,7 +2003,7 @@ const { filters, multiFilters, setFilter, setFilters, setMultiFilter, activeView
|
|
|
1993
2003
|
## 26. A record's related list, capped
|
|
1994
2004
|
|
|
1995
2005
|
A list of records related to this one, in a section of its view (a
|
|
1996
|
-
provider's visits, a project's tasks): the ten newest, then View
|
|
2006
|
+
provider's visits, a project's tasks): the ten newest, then View All N to
|
|
1997
2007
|
the whole list filtered to this record (R8), so a long list doesn't push
|
|
1998
2008
|
the rest of the record away. With tabs (EntityView's), each such list
|
|
1999
2009
|
counts as a group.
|
|
@@ -2017,16 +2027,16 @@ const visits = useVisits({ provider: provider.id, sort: 'date:desc', page: 1, pa
|
|
|
2017
2027
|
```
|
|
2018
2028
|
|
|
2019
2029
|
- **`limit`** is 10 unless set; ask the server for that many, newest
|
|
2020
|
-
first. No pagination bar, and the headers aren't sort buttons (View
|
|
2030
|
+
first. No pagination bar, and the headers aren't sort buttons (View All
|
|
2021
2031
|
has the list's own sorting).
|
|
2022
|
-
- **View
|
|
2023
|
-
"View
|
|
2032
|
+
- **View All** shows only when `total` is over the rows shown, its text
|
|
2033
|
+
"View All 19" unless `viewAll.label` says otherwise. It's a link, so a
|
|
2024
2034
|
modified click opens a tab.
|
|
2025
2035
|
- **`opens` is required**, as on any list. Everything else a DataTable
|
|
2026
2036
|
takes for its rows (`rowActions`, `phoneRow`, `highlightRow`) works.
|
|
2027
2037
|
- On a DataTable of your own, `limit` and `viewAll` do the same.
|
|
2028
2038
|
- The fixture `app/DataTable tools` Related draws a capped list and a
|
|
2029
|
-
short one with no link; the spec follows View
|
|
2039
|
+
short one with no link; the spec follows View All.
|
|
2030
2040
|
|
|
2031
2041
|
## 27. A repeat and its next time
|
|
2032
2042
|
|