Skip to content

Commit e223300

Browse files
spec(Table): record the approved flat-data v1 decision
This diff was generated with AI assistance (Navi). Tags: ai-generated
1 parent 0096b2c commit e223300

4 files changed

Lines changed: 40 additions & 41 deletions

File tree

‎packages/core/src/Table/Table.spec.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ id: component:Table
66
authority: current
77
archive_reason: null
88
superseded_by: null
9-
approved_by: cixzhang
10-
approved_at: 2026-09-01
9+
approved_by: humbertovirtudes
10+
approved_at: 2026-10-24
1111
owners: [cixzhang]
1212
review_triggers: [public-api, behavior, layout, theming, accessibility]
1313
verified_by:
@@ -440,7 +440,7 @@ content, because it shifts with data and view state.
440440
### DEC-3 - Canonical identity and declared row ownership
441441

442442
**Reference:** `component:Table/DEC-3`
443-
**Decider:** pending exact-head owner review
443+
**Decider:** humbertovirtudes (2026-10-24)
444444

445445
Identity, rendering mode and row classification are parent facts. Opt-in activation
446446
and windowing consume one validated canonical key and immutable context; they do
@@ -455,7 +455,7 @@ Rejected: inferring action ownership from arbitrary callback code or adding a se
455455
### DEC-4 - Window planning, logical positions and viewport stay in Table
456456

457457
**Reference:** `component:Table/DEC-4`
458-
**Decider:** pending exact-head owner review
458+
**Decider:** humbertovirtudes (2026-10-24)
459459

460460
Table consumes the geometry-only virtualization capability with its complete data,
461461
identity and columns. Admission and logical render planning happen before cells are

‎packages/core/src/Table/plugins/activation/useTableActivation.spec.md‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ schema_version: 3
33
template_version: 4
44
kind: module
55
id: module:Table/useTableActivation
6-
authority: draft
6+
authority: current
77
archive_reason: null
88
superseded_by: null
9-
approved_by: null
10-
approved_at: null
9+
approved_by: humbertovirtudes
10+
approved_at: 2026-10-24
1111
owners: [cixzhang]
1212
review_triggers:
1313
[public-api, behavior, layout, theming, accessibility, interaction]
@@ -39,11 +39,11 @@ references:
3939
| Behavior | Eligible flat product rows request activation on primary click or Enter/Space after non-owning handlers; canonical identity, cancellation, descendant controls, and intersecting text selection gate the request. |
4040
| End-user impact | One product row anchors adjacent detail or preview state without becoming selection, navigation, or focus ownership. |
4141
| Builder impact | The caller supplies explicit stable unique `idKey`, controls the active key, and owns adjacent content; no second extractor, interaction mode, or theme state is public. |
42-
| Compatibility/readiness | Additive and unreleased. Draft choices are closed; actual owner review of this text and the parent additions, source implementation, and all implementation evidence remain pending. |
42+
| Compatibility/readiness | Additive and unreleased. The module and parent contract decisions have owner approval; source implementation and runtime evidence remain release gates. |
4343
| Review checks | Reject implicit identity, multiple whole-row owners, non-flat opt-in, nested-control activation, competing paint writers, a colour-only active cue, pinned-cell divergence, or invented approval/evidence. |
4444
| Governing rules | `component:Table` owns composition. Its FR14-FR19 and DEC-3/DEC-4 are required parent additions, not authority supplied by this draft; shared modality, public API, theming, and evidence rules retain their owners. |
4545

46-
This table is a review projection; the body below defines the draft contract.
46+
This table is a review projection; the body below defines the module contract.
4747

4848
## Intent
4949

@@ -55,7 +55,7 @@ This table is a review projection; the body below defines the draft contract.
5555
- Compatibility class: additive unreleased hook; unsupported new-capability combinations are neutralised without disabling legacy plugins.
5656
- Migration decision: `module:Table/useTableActivation/DEC-1` and DEC-5.
5757

58-
Consumer signatures, imports, examples, and migration instructions belong in the module's consumer docs. This draft is not implementation authority. Promotion requires actual owner review of the exact module and parent contract text; merged code, authored decisions, or successful checks do not substitute for approval.
58+
Consumer signatures, imports, examples, and migration instructions belong in the module's consumer docs. Owner approval establishes the normative module and parent decisions; implementation and release evidence remain separate. Merged code or successful checks alone do not establish approval.
5959

6060
## Ownership boundary
6161

@@ -194,7 +194,7 @@ evidence; the frontmatter file list retains those targets without claiming they
194194
### DEC-1 — Controlled canonical identity and eligibility
195195

196196
**Reference:** `module:Table/useTableActivation/DEC-1`
197-
**Decider:** pending owner review
197+
**Decider:** humbertovirtudes (2026-10-24)
198198

199199
One caller-owned active key matches and emits the parent's validated canonical key
200200
strictly. Eligibility controls both requests and presentation without changing the
@@ -204,7 +204,7 @@ Rejected: a second extractor, index fallback, activation-side coercion, or deriv
204204
### DEC-2 — Native rows support press activation
205205

206206
**Reference:** `module:Table/useTableActivation/DEC-2`
207-
**Decider:** pending owner review
207+
**Decider:** humbertovirtudes (2026-10-24)
208208

209209
Eligible rows retain native semantics, default sequential focus only when no earlier
210210
focus owner exists, and composed Enter/Space shortcuts. Focus remains independent.
@@ -213,7 +213,7 @@ Rejected: row button/link roles, pointer-only operation, `aria-current="page"`,
213213
### DEC-3 — Selection-dominant fill and a separate active marker
214214

215215
**Reference:** `module:Table/useTableActivation/DEC-3`
216-
**Decider:** pending owner review
216+
**Decider:** humbertovirtudes (2026-10-24)
217217

218218
The six-state matrix fixes fill precedence; active state has an inline-start
219219
non-colour marker and matching `aria-current="true"` on the native row. The same
@@ -226,7 +226,7 @@ Rejected: competing imperative paint writers, a focus-only active cue, or a new
226226
### DEC-4 — Earlier handlers and gesture boundaries precede activation
227227

228228
**Reference:** `module:Table/useTableActivation/DEC-4`
229-
**Decider:** pending owner review
229+
**Decider:** humbertovirtudes (2026-10-24)
230230

231231
Non-owning handlers run first and may cancel. Shared interactive guards, portal
232232
containment, and selected-range intersection gate primary-click and Enter/Space.
@@ -235,7 +235,7 @@ Rejected: hover activation, copied selector catalogs, whole-navigation-hook impo
235235
### DEC-5 — Flat admission and declarative ownership
236236

237237
**Reference:** `module:Table/useTableActivation/DEC-5`
238-
**Decider:** pending owner review
238+
**Decider:** humbertovirtudes (2026-10-24)
239239

240240
The parent context and declarations admit flat product rows with one whole-row
241241
owner. Non-flat, unknown custom-body, and competing-owner combinations neutralise
@@ -244,8 +244,7 @@ Rejected: inferring row kind/ownership from plugin names, insertion order, key p
244244

245245
## Open questions
246246

247-
None. The choices above remain draft and require actual owner review; this is not
248-
an approval record. All implementation and behavior evidence remains pending.
247+
None. Implementation and release evidence remain separate from owner approval.
249248

250249
## Content boundary
251250

‎packages/core/src/Table/plugins/infiniteScroll/useTableInfiniteScroll.spec.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ schema_version: 3
33
template_version: 4
44
kind: module
55
id: module:Table/useTableInfiniteScroll
6-
authority: draft
6+
authority: current
77
archive_reason: null
88
superseded_by: null
9-
approved_by: null
10-
approved_at: null
9+
approved_by: humbertovirtudes
10+
approved_at: 2026-10-24
1111
owners: [cixzhang]
1212
review_triggers:
1313
[public-api, behavior, layout, theming, accessibility, interaction]
@@ -42,11 +42,11 @@ references:
4242
| Behavior | One after-table sentinel observes the parent-owned block viewport, or the browser viewport when absent. Requests latch before invocation; completion and committed controlled state gate short-batch rearming. |
4343
| End-user impact | An always-available manual command, coherent progress, preserved focus, and failure-loop suppression keep incremental data loading operable. |
4444
| 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. |
45-
| Compatibility/readiness | Additive and unreleased. All eight choices are closed in this draft; actual owner review of module/parent text, source implementation, and all implementation/AT evidence remain pending. |
45+
| Compatibility/readiness | Additive and unreleased. Module and parent decisions have owner approval; source implementation and runtime evidence remain release gates. |
4646
| 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. |
4747
| Governing rules | `component:Table` owns wrapper/context, render planning, and viewport. Required FR15-FR17 and DEC-3/DEC-4 parent additions remain subject to owner review; runtime, public API, and evidence rules retain their owners. |
4848

49-
This table is a review projection; the body below defines the draft contract.
49+
This table is a review projection; the body below defines the module contract.
5050

5151
## Intent
5252

@@ -58,7 +58,7 @@ This table is a review projection; the body below defines the draft contract.
5858
- Compatibility class: additive unreleased hook; unsupported new-capability combinations are neutralised while legacy plugins remain available.
5959
- Migration decision: `module:Table/useTableInfiniteScroll/DEC-1`, DEC-6, and DEC-7.
6060

61-
Consumer signatures, imports, examples, and reset instructions belong in consumer docs. This draft is not implementation authority. Promotion requires actual owner review of the exact module and parent text, not inferred approval from authored choices, merged code, or passing checks.
61+
Consumer signatures, imports, examples, and reset instructions belong in consumer docs. Owner approval establishes the normative module and parent decisions; implementation and release evidence remain separate. Merged code or passing checks alone do not establish approval.
6262

6363
## Ownership boundary
6464

@@ -202,30 +202,30 @@ Frontmatter paths are verification targets, not assertions that files exist or p
202202
### DEC-1 — Latch before request and complete after commit
203203

204204
**Reference:** `module:Table/useTableInfiniteScroll/DEC-1`
205-
**Decider:** pending owner review
205+
**Decider:** humbertovirtudes (2026-10-24)
206206

207207
All paths share a pre-invocation latch and require a Promise. Settlement plus a subsequent committed false snapshot completes a valid request without requiring a true phase. Invalid non-Promise results release the invocation latch, pause automatic attempts, and preserve operable manual recovery once controlled loading is false. Successful short batches rearm after commit.
208208
Rejected: unobservable void completion, a mandatory true-to-false cycle, or treating invalid callback output as permanently pending.
209209

210210
### DEC-2 — Parent geometry and after-table placement
211211

212212
**Reference:** `module:Table/useTableInfiniteScroll/DEC-2`
213-
**Decider:** pending owner review
213+
**Decider:** humbertovirtudes (2026-10-24)
214214

215215
The parent's block viewport is the root when present, otherwise the browser viewport. Native ancestor clipping handles nesting. One surface appends outside the table.
216216

217217
### DEC-3 — Always-operable manual path and deterministic focus
218218

219219
**Reference:** `module:Table/useTableInfiniteScroll/DEC-3`
220-
**Decider:** pending owner review
220+
**Decider:** humbertovirtudes (2026-10-24)
221221

222222
A Load more Button exists with more data, stays mounted/focusable while busy, and is nonoperable until completion. Exhaustion transfers only its owned focus to the parent Scroll region before removal with `preventScroll`.
223223
Rejected: IO-only loading, hiding the command during loading, or stealing unrelated focus on exhaustion.
224224

225225
### DEC-4 — The Load more Button owns loading announcements
226226

227227
**Reference:** `module:Table/useTableInfiniteScroll/DEC-4`
228-
**Decider:** pending owner review
228+
**Decider:** humbertovirtudes (2026-10-24)
229229

230230
Shared Button primitives render one fixed loading surface. Its persistent polite
231231
loading region is the sole busy-message owner; the module supplies coalesced
@@ -237,23 +237,23 @@ Rejected: a public loading renderer, a second channel/region for Button's loadin
237237
### DEC-5 — Failure pauses automatic loading
238238

239239
**Reference:** `module:Table/useTableInfiniteScroll/DEC-5`
240-
**Decider:** pending owner review
240+
**Decider:** humbertovirtudes (2026-10-24)
241241

242242
Throws/rejections pause automatic loading until gated manual retry or owning-hook remount. Manual success resumes rearming. Caller-owned errors/stale data, more-data toggles, and callback changes never silently reset failure.
243243
Rejected: immediately retrying a visible failed sentinel or module-owned error/retry panels.
244244

245245
### DEC-6 — Zero look-ahead and hook-owning remount reset
246246

247247
**Reference:** `module:Table/useTableInfiniteScroll/DEC-6`
248-
**Decider:** pending owner review
248+
**Decider:** humbertovirtudes (2026-10-24)
249249

250250
Look-ahead is internal zero. Dataset reset keys the component owning both hook and Table; old settlements cannot affect the new generation. The caller still suppresses stale product-data commits.
251251
Rejected: public look-ahead/reset APIs, Table-child-only remount as reset, or module cancellation of caller data.
252252

253253
### DEC-7 — Parent mode and flat admission
254254

255255
**Reference:** `module:Table/useTableInfiniteScroll/DEC-7`
256-
**Decider:** pending owner review
256+
**Decider:** humbertovirtudes (2026-10-24)
257257

258258
Parent context/declarations admit flat data loading and the shared viewport. Children mode is a deduplicated-warning no-op; unknown/non-flat/custom-body incompatibility neutralises the capability while preserving legacy plugins.
259259

‎packages/core/src/Table/plugins/virtualization/useTableVirtualization.spec.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ schema_version: 3
33
template_version: 4
44
kind: module
55
id: module:Table/useTableVirtualization
6-
authority: draft
6+
authority: current
77
archive_reason: null
88
superseded_by: null
9-
approved_by: null
10-
approved_at: null
9+
approved_by: humbertovirtudes
10+
approved_at: 2026-10-24
1111
owners: [cixzhang]
1212
review_triggers:
1313
[
@@ -51,7 +51,7 @@ references:
5151
| Behavior | Fixed-height flat-row windowing with four internal overscan rows per side, at most one retained focused row, native table semantics and parent-owned pre-cell planning. |
5252
| End-user impact | Mounted rows preserve selection, controls, focus and truthful full-table positions; unmounted rows are not promised virtual-cursor discovery. |
5353
| Builder impact | Callers choose total row pitch and bounded viewport height in CSS pixels and accept constrained single-line content; unsupported content falls back to full rendering. |
54-
| Compatibility/readiness | Additive, unreleased capability; legacy output remains unchanged without opt-in. Authority is draft, owner review is pending, and all implementation verification is pending. |
54+
| Compatibility/readiness | Additive, unreleased capability; legacy output remains unchanged without opt-in. Module and parent decisions have owner approval; runtime and numerical evidence remain release gates. |
5555
| Review checks | Reject render-then-hide, independent keys or scroll owners, invalid native structure, silent clipping/drift, lost focus, unbounded retention, window-relative metadata and unmeasured budget claims. |
5656
| Governing rules | `component:Table` owns identity, context, admission, render planning, viewport and logical appearance. `spec:AST-025` FR18/FR19 constrain scrolling; `spec:AST-002` and runtime/accessibility architecture constrain API and evidence. |
5757

@@ -195,7 +195,7 @@ Implementation verification is pending; structural checks are not runtime eviden
195195
### DEC-1 — Capability configures parent-owned rendering
196196

197197
**Reference:** `module:Table/useTableVirtualization/DEC-1`
198-
**Decider:** pending owner review
198+
**Decider:** humbertovirtudes (2026-10-24)
199199

200200
The geometry-only opaque capability leaves data/rendering with Table. Its SSR seed
201201
derives from declared sizes; four-row overscan and row-scroll coordination are internal.
@@ -204,7 +204,7 @@ Rejected: sliced-props bundles, duplicate Table renderers and public engine/over
204204
### DEC-2 — Flat fixed-content mode has a full-render fail-safe
205205

206206
**Reference:** `module:Table/useTableVirtualization/DEC-2`
207-
**Decider:** pending owner review
207+
**Decider:** humbertovirtudes (2026-10-24)
208208

209209
Fixed single-line content preserves pitch, fonts and controls. Invalid geometry,
210210
identity, content or extent disables virtualization in all builds. Native gaps
@@ -214,7 +214,7 @@ Rejected: numeric row minimums as enforcement, average-height repair, silent cli
214214
### DEC-3 — Identity and metadata stay canonical
215215

216216
**Reference:** `module:Table/useTableVirtualization/DEC-3`
217-
**Decider:** pending owner review
217+
**Decider:** humbertovirtudes (2026-10-24)
218218

219219
Parent keys prevent cross-row recycling and distinguish numeric/string identity.
220220
Parent positions count headers for ARIA, not visible numbering; virtual paint uses
@@ -224,7 +224,7 @@ Rejected: secondary extractors, window-local identity and global legacy ARIA cor
224224
### DEC-4 — One focus island and a first-visible-key anchor
225225

226226
**Reference:** `module:Table/useTableVirtualization/DEC-4`
227-
**Decider:** pending owner review
227+
**Decider:** humbertovirtudes (2026-10-24)
228228

229229
One keyed island retains focus; first-visible key/fractional offset anchors scroll
230230
with successor/predecessor/start fallback. Table remount, not activation/append, resets it.
@@ -233,16 +233,16 @@ Rejected: stretching a contiguous window to remote focus or using active state a
233233
### DEC-5 — Shared viewport and objective budgets gate completion
234234

235235
**Reference:** `module:Table/useTableVirtualization/DEC-5`
236-
**Decider:** pending owner review
236+
**Decider:** humbertovirtudes (2026-10-24)
237237

238238
Table/shared scrolling owns both axes, per-axis chaining and pooled geometry.
239239
Structural bounds and PR5/PR6 targets gate completion; targets are not results.
240240
Rejected: a parallel public scroll wrapper/detector or a subjective smoothness verdict.
241241

242242
## Open questions
243243

244-
None. Exact-head owner review and pending implementation evidence remain required
245-
before this draft and its parent/module dependencies become current authority.
244+
None. Owner approval establishes the normative module and parent decisions;
245+
implementation and release evidence remain separate.
246246

247247
## Content boundary
248248

0 commit comments

Comments
 (0)