Repository navigation
spec(input-fields): FR10 retargeting keeps each member's shipped handler order - #7346
Conversation
…r (input-fields DEC-8, INV7) Moving a base prop to the semantic control changes where a consumer handler attaches, not when it runs: a member keeps the order and cancellation behavior it shipped and documents it; component-first composition applies to handlers a member forwards for the first time.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression44 of 454 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 24 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
This pull request intentionally changes the current FR10 handler rule (component-first composition with no member variation) and INV7, so approval needs a maintainer of family:input-fields and architecture:public-component-api to approve that spec update: the rewritten FR10 paragraph, DEC-8, and the new INV7 sentence, including whether INV7 should bind every component or only point to the input-family decision. Two wording issues also need fixing before approval:
- The FR10 and DEC-8 text states the rule relative to what a member "shipped" or "previously" did, so once retargeting lands the record no longer says which baseline applies; stating the resulting behavior in the present tense would fix this and the R1 result.
- The INV7 addition restates the family rule as a global one with an unconditional documentation duty, where linking DEC-8 in the form INV6 uses for FR10 would keep one owner for the rule.
[Automated review]
| props and keep their value signature. A member preserves the handler order and | ||
| cancellation behavior it shipped: a consumer DOM handler that previously ran | ||
| after the member's own and saw every event keeps doing so, and one that could | ||
| cancel the member's behavior still can. Where that order differs from | ||
| component-first composition, the member's docs and JSDoc state it. A handler a | ||
| member did not previously forward composes component-first through the shared | ||
| composition helper. No member and no layout may vary the prop targets. |
There was a problem hiding this comment.
This states the rule relative to the past ("it shipped", "previously ran after", "did not previously forward"), so once retargeting lands the record no longer says which baseline applies, and previously is one of the R1 scan terms. Consider stating the resulting behavior instead, for example that retargeting changes the element a handler reaches but not its order or cancellation behavior, with each member's docs and JSDoc stating any order that differs from component-first. DEC-8's "the owner's bar for that change" and "a release billed as a rename" have the same issue.
| behavior only where that public API promises cancellation. A component that | ||
| moves a handler to another element keeps the order and cancellation behavior | ||
| that handler shipped with and documents it (`family:input-fields` DEC-8). |
There was a problem hiding this comment.
As written this binds every component that moves a handler, requires documentation unconditionally (FR10 requires it only where the order differs from component-first), and reads as a second rule beside the unqualified "use the shared cancellation contract". Consider the linked-exception form INV6 uses for FR10, for example that a family record may keep a moved handler's released order and cancellation behavior as a recorded exception, with family:input-fields DEC-8 as one.
# Conflicts: # docs/families/input-fields.md
|
/approve-spec d7c87bb |
There was a problem hiding this comment.
The spec owner's approval settles the handler-order direction, but two wording fixes in the rewritten FR10 paragraph and DEC-8 are needed before this lands.
- State the rule in the present tense rather than relative to what a member “shipped” or “previously” did, and give DEC-8 a system reason instead of the release bar, so the record still reads correctly after the retargeting releases (this also makes the R1 result accurate).
- Say “component” rather than “member” in that paragraph, since FR10 also binds CheckboxList, RadioList, and Slider.
The corrected head will need the owner's approval again.
[Automated review]
| props and keep their value signature. A member preserves the handler order and | ||
| cancellation behavior it shipped: a consumer DOM handler that previously ran | ||
| after the member's own and saw every event keeps doing so, and one that could | ||
| cancel the member's behavior still can. Where that order differs from | ||
| component-first composition, the member's docs and JSDoc state it. A handler a | ||
| member did not previously forward composes component-first through the shared | ||
| composition helper. No member and no layout may vary the prop targets. |
There was a problem hiding this comment.
This states the rule against history (“it shipped”, “previously ran after”, “did not previously forward”), so once the retargeting releases are history the record no longer says which baseline applies, and the R1 result reports no narration. It also names “a member” throughout, while FR10 also binds CheckboxList, RadioList, and Slider. A present-tense wording that keeps the same rule: “Retargeting a base prop changes the element a consumer DOM handler reaches, not its order or cancellation behavior: a component keeps the order and cancellation it released and states any order that differs from component-first composition in its docs and JSDoc. A handler a component forwards for the first time composes component-first through the shared composition helper.”
| attached, not when it runs. The owner's bar for that change is no visual or | ||
| behavioral update beyond the API adjustments the codemod can handle, so a |
There was a problem hiding this comment.
“The owner's bar for that change”, and “a release billed as a rename” in the Rejected line, explain the rule by a release decision rather than by the system. A system reason keeps DEC-8 true after the release, for example that a handler's order and cancellation are released interaction behavior that architecture:public-component-api INV9 keeps stable.
…nse; give DEC-8 a system reason
|
/approve-spec b68c8bc |
There was a problem hiding this comment.
This revision looks ready to land: the records' owner approved it, and it resolves the two wording points raised earlier by stating the FR10 handler rule and DEC-8 in the present tense and naming every component FR10 binds. No changes are needed in this pull request. Separately, Slider's docs do not yet say that its DOM handlers run after its own and always run, which the new FR10 documentation clause may call for in an implementation follow-up.
[Automated review]
Exact decision needed
Whether moving a consumer DOM handler from a field's outer element to its semantic control (
family:input-fieldsFR10) also changes when that handler runs relative to the member's own handler.Existing authority searched
family:input-fieldsFR10 (current): "a consumer DOM handler composes with the component's own handler through the shared composition helper, component-first unless the API promises cancellation".architecture:public-component-apiINV7 (current): consumer handlers use the shared cancellation contract; a consumer cancels built-in behavior only where the API promises it.As written, FR10 and INV7 require component-first cancelling composition, which would change what a consumer handler observes (a
DateInputcalleronKeyDownno longer seeing Enter; aComplexSelectoronClickno longer able to cancel opening) in a release billed as a rename.Decision
Retargeting a base prop changes the element a consumer DOM handler reaches, not its order or cancellation behavior: a component keeps the order and cancellation it released and documents any order that differs from component-first composition; component-first composition applies to handlers a component forwards for the first time (
family:input-fieldsDEC-8, decider the owner, 2026-10-11; its reason is that handler order and cancellation are released interaction behavior thatarchitecture:public-component-apiINV9 keeps stable). INV7 gains one sentence pointing at it.Delta
docs/families/input-fields.md: FR10's handler paragraph rewritten; DEC-8 with the rejected alternative.docs/architecture/public-component-api.md: INV7 gains the retargeting sentence.Writing rubric results
Search terms:
composeEventHandlers,chainEventHandlers,component-first,cancellation contract,handler order, acrossdocs/andpackages/core/src/utils. Overlapping work: the FR10 implementation pull requests, which document each member's order in their Changesets and docs.