Skip to content

spec(Table): define row-specific expansion control names - #9859

Merged
humbertovirtudes merged 2 commits into
meta:mainfrom
humbertovirtudes:spec/table-expansion-row-labels-v1
Nov 4, 2026
Merged

humbertovirtudes merged 2 commits into
meta:mainfrom
humbertovirtudes:spec/table-expansion-row-labels-v1

Conversation

@humbertovirtudes

@humbertovirtudes humbertovirtudes commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

User need

Expandable detail and tree rows need accessible button names that identify the controlled row, without making callers own action wording or localization.

Approved naming contract

The engineering owner approves the naming-only records for module:Table/useTableRowExpansion and module:Table/useTableTreeData and their entries in Table's module list. The records are current, with the owner decision dated 2026-11-04.

  • Optional getRowLabel?: (item: T) => string supplies row identity, not action verbs or keys.
  • Trimmed nonblank identity fills the named expand/collapse ICU message; absent/blank identity retains generic wording.
  • Selection's existing same-named callback behavior is unchanged.
  • The rendered button uses its translation context; architecture:internationalization owns provider scope and update semantics.
  • Context-menu copy remains generic. No new visual content, control, role, expansion state, keyboard or focus behavior.
  • Tree label-only changes use the existing semantic row refresh, not a new store.

Review correction

Both module ownership sections now state that they consume the control's translation context, not that they own internationalization-provider scope. This resolves the wording mismatch without changing naming behavior. The current owner decision and implementation/release evidence remain separate.

Ownership and compatibility

These records contract only accessible names for existing hooks. Table retains aggregate placement/protocol; no complete tree anatomy or selection-policy adoption. Released callers without a row label retain generic localized names. #6776 implements the optional capability and provider-placement repair.

Verification

Knowledge validation, formatting and fresh pre-review pass. The earlier independent spec pass found no additional blocking naming-scope defect. #6776's separate runtime evidence proves omitted/blank/named labels, control-local provider updates, preserved roles/state/focus and generic menu copy; this record PR adds no runtime code.

Writing rubric results

  • R1: present-tense behavior and naming-only ownership; no project narration in the records.
  • R2: no research or test-run dumps in standing records.
  • R3: verification names test paths and failure expectations, not change IDs.
  • R4: one short rejected full-label/column-inference line in each DEC-1.
  • R5: no PR, issue or commit references in standing content.
  • R6: the approved API/blank-fallback questions are resolved; each decision names its owner and date.

This PR was generated with AI assistance (Navi).
Tags: ai-generated

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 4, 2026 4:25am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 4, 2026
@astracat-bot

astracat-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 4, 2026, 4:30 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing these up. The two new module records add naming requirements (FR1-FR4 and DEC-1 in each) and change the module list of the current Table record. Approval therefore waits on an engineering owner's decision. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

What needs settling:

  • Whether FR1-FR2 stand as written in both records. This includes the expansion-only blank-label fallback, which differs from how the selection plugin's getRowLabel treats a blank label today, and whether FR2 should state the English wording of the named messages.

Required change:

  • In useTableRowExpansion.spec.md, the "Governing rules" row (line 42) says internationalization owns provider scope, but the record's Owns list (line 58) and FR3 give provider scope to this module. Make the two agree before approval binds the text.

Knowledge validation passes on these records.

[Automated review]

| Builder impact | Callers opt in only when they have a human-readable row identity. |
| Compatibility/readiness | Additive unreleased option; existing expansion behavior and generic labels remain. Owner approval and implementation verification are distinct. |
| Review checks | Reject hook-callsite locale capture, new visual content, selection semantics, or named context-menu copy. |
| Governing rules | Table FR7 owns placement; internationalization owns catalogs and provider scope; this module owns the naming slice only. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This row says internationalization owns provider scope, but the Owns list (line 58) and FR3 make provider scope this module's. Suggest matching line 101, for example: "internationalization owns catalogs, ICU interpolation and provider updates; this module owns the naming slice, including which provider names the control".

Define the accessible-name slice of the existing detail-row and tree expansion hooks. Optional getRowLabel supplies identity, trimmed blank input keeps generic wording, rendered-control providers localize names, and context-menu copy stays generic. Approval remains pending.

This diff was generated with AI assistance (Navi).

Tags: ai-generated
@humbertovirtudes
humbertovirtudes force-pushed the spec/table-expansion-row-labels-v1 branch from 06bc5dc to 9da3cb2 Compare November 4, 2026 04:15
@humbertovirtudes

Copy link
Copy Markdown
Contributor Author

/approve-spec 9da3cb2

@humbertovirtudes
humbertovirtudes marked this pull request as ready for review November 4, 2026 04:15
@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 4, 2026
@humbertovirtudes humbertovirtudes added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 4, 2026
No specification content changes. Trigger required checks after the maintainer admission label.

This diff was generated with AI assistance (Navi).

Tags: ai-generated
@humbertovirtudes

Copy link
Copy Markdown
Contributor Author

/approve-spec 4c500ee

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet.

An engineering owner approved both new module records and the Table modules-list change on this commit, so the naming contract for getRowLabel on the row-expansion and tree hooks stands as written. The earlier comment about who owns provider scope in the row-expansion record is resolved: the at-a-glance row, the ownership lists and FR3 now agree. Knowledge validation passes on these records, and no changes are needed.

[Automated review]

@humbertovirtudes
humbertovirtudes merged commit 246c51d into meta:main Nov 4, 2026
57 checks passed

This branch was successfully deployed

1 active deployment
Preview — 4c500ee4 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant