Repository navigation
chore: land 1 reviewed pull request (batch 98) - #13059
Conversation
…-click prop [skip ci]
… dense best practice, example columns) [skip ci]
…e params [skip ci]
…nce without generic words [skip ci]
[skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec df796f4 |
There was a problem hiding this comment.
Approved pending CI: the heavy CI jobs have not run on this head yet, and they still have to pass before merge.
The comparator wording, the new sorting example and the columns sentence match what the sort hook and Table do today, and the public API is unchanged, so nothing needs to change. One optional note: "A Date sorts by its time" holds for years 0000 to 9999; the comparator sorts a Date by its ISO text, so a Date after year 9999 sorts first, which a getTime() comparison in the hook would fix in a later change.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Description: it merges the reviewed docs pull request onto current main as a merge commit. Verified: the head's two parents are main at the base and that pull request's head.
- Description: the listed pull request is the useTableSortableState comparator and Table row-click docs change. Verified: its title and head match.
- Description: the useTableSortableState page states the comparator rules. Verified:
useTableSortableState.doc.mjs:58,:115,:142and:165. - Description: the Table docs say Table has no row-click prop. Verified:
Table.doc.mjs:208;Table/types.tshas no row-click prop. - Description: docs only, no behavior change. Verified: only doc strings and a release note change; the sort tests pass and the built API surface is identical.
- Description: no records change, so the writing rubric does not apply. Verified: no file under
docs/changes. - Description: this branch checks that the change builds and tests on current main. Partly verified: Lint and the CLI smoke test pass at this head; the heavy CI jobs have not run yet.
- Description: when this merges, the listed pull request is closed with a note. Not checkable here: it is a merge-time step.
- Release note: arrays and plain objects have no sort text, so they need a comparator. Verified:
useTableSortableState.tsx:46-59and:204; a probe keeps them equal, in data order, before text ascending. - Release note: a Date sorts by its time. Verified for years 0000 to 9999:
useTableSortableState.tsx:47-48and a probe down to the millisecond; a Date after year 9999 sorts first (non-blocking, inherited). - Release note: an Invalid Date sorts with the missing values. Verified:
useTableSortableState.tsx:38-44and:185-195; the Invalid Date tests pass. - Release note: a new useTableSortable example sorts by a status rank and a tags array. Verified:
useTableSortable.doc.mjs:57-86type-checks against this head and, rendered, orders blocked, active, done. - Release note: Table's
columnsprop says there is no onRowClick prop and to put a Link or Button in the main cell's renderCell. Verified:Table.doc.mjs:208, printed on thecolumnsline of the short Table answer. - Release note: no API or behavior changes. Verified: the built API surface of Core and the seven themes has no changed row.
- File
.changeset/sortable-state-options-table-no-row-click.md: clear; the changeset check accepts it. - File
packages/core/src/Table/Table.doc.mjs: clear. - File
packages/core/src/Table/plugins/sortable/useTableSortableState.doc.mjs: clear. - File
packages/core/src/Table/useTableSortable.doc.mjs: clear.
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TableBody | 6.6 kB (0) · 3.3 kB CSS (0) | — | — · ✓ · ✗ |
| TableFooter | 3.5 kB (0) · 3.3 kB CSS (0) | — | — · ✓ · ✗ |
| TableHeader | 3.5 kB (0) · 3.3 kB CSS (0) | — | — · ✓ · ✗ |
5 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TableRow | 7.2 kB (0) · 4.1 kB CSS (0) | — | — · ✓ · ✗ |
| Table | 123.8 kB (0) · 21.1 kB CSS (0) | — | — · ✓ · — |
| TableCell | 105.9 kB (0) · 20.1 kB CSS (0) | — | — · ✓ · ✓ |
| TableHeaderCell | 105.8 kB (0) · 20.0 kB CSS (0) | — | — · ✓ · ✓ |
| TableSelectionToolbar | 77.7 kB (0) · 14.5 kB CSS (0) | — | — · ✓ · ✓ |
Package size: @astryxdesign/core 7.85 MB packed (+460 B); no new dependencies.
Touched components checked; for the full suites, add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
Merges this reviewed pull request onto current main as a merge commit. This branch checks that it builds and tests on today's main.
Scope
Core docs: the useTableSortableState page states the comparator rules, and the Table docs say Table has no row-click prop. Docs only; no behavior change.
Records
None.
Writing rubric results
No record changes, so R1–R7 do not apply.
When this merges, the pull request above is closed with a note that names this one.