Repository navigation
spec(Table): define row-specific expansion control names - #9859
humbertovirtudes merged 2 commits 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.
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
getRowLabeltreats 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. | |
There was a problem hiding this comment.
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
06bc5dc to
9da3cb2
Compare
|
/approve-spec 9da3cb2 |
No specification content changes. Trigger required checks after the maintainer admission label. This diff was generated with AI assistance (Navi). Tags: ai-generated
|
/approve-spec 4c500ee |
There was a problem hiding this comment.
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]
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/useTableRowExpansionandmodule:Table/useTableTreeDataand their entries in Table's module list. The records are current, with the owner decision dated 2026-11-04.getRowLabel?: (item: T) => stringsupplies row identity, not action verbs or keys.architecture:internationalizationowns provider scope and update semantics.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
This PR was generated with AI assistance (Navi).
Tags: ai-generated