Repository navigation
spec(Table): a drawn row divider keeps the row border (FR14); row expansion glides with animatedLayout (FR15) - #8652
Conversation
|
/approve-spec 0da1a82 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
|
There was a problem hiding this comment.
Changes requested on FR14's wording; the decision itself is owner-approved. FR14 says pinned cells always draw the row divider with a pseudo-element, but today pinned cells keep the real collapsed border (useTableStickyColumns.tsx) and Table rows never glide, while FR14's Basis and Evidence state cells are empty. Please state the rule as the visible result (wherever Table shows a row divider, including mid-glide and in pinned columns, it has the row border's width, style and colour), drop the pseudo-element and border-model wording from FR14 and DEC-3 per architecture:knowledge-contracts INV18, and fill Basis (component:Table/DEC-3), Evidence state (not yet implemented) and the audit section. The new commit then needs a fresh /approve-spec <head SHA> from an engineering owner.
[Automated review]
| | FR11 | `transformColumns` completes before element transforms. Table then applies table, header-cell/header-row, body-cell/body-row, scroll-wrapper, and context phases at their render points. Header-cell contributions use `before`, `content`, `after`, `overlay`, and `below` slots. Context transforms run in reverse so the first plugin becomes the outermost provider. | Current source, types, and tests | Transform application is tested; complete cross-phase order is source-inspected | | ||
| | FR12 | When built-in and named plugin references are unchanged, Table reuses the resolved plugin array; unknown/custom plugin value identity and insertion order remain stable inputs to memoization. | Current source and performance tests | Current performance contract; focused named-order coverage is partial | | ||
| | FR13 | In data-driven mode, each explicit column whose `width` is omitted keeps one equal flexible share and a 60px readability floor. A column sets its own floor with `proportional(value, {minWidth})`, which replaces the 60px floor for that column; Table has no table-wide floor setting. Resolution is a pure function of the final column definitions: row values, rendered header/body measurement, locale, sorting, filtering, virtualization, and loading state do not change any floor. Explicit pixel and proportional widths retain their authored floors. When the resolved floors exceed available inline space, the existing Scroll region provides horizontal overflow. | `component:Table/DEC-2`; current source and tests | Verified by width-resolution unit coverage and the ResponsiveScroll real-browser geometry fixture | | ||
| | FR14 | Whenever a row divider is drawn by a pseudo-element instead of the real border (during a row glide, and always on pinned cells), it takes its width, style and colour from the same source as the row's border: the theme's tokens and any app override on `tr`, `tbody` or `td` borders, so customizations still show. The border model is unchanged (DEC-3). | | | |
There was a problem hiding this comment.
FR14 says pinned cells always draw the divider with a pseudo-element, but useTableStickyColumns.tsx keeps pinned cells on the real collapsed border (backgroundClip: 'padding-box', with ::before for the row overlay and ::after for the edge shadow), and no Table code glides rows. The Basis and Evidence state cells are also empty. Suggested: state the visible rule ("Wherever Table shows a row divider, including while rows glide and in pinned columns, the divider has the width, style and colour the row's border would have: the theme's tokens and any app override on tr, tbody or td borders."), set Basis to component:Table/DEC-3, and set Evidence state to "Not implemented: rows do not glide and pinned cells keep the collapsed cell border".
| | FR9-FR11 | `Table.test.tsx`, `types.ts`, `BaseTable.tsx`, and `useBaseTablePlugins.ts` | Built-in plus known and custom named plugins; every transform phase | Sequential composition, base-before-user behavior, transform application, and slot output have focused coverage; complete known-name sorting, phase order, exception continuation, and context nesting remain source-inspected. | `audit:Table/plugins` | | ||
| | FR12, PR1 | `Table.perf.test.tsx` plus `useBaseTablePlugins.ts` source inspection | Same plugin references, recreated record, and changed plugin value | Unchanged plugin values must preserve the resolved array and representative no-op row-update budgets; focused named-record identity coverage remains partial. | `audit:Table/performance` | | ||
| | FR13, PR3 | `Table.test.tsx`, `plugins/columnResize/useTableColumnResize.test.tsx`, `plugins/stickyColumns/useTableStickyColumns.test.tsx`, and `Table.stories.tsx` ResponsiveScroll play assertions | Width-less columns with empty, short, and long-token rows; mixed explicit widths; pinned columns; narrow and fitting containers | Removing the 60px floor, deriving it from row content, changing explicit width semantics, desynchronizing resize bounds or sticky offsets, or preventing the existing Scroll region from activating fails focused unit or real-browser geometry assertions. | `audit:Table/layout` | | ||
| | FR14 | Real-browser computed-style checks of the divider mid-glide and on pinned cells | a theme with a custom divider colour; an app override of a row's border; both mid-glide and on a pinned cell | a pseudo-element divider whose width, style or colour differs from the row's border, or that drops a theme or app override, fails | | |
There was a problem hiding this comment.
No computed-style check of this kind exists at this head and the audit section is empty; name the audit section, and keep the row marked pending until the check lands.
| When a row's real border is hidden, during a row glide or on a pinned cell, a | ||
| pseudo-element draws the divider instead. It reads the same width, style and |
There was a problem hiding this comment.
This sentence fixes the drawing technique (a pseudo-element) in the decision; architecture:knowledge-contracts INV18 keeps internal mechanisms out of product contracts unless they are public. "A divider drawn in place of the real border reads the row border's width, style and colour" keeps the decision without the mechanism.
|
/approve-spec e062e58 |
…ble joins AST-105's adopters
|
/approve-spec 2aadc17 |
There was a problem hiding this comment.
Changes requested: FR14 now states the visible result and the direction of FR14 and FR15 is owner-approved, but FR15 conflicts with two current spec:AST-105 claims that this pull request leaves unchanged. Please either add a spec:AST-105 Coverage case for table rows, since a table row takes no end margin and its out-of-coverage rule makes a closing detail row hide at once with the rows landing at once, or narrow FR15's close to that behaviour. Please also name FR15's input (for example, useTableRowExpansion's animatedLayout option), amending spec:AST-105 FR1's "one prop" if it is a hook option, and update the Table record's lines that say it adds no public API; the new commit then needs a fresh /approve-spec <head SHA> from an engineering owner.
[Automated review]
| | FR12 | When built-in and named plugin references are unchanged, Table reuses the resolved plugin array; unknown/custom plugin value identity and insertion order remain stable inputs to memoization. | Current source and performance tests | Current performance contract; focused named-order coverage is partial | | ||
| | FR13 | In data-driven mode, each explicit column whose `width` is omitted keeps one equal flexible share and a 60px readability floor. A column sets its own floor with `proportional(value, {minWidth})`, which replaces the 60px floor for that column; Table has no table-wide floor setting. Resolution is a pure function of the final column definitions: row values, rendered header/body measurement, locale, sorting, filtering, virtualization, and loading state do not change any floor. Explicit pixel and proportional widths retain their authored floors. When the resolved floors exceed available inline space, the existing Scroll region provides horizontal overflow. | `component:Table/DEC-2`; current source and tests | Verified by width-resolution unit coverage and the ResponsiveScroll real-browser geometry fixture | | ||
| | FR14 | Wherever Table shows a row divider, including while rows glide and in pinned columns, the divider has the width, style and colour the row's border would have: the theme's tokens and any app override on `tr`, `tbody` or `td` borders, so customizations still show. | `component:Table/DEC-3` | Not implemented: rows do not glide yet, and the pinned-column divider is pending | | ||
| | FR15 | Row expansion accepts the `animatedLayout` handle (`spec:AST-105`'s opt-in): when an Expanded detail row opens or closes, the panel plays in or out, the rows after it glide to their new places, and the Expansion glyph turns on the same motion; under reduced motion the rows move without travel (`spec:AST-105` FR4). Without the handle, rows change at once as today. | `spec:AST-105` FR1, FR4; owner decision, 2026-10-26 | Not implemented | |
There was a problem hiding this comment.
The close conflicts with spec:AST-105. A table row takes no margins, so AST-105's out-of-coverage rule ("a closing element whose space no end margin frees … hides at once, without its exit, and the content after it takes its final place at once") applies to the detail tr, while this row promises a played-out panel over gliding rows. Either add an AST-105 Coverage case, with its test, for the rows after a changed table row, or narrow the close to land at once.
The input is unnamed. AST-105 FR1 asks the adopting record to document its animatedLayout prop; please name the exact input (a useTableRowExpansion option or a Table prop) and its default, and update this record's "New public API" non-goal and "this documentation adds no API" line.
| - No Core component takes `animatedLayout` yet; TreeList, Collapsible, and | ||
| Table's row expansion (`component:Table` FR15) are the first adopters, and | ||
| their docs gain the `animatedLayout` handle. |
There was a problem hiding this comment.
Changing "prop" to "handle" here leaves FR1 ("One hook, one handle, one prop … through that component's animatedLayout prop") as it is. If Table's row expansion takes the handle as a useTableRowExpansion option, FR1 needs to admit that channel; Coverage also has no case for table rows, which component:Table FR15's close depends on.
…t option and its close; AST-105 admits a hook option and covers table rows
|
/approve-spec 3e6b107 |
There was a problem hiding this comment.
Changes requested on two small points in the Table record; the direction of FR14, FR15 and the AST-105 amendments is owner-approved for this head.
packages/core/src/Table/Table.spec.md:321-322still says the record "adds no API", but FR15 now addsuseTableRowExpansion'sanimatedLayoutoption, so that line needs to say so.- FR14 covers every row divider, but its evidence state and verification row leave out the open detail panel's divider, which today draws default tokens on a raw cell that
table-celloverrides do not reach (useTableRowExpansion.tsx:219-229); please list it there, or scope FR14 to the glide and pinned columns as DEC-3 is.
Optionally, in the same commit, carve table detail rows out of AST-105's out-of-coverage bullet (spec.md:140-143) and add useTableRowExpansion to its affects_consumer_docs. The new commit then needs a fresh /approve-spec <full head SHA> from an engineering owner, which the author can post as one.
[Automated review]
| | FR12 | When built-in and named plugin references are unchanged, Table reuses the resolved plugin array; unknown/custom plugin value identity and insertion order remain stable inputs to memoization. | Current source and performance tests | Current performance contract; focused named-order coverage is partial | | ||
| | FR13 | In data-driven mode, each explicit column whose `width` is omitted keeps one equal flexible share and a 60px readability floor. A column sets its own floor with `proportional(value, {minWidth})`, which replaces the 60px floor for that column; Table has no table-wide floor setting. Resolution is a pure function of the final column definitions: row values, rendered header/body measurement, locale, sorting, filtering, virtualization, and loading state do not change any floor. Explicit pixel and proportional widths retain their authored floors. When the resolved floors exceed available inline space, the existing Scroll region provides horizontal overflow. | `component:Table/DEC-2`; current source and tests | Verified by width-resolution unit coverage and the ResponsiveScroll real-browser geometry fixture | | ||
| | FR14 | Wherever Table shows a row divider, including while rows glide and in pinned columns, the divider has the width, style and colour the row's border would have: the theme's tokens and any app override on `tr`, `tbody` or `td` borders, so customizations still show. | `component:Table/DEC-3` | Not implemented: rows do not glide yet, and the pinned-column divider is pending | | ||
| | FR15 | `useTableRowExpansion` takes an `animatedLayout` option, the handle `spec:AST-105` FR1 defines: when an Expanded detail row opens, the panel plays in and the rows after it glide to their new places; when one closes, it hides at once and the rows after it glide up into its space (`spec:AST-105` Coverage). The Expansion glyph turns on the same motion; under reduced motion the rows move without travel (`spec:AST-105` FR4). Without the option, rows change at once. | `spec:AST-105` FR1, FR4; owner decision, 2026-10-26 | Not implemented | |
There was a problem hiding this comment.
FR15 adds a public input, but Table.spec.md:321-322 still says "this documentation adds no API". Please end that line with something like "this record adds only useTableRowExpansion's optional animatedLayout option (FR15)" so the record agrees with itself.
| | FR11 | `transformColumns` completes before element transforms. Table then applies table, header-cell/header-row, body-cell/body-row, scroll-wrapper, and context phases at their render points. Header-cell contributions use `before`, `content`, `after`, `overlay`, and `below` slots. Context transforms run in reverse so the first plugin becomes the outermost provider. | Current source, types, and tests | Transform application is tested; complete cross-phase order is source-inspected | | ||
| | FR12 | When built-in and named plugin references are unchanged, Table reuses the resolved plugin array; unknown/custom plugin value identity and insertion order remain stable inputs to memoization. | Current source and performance tests | Current performance contract; focused named-order coverage is partial | | ||
| | FR13 | In data-driven mode, each explicit column whose `width` is omitted keeps one equal flexible share and a 60px readability floor. A column sets its own floor with `proportional(value, {minWidth})`, which replaces the 60px floor for that column; Table has no table-wide floor setting. Resolution is a pure function of the final column definitions: row values, rendered header/body measurement, locale, sorting, filtering, virtualization, and loading state do not change any floor. Explicit pixel and proportional widths retain their authored floors. When the resolved floors exceed available inline space, the existing Scroll region provides horizontal overflow. | `component:Table/DEC-2`; current source and tests | Verified by width-resolution unit coverage and the ResponsiveScroll real-browser geometry fixture | | ||
| | FR14 | Wherever Table shows a row divider, including while rows glide and in pinned columns, the divider has the width, style and colour the row's border would have: the theme's tokens and any app override on `tr`, `tbody` or `td` borders, so customizations still show. | `component:Table/DEC-3` | Not implemented: rows do not glide yet, and the pinned-column divider is pending | |
There was a problem hiding this comment.
"Wherever Table shows a row divider" also covers the open detail panel's divider. Today the expanded row's cells give up their border and ExpansionPanelCell draws a fixed --border-width solid --color-border line on a raw td without the table-cell theme class (useTableRowExpansion.tsx:216-229, :346-366), so a table-cell override never reaches it. Please add that case to the Evidence state here and an open detail panel to the FR14 verification row (:341), or scope FR14 to the glide and pinned columns as DEC-3 is.
| | Portals and top-layer content | Never moved | A popover open from a following row | | ||
| | Elements already moving | Keep their running motion and add the new move to it | Two changes 100 ms apart | | ||
| | Nested areas | Motion stops at the area of the handle the changed component holds; an inner area moves as one unit within an outer one | An area inside an area, changed in the inner one | | ||
| | Table rows after an opening or closing detail row | The rows glide; a closing detail row hides at once, and its space is held while the rows after it glide up | A detail row opening and closing in a table with a pinned column | |
There was a problem hiding this comment.
Non-blocking: a table row takes no margin, so the unamended out-of-coverage bullet (:140-143, "a closing element whose space no end margin frees ... the content after it takes its final place at once") still reads onto this case. Adding "other than a table detail row (Coverage)" to that bullet removes the overlap.
| the first adopters, and their docs gain the `animatedLayout` prop. | ||
| - No Core component takes `animatedLayout` yet; TreeList, Collapsible, and | ||
| Table's row expansion (`component:Table` FR15) are the first adopters, and | ||
| their docs gain the `animatedLayout` handle. |
There was a problem hiding this comment.
Non-blocking: this line says the docs of Table's row expansion gain the handle, but affects_consumer_docs (:16) still lists only useAnimatedLayout, TreeList and Collapsible; adding useTableRowExpansion keeps the frontmatter in step.
|
/approve-spec 5a556e5 |
There was a problem hiding this comment.
Approval recommended: both records are owner-approved for this head, and the four points raised on the previous revision are fixed (the Table record now names its one new API, FR14's evidence covers the open detail panel's divider, and AST-105 excepts table detail rows from its out-of-coverage rule and lists useTableRowExpansion). Before landing, consider refreshing the description, which still says a closing panel plays out, while FR15 and the AST-105 Coverage row hide it at once. Any further commit needs a fresh /approve-spec <full head SHA> from an engineering owner, which the author can post as one.
[Automated review]
Decided (Cindy, 2026-10-26: her 15:31 report, her row-glide decisions, and 21:49 D37 = d + e, with her theming requirement: "for theming we need to pull the border from the row into the cell if we hide the row border").
User impact
A table whose theme or app customizes its row dividers keeps those dividers while rows glide and on pinned columns, instead of falling back to a default line.
Changes
tr/tbody/tdborders. This states the visible result; the drawing technique stays in code, and the border model is unchanged. Evidence state: not implemented yet.animatedLayouthandle, AST-105's opt-in.spec:AST-105: Table's row expansion joins TreeList and Collapsible as a first adopter.Writing rubric results