Repository navigation
spec(Table): close flat-data v1 plugin contracts - #7972
humbertovirtudes merged 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
This spec change can't be approved yet: it adds new requirements to the current component:Table record (FR14–FR20, ORD5–ORD6, DEC-3/DEC-4 and an FR2/FR8 loading exception) and closes the three draft module records, and a maintainer needs to approve or amend that direction at this exact head. Before asking for that approval, please fix the points below, since any new commit resets it:
Table.spec.md: the Representative states rows for data-driven rows and empty data, and the FR2/FR8 evidence cells, still contradict the amended FR2/FR8/FR16/FR20.useTableInfiniteScroll.spec.mdFR4: a voidonLoadMorethat never togglesisLoadingleaves Load more busy forever, against the record's always-operable manual path.useTableActivation.spec.md: nothing exposes the active row to assistive technology; please define it or record why none is needed.
[Automated review]
| | ID | Invariant | Basis | Evidence state | | ||
| | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | | ||
| | FR1 | By default, Styled Table renders one named Scroll region around one observed content box and one semantic Table. The Scroll region enters the keyboard order and contains inline overscroll only while inline content effectively overflows; fitting content passes scroll gestures to its ancestor. Explicit scroll-wrapper plugin HTML attributes remain authoritative. | `spec:AST-025` FR12, FR14, FR19, FR21; current source, docs, and tests | Verified fitting and inline-overflow transitions through the shared `useScrollableArea` behavior core | | ||
| | FR2 | Data-driven mode renders a Body section and a Header section with Column header cells when columns are present. Without windowing, each data item renders a standard Row and Cells; FR16 limits row/cell construction to the admitted mounted plan. Empty data renders the configured empty-state row when enabled, subject to FR20's default initial-loading suppression. It never creates a Footer section. | Current source, docs, and tests | Verified current behavior; no new behavior decided | |
There was a problem hiding this comment.
FR2 and FR8 (line 171) now carry FR16/FR20 exceptions, but their evidence cells still say verified, and the unchanged Representative states rows (lines 226 and 228) still require one Row per data item and the default EmptyState for empty data. Please align those rows and mark the new behaviour pending.
| | FR1 | One mounted hook returns one stable plugin and reads current callbacks/configuration without restarting its request generation. Callback identity changes do not clear a latch or failure pause. | DEC-1; parent identity contract | Choice closed; evidence pending | | ||
| | FR2 | One sentinel and one load/progress surface append to accumulated `afterTable` inside the parent scroll-wrapper content box, outside the semantic table. Prior props, refs, styles, before/after content, and chrome survive. No non-row content enters table sections or rows. | Parent wrapper contract; DEC-2 | Choice closed; evidence pending | | ||
| | FR3 | Automatic requests require admitted data mode, `hasMore=true`, committed `isLoading=false`, no outstanding latch, no failure pause, and a currently intersecting sentinel. The latch is set before calling the current callback; observer/manual/reentrant paths share it. | DEC-1 | Choice closed; evidence pending | | ||
| | FR4 | A fulfilled Promise completes only after settlement and a committed current `isLoading=false`; no observed true phase is required. A successful void callback requires an observed committed true-to-false controlled loading cycle. Neither settlement nor invocation directly rearms from a stale pre-call false value. | DEC-1 | Choice closed; evidence pending | |
There was a problem hiding this comment.
A void onLoadMore that never commits isLoading=true never completes under this rule, so the latch stays set and Load more stays busy until remount (line 121), against DEC-3's always-operable manual path. Please define the no-cycle outcome.
| | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | --------------------------------------------------------- | | ||
| | FR1 | One mounted hook returns one stable plugin; mounted composed row handlers remain stable while reading current configuration. | Parent identity contract; DEC-1 | Choice closed; implementation evidence pending | | ||
| | FR2 | Activation requires explicit stable unique `idKey` and parent-supplied valid canonical identity. Property-name keys convert valid raw strings or finite numbers with `String`; function keys preserve their string/finite-number type. Comparison is strict and the callback emits exactly that key. Missing, invalid, duplicate, or unknown identity is inert in every build, with parent-owned deduplicated development diagnostics. | Parent FR14; DEC-1 | Choice closed; parent review and evidence pending | | ||
| | FR3 | Only an eligible row matching `activeKey` exposes module-owned `data-active` and active presentation. Other rows remove those contributions. Activation adds neither `aria-current` nor `aria-selected`. | DEC-1/DEC-3 | Choice closed; evidence pending | |
There was a problem hiding this comment.
Nothing exposes the active row to assistive technology: this row rules out aria-current and aria-selected, and AR5 covers only the visual marker. Please define the programmatic exposure, or record why none is needed (WCAG 2.2 SC 1.3.1).
|
Addressed the concrete review findings in the updated contract head:
Knowledge, formatting, whitespace, global-baseline and targeted contract assertions pass. This remains specification-only; owner approval is still required on the new exact head, and no runtime, spoken-output or browser evidence is claimed. |
There was a problem hiding this comment.
This spec change can't be approved yet: it adds new requirements to the current component:Table record (FR14–FR20, ORD5–ORD6, DEC-3/DEC-4 and the FR2/FR8 loading exception) and closes the three draft module records, so an engineering owner needs to approve or amend that direction at this exact head. The earlier review points are addressed; before asking for approval, please fix the items below, since any new commit resets it:
Table.spec.mdFR1 and the Accessibility contract still put the Scroll region in the tab order only for inline overflow, so a windowed Table whose columns fit has no keyboard path to unmounted rows (spec:AST-025FR12 counts any applicable axis), and virtualization AR4's removal focus target needs the same rule.useTableInfiniteScroll.spec.mdFR8 adds a module loading announcement while the busy Load more Button already announces through Button's own loading region; name one announcement owner (spec:AST-086FR1).Table.spec.mdCompatibility and migration drops the DEC-1/DEC-2 compatibility facts, and DEC-3/DEC-4 should name the deciding owner once approved.
[Automated review]
| | 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 | | ||
| | ID | Invariant | Basis | Evidence state | | ||
| | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | | ||
| | FR1 | By default, Styled Table renders one named Scroll region around one observed content box and one semantic Table. The Scroll region enters the keyboard order and contains inline overscroll only while inline content effectively overflows; fitting content passes scroll gestures to its ancestor. Explicit scroll-wrapper plugin HTML attributes remain authoritative. | `spec:AST-025` FR12, FR14, FR19, FR21; current source, docs, and tests | Verified fitting and inline-overflow transitions through the shared `useScrollableArea` behavior core | |
There was a problem hiding this comment.
With FR17 the same viewport scrolls on the block axis, but this row still adds the Scroll region to the tab order only while inline content overflows. A windowed Table whose columns fit then has no keyboard path to unmounted rows; spec:AST-025 FR12 counts any applicable axis. Please amend FR1 (and the Accessibility contract) for windowed mode.
| - Migration decision: `spec:AST-025` FR12, FR14, FR19, FR21, and DEC-1; replace | ||
| `base-table` theme keys and `.astryx-base-table` selectors with `table` and | ||
| `.astryx-table`, or run `astryx upgrade --from 0.6.3 --apply --path .` | ||
| - Released default preserved: yes for capability opt-in. Without activation or |
There was a problem hiding this comment.
This replaces "Released default preserved: no" (DEC-2's 60px floor) and the spec:AST-025/DEC-1 migration decision with lines about the new opt-in only. Please keep the DEC-1/DEC-2 compatibility facts beside the new lines.
| ### DEC-3 - Canonical identity and declared row ownership | ||
|
|
||
| **Reference:** `component:Table/DEC-3` | ||
| **Decider:** pending exact-head owner review |
There was a problem hiding this comment.
Once an owner approves, this Decider line (and DEC-4's) should name that owner and date, as DEC-1 and DEC-2 do; "pending exact-head owner review" describes this pull request rather than the system.
| | Unsupported observation | Same manual/loading/exhausted states; automatic observation is absent. | | ||
| | Children/unsupported admission | No module sentinel, loading chrome, requests, or empty-state changes; deduplicated development diagnostic. | | ||
|
|
||
| The shared Button uses `aria-busy` and focus-preserving `aria-disabled` with request guards, not native disabling; its name and progress text are localized. The sentinel is never a tab stop. The successor is the parent's programmatic Scroll-region destination even when fitting content has no sequential tab stop; prior authoritative accessibility props remain. One shared channel announces initial/current loading once, coalescing latch/controlled updates and deduplicating StrictMode replay. No prefilled module `aria-live`/status region or competing announcer exists. |
There was a problem hiding this comment.
Button's isLoading already gives this busy state (aria-busy, focus-preserving aria-disabled) and announces "Loading" from its own status region, while FR8 adds a module announcement. Please name one owner for the loading message so a screen reader hears it once (spec:AST-086 FR1).
|
Addressed the second review's concrete contract points on this same PR:
Knowledge validation, exact-file formatting, whitespace, global-baseline routing and targeted contract assertions pass. Owner decision metadata stays truthful: the pending new Decider entries cannot be filled with a name/date until that owner actually approves the exact contract head. No runtime implementation, approval or merge is claimed. |
There was a problem hiding this comment.
This spec change can't be approved yet: it updates the current component:Table record with new requirements (FR14–FR20, ORD5–ORD6 and DEC-3/DEC-4, plus amendments to FR1, FR2 and FR8) and closes the three draft module records, so an engineering owner needs to approve or amend that direction at this exact head. The points raised on the earlier heads are addressed, and nothing else needs fixing before that decision. Once the decision is made, DEC-3 and DEC-4 can name the deciding owner and date, as DEC-1 and DEC-2 do.
[Automated review]
|
/approve-spec 0096b2c |
0096b2c to
f9a3b58
Compare
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
This spec change can't be approved yet: it updates the current component:Table record (FR14–FR20, ORD5–ORD6, DEC-3/DEC-4 and the FR1, FR2 and FR8 rewrites) and closes the three draft module records, and the earlier owner approval named the previous head, so this rebased head needs a fresh decision. Its record text matches that approved head apart from the lines merged from main, so nothing else needs fixing first. An engineering owner records the decision by commenting /approve-spec f9a3b585e8eaa65064742ef291e555f72f3eaf81 on this pull request, and the author may do so as an engineering owner. Once decided, DEC-3 and DEC-4 can name the deciding owner and date, as DEC-1 and DEC-2 do.
[Automated review]
f9a3b58 to
73c5f14
Compare
There was a problem hiding this comment.
This spec change can't be approved yet: it adds FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5 to the current component:Table record, rewrites its FR1, FR2 and FR8, and closes the three draft module records, and no engineering owner has approved this head (the earlier /approve-spec named a previous head). Please fix the points below first, since any new commit needs its own approval; then an engineering owner records the decision by commenting /approve-spec <full head SHA> for that commit, which the author may do as an engineering owner, and that decision also settles counting the header row in aria-rowindex for windowed Tables while rowIndexStart/rowCount stay body-relative.
Table.spec.mdFR20 sets a windowed Table'saria-rowcountto H+N, butuseTableVirtualization.spec.mdline 176 hands unknown totals to the loading record, which defines none; please state the count for a windowed Table that can still load (Table'srowCountuses-1for an unknown total) and have both modules name one owner.- Public concepts should keep the non-function and empty-plugin warnings Table still emits, and give the new rows a lifecycle state (
Stable, orexperimentalbehind the experimental boundary) instead ofAdditive. - PR2 should name the costs FR16 and FR19 now give Table, and DEC-4/DEC-5 should name their deciding owner and date in the approved commit.
[Automated review]
| | FR17 | Table supplies immutable `TableRowContext` and `TableRenderContext` rather than requiring module extractors or DOM mode inference. Row model and whole-row owner declarations precede eligibility/element transforms. Flat capability admission excludes tree/grouped/detail/custom structural output and unknown body modifiers without a compatible declaration. More than one whole-row owner claim, including repeated activation entries, neutralizes activation in either plugin order, preserves the old owners and non-owning handlers, and emits one development diagnostic. A custom callback that owns a whole-row action must declare it; Table never infers arbitrary callback intent. | DEC-4; shared protocol | Specified; implementation verification pending | | ||
| | FR18 | `Table.virtualization` is an opaque geometry capability and its opt-in types require data mode, explicit identity and constrained content together. Table resolves complete input order, columns and identity, then plans mounted keyed records and inaccessible gaps before cell construction. Only mounted product/focus-island records enter element transforms. Default virtualized cells use existing single-line `textOverflow="truncate"`; explicit wrap, arbitrary row/cell renderers or unsafe structural output falls back to full rendering. Without opt-in, default wrapping and ordinary rendering remain unchanged. | DEC-5; native rendering and bounded work | Specified; implementation verification pending | | ||
| | FR19 | Windowing uses the existing Table viewport/content-box composition on both logical axes with a bounded block size. Effective inline overflow contains chaining; block chaining remains allowed. Keyboard access, logical mapping, sticky/header/column behavior and geometry consumers share that owner, stable refs, pooled resize work and at most one scroll subscription/pending frame. No module creates a parallel ScrollableArea, detector or unknown external root. Modules without a Table block viewport may use viewport intersection; absent wrapper/context does not fabricate an after-table surface. | DEC-5; `spec:AST-025` FR12/FR18/FR19 | Specified; implementation verification pending | | ||
| | FR20 | In virtualized flat nonempty data, the parent logical sequence assigns header indices 1 through H, product row i index H+i+1 and full count H+N; visible numbering derives i+1 from the same zero-based index. Inaccessible gaps are excluded. Logical parity/final-row state, not gap-relative DOM position, controls striping/dividers. Caller legacy offsets/counts conflict with this mode and cause full-render fallback rather than a second source of truth. Empty data uses the existing placeholder/disabled-empty branch without a virtual metadata override. Nonvirtualized paginated metadata remains unchanged. | DEC-5; complete semantic sequence | Specified; implementation verification pending | |
There was a problem hiding this comment.
FR20 gives every windowed Table the full count H+N, but a windowed Table that can still load does not know its total, and Table's own rowCount uses aria-rowcount="-1" for an unknown total (types.ts lines 600–603). Please state the count for that state here, or in the loading record with FR20 citing it; the render-state snapshot (line 139) would also need to say that more rows exist.
| - Parent FR19/DEC-5 owns the existing both-axis viewport, inline containment/block chaining, shared geometry and pooled resize. `spec:AST-025` FR18/FR19 prohibit incidental same-axis nesting and uncoordinated external owners. | ||
| - Parent FR20 owns logical metadata and the virtualized-only ARIA path; FR21 owns one coordinated row/pinned paint outcome. DEC-4 owns identity/interaction ownership and DEC-5 owns render-plan/viewport integration. | ||
| - `architecture:react-component-runtime` owns current geometry, rendered-state/resource separation, node replacement, StrictMode replay and cleanup. `architecture:public-component-api` and `spec:AST-002` own capability reachability and caller burden. | ||
| - Activation, infinite loading and virtualization require joint current parent/module admission before supported composition is released. The loading sentinel follows the full loaded extent outside semantic table data; unknown remote totals/loading announcements/reset semantics remain loading-owned. Activation neither supplies identity nor makes active state a focus/scroll owner. |
There was a problem hiding this comment.
This hands "unknown remote totals" to the loading module, but useTableInfiniteScroll.spec.md defines no row count and its line 180 hands full virtual metadata back to parent FR20. Please make both records name the same owner.
| | Plugin collection | Named record or absent | Ordered `TablePlugin` contributions | Data mode | Absent | Table | Stable | Unknown transform keys ignored with development diagnostics | | ||
| | Plugin transform | Column, element, wrapper, context | One sequential parent phase | Applicable phase | Omitted is a no-op | Table | Stable | Throw preserves accumulated value | | ||
| | Render mode | `data`, `children` | Actual parent rendering branch, including empty data | Render/wrapper context | Parent-derived | Table | Additive | New data-only capability is inert in children mode | | ||
| | Canonical key | String or finite number; missing/invalid/duplicate | One resolved identity for callbacks, state and reconciliation | Explicit identity opt-in | Existing `idKey` | Table | Additive | Invalid activation is inert; windowing fully renders with a diagnostic | | ||
| | Transform context | `TableRowContext`, `TableRenderContext` | Parent-owned immutable semantic facts and stable viewport reference | Optional fourth row-transform, sixth cell-transform and second wrapper-transform argument | Supplied by Table | Table | Additive | Missing context disables the dependent capability | | ||
| | Row model | `flat`, `tree`, `grouped`, `detail`, `custom` | Plugin's declared structural row model | `TablePlugin.rowModel` | No claim for an undeclared body modifier | Table | Additive | Unsupported model disables the new flat-only capabilities | | ||
| | Whole-row owner | `activation`, `expansion`, `navigation`, absent | Plugin's declared whole-row interaction, not ordinary analytics/controls | `TablePlugin.wholeRowOwner` | Absent | Table | Additive | Competing claims neutralize activation independent of order | | ||
| | Module render-state source | Stable `subscribe`, `getSnapshot`, `getServerSnapshot` with immutable `{isLoading}` | Drives loading-sensitive parent rendering before sections are built | Optional `TablePlugin.renderState` | Absent | Table | Additive | Missing source preserves ordinary empty rendering | | ||
| | Windowing capability | Opaque `TableVirtualizationCapability` or absent | Fixed-height pre-cell planning from `useTableVirtualization` | `Table.virtualization` in data mode with explicit `idKey` | Absent | Table/module boundary | Additive | Invalid geometry/content falls back to full rendering | |
There was a problem hiding this comment.
Line 132 drops the non-function and empty-plugin warnings useBaseTablePlugins.ts still emits (lines 130–155), and the new rows give Stability Additive, which is neither the template's "stable or experimental" nor a lifecycle state; as ordinary props and fields these surfaces would be stable from their first release.
da5e7e4 to
8a56fda
Compare
There was a problem hiding this comment.
This spec change can't be approved yet: it adds FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5 to the current component:Table record, rewrites its FR1, FR2, FR8 and PR2, and closes the three draft module records, and no engineering owner has approved this head (the earlier /approve-spec named a previous head). An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision also settles this head's new aria-rowcount="-1" rule for windowed Tables while loading reports more data. Please fold in the fixes below first, since any new commit needs its own approval:
- Restore Table's non-goal for pagination, filtering, column-management, sticky-column and context-menu anatomy, which the rewrite drops without explanation (
Table.spec.mdline 124). - Name the deciding owner and date in DEC-4 and DEC-5 in the approved commit instead of "pending exact-head owner review" (lines 478 and 493).
- Add the render-state source to Table's Contract-at-a-glance Public contract row (line 57) and FR20 to the loading record's Governing rules row (
useTableInfiniteScroll.spec.mdline 47).
[Automated review]
| - CheckboxInput/Icon/EmptyState visuals, caller cell/detail/footer content, | ||
| product ordering, fetching, caching, routing and stale product responses. | ||
| - New targets or corrections of existing target-reachability gaps. | ||
| - Tree, grouping, expanded details, arbitrary structural row replacement or |
There was a problem hiding this comment.
This rewrite drops the current non-goal "Pagination, filtering, column-management, tree, grouping, sticky-column, or context-menu anatomy beyond the stable parts explicitly recorded here."; only tree and grouping return, scoped to the v1 admission domain. Please restore it beside this line unless Table is meant to own that anatomy.
| ### DEC-4 - Canonical identity and declared row ownership | ||
|
|
||
| **Reference:** `component:Table/DEC-4` | ||
| **Decider:** pending exact-head owner review |
There was a problem hiding this comment.
In a current record this line describes the review rather than the decision. Please name the deciding owner and date in the commit that owner approves, as DEC-1 to DEC-3 do; DEC-5 (line 493) has the same line.
| | Builder impact | The caller owns rows, requests, errors, and stale-data suppression. A dataset reset remounts the component owning the hook together with its Table; no reset/root/look-ahead/loading-renderer API exists. | | ||
| | Compatibility/readiness | Additive and unreleased. Module and parent row-count decisions await exact-head owner approval; source implementation and runtime evidence remain release gates. | | ||
| | Review checks | Reject overlapping/reentrant loads, immediate failure loops, stale-generation rearming, DOM-inferred mode, ancestor discovery, focus loss, duplicate announcements/chrome, or invalid table content. | | ||
| | Governing rules | `component:Table` owns wrapper/context, render planning, and viewport. Required FR17-FR19, FR22 and DEC-4/DEC-5 parent additions remain subject to owner review; runtime, public API, and evidence rules retain their owners. | |
There was a problem hiding this comment.
FR10 (line 104) now publishes hasMore for parent FR20's row total, so this row should cite FR20 too; Table's own Public contract row (Table.spec.md line 57) likewise leaves out the render-state source.
8a56fda to
d87cbc0
Compare
There was a problem hiding this comment.
This spec pull request needs an engineering owner's decision before it can be approved: it adds FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5 to the current component:Table record, rewrites its FR1, FR2, FR8 and PR2, and closes the three draft module records, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision also settles header-counting aria-rowindex and aria-rowcount="-1" for windowed Tables while loading reports more data. One fix is worth folding in first, since any new commit needs its own approval:
- In DEC-4 and DEC-5 (
Table.spec.mdlines 480 and 495), name the deciding owner and date in the commit that owner approves instead of "pending exact-head owner review", so the merged record does not report those decisions as undecided.
[Automated review]
| ### DEC-4 - Canonical identity and declared row ownership | ||
|
|
||
| **Reference:** `component:Table/DEC-4` | ||
| **Decider:** pending exact-head owner review |
There was a problem hiding this comment.
In an authority: current record this Decider line describes the review rather than a decision, and the spec view already counts DEC-4 and DEC-5 as having no decider. Please name the deciding owner and date in the commit that owner approves, as DEC-1 to DEC-3 do; DEC-5 (line 495) has the same line.
d87cbc0 to
4fad71d
Compare
|
Deployment failed for project astryx with the following error: |
There was a problem hiding this comment.
This spec change needs an engineering owner's decision before it can be approved: it adds component:Table FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5, rewrites FR1, FR2, FR8 and PR2, and closes the decisions in the three draft module records, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision also covers this head's runtime admission for Table.virtualization in FR18. Two fixes are worth folding in first, since any new commit needs its own approval:
- FR17 (
Table.spec.mdline 210) excludes body modifiers without arowModeldeclaration, butuseTableSelectionanduseTableStickyColumnstransform body rows and cells and no record gives them a declaration, so activation and windowing would switch off beside them although the module records say they compose; please state theirrowModel: 'flat'declaration or limit the rule to structural row output. - DEC-4 and DEC-5 (lines 480 and 495) should name the deciding owner and date in the commit that owner approves, as DEC-1 to DEC-3 do.
[Automated review]
| | 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, the pinned-column divider is pending, and an open detail panel's divider draws the default tokens, which `table-cell` overrides do not reach | | ||
| | 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. A table that draws column lines (`dividers="grid"` or `"columns"`) does not glide yet: with the option its panel and rows change at once, as without it, and the glyph keeps its own turn. | `spec:AST-105` FR1, FR4; owner decision, 2026-10-26 | Not implemented | | ||
| | FR16 | Activation and windowing use one explicit canonical `idKey`. Property keys resolve valid strings/finite numbers through the existing string projection; function keys retain string/finite-number type. Missing, null, nonprimitive, nonfinite and duplicate values are invalid for these opt-ins. Table validates the complete logical dataset on data/key changes and supplies status; activation is inert on invalid rows and windowing falls back to full rendering. Internal type-tagged reconciliation keys distinguish numeric `0` from string `"0"` without changing callback equality. Invalid fallback keys are deterministic per record but promise no preserved state under invalid identity. Legacy keys without these opt-ins remain unchanged. | DEC-4; identity and compatibility boundary | Specified; implementation verification pending | | ||
| | FR17 | Table supplies immutable `TableRowContext` and `TableRenderContext` rather than requiring module extractors or DOM mode inference. Row model and whole-row owner declarations precede eligibility/element transforms. Flat capability admission excludes tree/grouped/detail/custom structural output and unknown body modifiers without a compatible declaration. More than one whole-row owner claim, including repeated activation entries, neutralizes activation in either plugin order, preserves the old owners and non-owning handlers, and emits one development diagnostic. A custom callback that owns a whole-row action must declare it; Table never infers arbitrary callback intent. | DEC-4; shared protocol | Specified; implementation verification pending | |
There was a problem hiding this comment.
As written, "unknown body modifiers without a compatible declaration" also covers useTableSelection (transformBodyRow) and useTableStickyColumns (transformBodyCell), and no record gives them a rowModel declaration, so activation and windowing would switch off beside selection or pinned columns. The three module records say those compositions work; please state the first-party rowModel: 'flat' declarations here, or limit the rule to structural row output.
| ### DEC-4 - Canonical identity and declared row ownership | ||
|
|
||
| **Reference:** `component:Table/DEC-4` | ||
| **Decider:** pending exact-head owner review |
There was a problem hiding this comment.
In an authority: current record this reports the decision as undecided once merged. The component template takes **Decider:** <person>, <YYYY-MM-DD>, as DEC-1 to DEC-3 have; please name the deciding owner and date in the commit that owner approves (DEC-5 at line 495 too).
4fad71d to
3b8541b
Compare
There was a problem hiding this comment.
This spec change needs an engineering owner's decision before it can be approved: it adds component:Table FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5, rewrites FR1, FR2, FR8 and PR2, and closes the decisions in the three draft module records, including this head's first-party rowModel: 'flat' declarations in FR17, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. One fix belongs in the commit that owner approves, since any new commit needs its own approval:
- DEC-4 and DEC-5 (
Table.spec.mdlines 480 and 495) should name the deciding owner and date instead of "pending exact-head owner review", as DEC-1 to DEC-3 do.
[Automated review]
| ### DEC-4 - Canonical identity and declared row ownership | ||
|
|
||
| **Reference:** `component:Table/DEC-4` | ||
| **Decider:** pending exact-head owner review |
There was a problem hiding this comment.
In an authority: current record this would report the decision as undecided once merged. The component template takes **Decider:** <person>, <YYYY-MM-DD>, as DEC-1 to DEC-3 have; please name the deciding owner and date in the commit that owner approves (DEC-5 at line 495 too).
| | FR11 | Viewport and content invalidation use the parent's both-axis geometry/pooled resize path with inline `contain`, block `allow`, one viewport scroll subscription and at most one pending range frame. Stable no-op renders do not reconnect resources or reset scroll; replaced nodes and stale work cannot publish geometry. | Parent FR19; runtime lifetime | Pending | | ||
| | FR12 | V1 has no public imperative scrolling API. Internal anchor or focus coordination remains distinct from activation, navigation and fetching; native viewport scrolling remains available. | Public responsibility; DEC-1 | Pending | | ||
| | FR13 | Bounded renderer/DOM counts and the PR targets gate completion. Offscreen content is not constructed and then hidden, discarded or sliced; identity validation is not counted as offscreen cell rendering. | Parent FR18; performance | Pending | | ||
| | FR14 | Accepted fixed mode defaults unspecified `textOverflow` to existing single-line truncation; explicit `wrap` disables virtualization. Default cells and recognized height-safe plugin cells preserve font size, control targets, density/theme padding and collapsed-border contribution within the total declared pitch. Arbitrary custom renderers, wrapping, media/editor/detail content or custom spans fall back. Overflow or pitch violations remove fixed constraints and render fully; a numeric native row height alone is insufficient. | Fixed-height enforceability; DEC-2 | Pending | |
There was a problem hiding this comment.
Non-blocking: FR14 exempts "recognized height-safe plugin cells" without naming them, while Table FR18 sends "arbitrary row/cell renderers" to the full-render fallback and the selection and row-index columns are renderCell columns that FR9 promises to compose with. Naming those first-party cells, as FR17 now names the flat declarations, would keep content admission as explicit as structural admission.
| The default contract adds no public theme target or theme-authored `active` state. The module owns a component fallback and must propagate its effective overlay to pinned cells. OQ3 may admit an `active` state on the existing `table-row` target only if it defines the fallback, guaranteed paint properties, state precedence, and pinned-overlay projection required by `architecture:component-theming-surface`. A separate direct target still requires another theming decision. | ||
| | ID | Decision | Intent or reason | Applies to | Allowed variation | | ||
| | --- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------- | | ||
| | DD1 | An active row has a visible inline-start marker independent of colour and focus. | Current detail-driving state stays identifiable beside selected rows and pinned cells. | All active eligible rows | Token/pixel tuning within existing anatomy; no extra column, control, target, or public `active` theme state. | |
There was a problem hiding this comment.
Non-blocking: the marker must stay "distinguishable" in light, dark and forced-colors modes, but no contrast minimum against the active or selected fill is stated, so the pending visual evidence has no threshold to check (WCAG 2.2 SC 1.4.11 asks 3:1 for a state indicator).
3b8541b to
0635533
Compare
There was a problem hiding this comment.
This spec change needs an engineering owner's decision before it can be approved: it adds component:Table FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5, rewrites FR1, FR2, FR8 and PR2, and closes the decisions in the three draft module records, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Before that, please name the deciding owner and date on DEC-4 and DEC-5 (Table.spec.md lines 493 and 508), as DEC-1 to DEC-3 do, so the approved commit carries them.
[Automated review]
0635533 to
7c6b965
Compare
|
/approve-spec 7c6b965 |
Complete the Table parent, activation, infinite-loading and fixed-height row-virtualization contracts. Record the engineering owner's current decision and use the row-specific useTableRowsVirtualization name. Preserve all explicit v1 non-goals and separate normative contract completion from runtime release verification. This diff was generated with AI assistance (Navi). Tags: ai-generated
7c6b965 to
cd0ac39
Compare
|
/approve-spec cd0ac39 |
Exact decision
Complete the flat-data v1 contracts for Table activation, infinite loading and fixed-height row virtualization, with the parent protocol they consume. The engineering owner explicitly requested
useTableRowsVirtualization, completion of the spec records and merger of this spec PR.Existing authority searched
dfa7ae023e0dc04dcaa5200f0e127d602e05279f; existing Table divider/motion and accessibility claims remain intact.Decision
useTableRowsVirtualization({rowHeight, viewportHeight})supplies the opaque capability to unchangedTable.virtualization. Fixed-height rows, internal overscan, a derived SSR seed, bounded focus retention, logical metadata and anchor/fallback rules remain unchanged. All columns still render; column virtualization is excluded.The four records are
authority: current, approved byhumbertovirtudeson2026-11-03. Completed module decisions and parent DEC-4/DEC-5 name that deciding owner and date. All former open choices are closed. Earlier decisions retain their original attribution.Rejected alternatives
A second renderer/key source, caller-managed offsets, plugin-order-selected ownership, parallel scroll/paint/focus owners, variable-height or column virtualization, and new public tuning/transport/renderer knobs.
Claim scope and non-goals
Specification records only. Contract completion does not claim runtime release, numerical performance certification, AT certification or a runtime authored-size exception. The implementation PRs remain separate and unmerged. Minimal runnable hook examples belong with those implementation PRs before public API publication.
Evidence and implementation relationship
Contract completion assertions, knowledge validation, exact-file formatting, concern routing and whitespace checks verify the records. Implementation tests and prior browser receipts remain bound to the implementation heads they actually exercised. No runtime source is included here.
Writing rubric results
Scope
Validation
This PR was generated with AI assistance (Navi).