Repository navigation
spec(AST-117): entryErrorBehavior for inputs that check their own entries - #11310
Conversation
…ies (draft) A draft system spec for `validationTiming` on DateInput, DateTimeInput, TimeInput, and NumberInput, with a form-wide `defaultValidationTiming` on FormLayout. The input-field family and the five component records project it, each with its requirement gaps.
|
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.
Approval is on hold. spec:AST-117 and its projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, OQ1–OQ5, and whether validationTiming and its 'complete' default fit the public-API rules for behavior props (the <thing>Behavior naming, and new behavior props defaulting to the shipped behavior).
A new commit resets any approval, so please fix these record defects first:
- FR3 item 4 and DateInput FR24 count a native date as complete as soon as the control reports it, but Chromium reports each partial year (
0002-05-10,0020-05-10,0202-05-10) while the year is typed, so a native DateInput withminwould flag an unfinished date against AR1; count a native date value as complete only at commit. - FR3 item 3 equates "no digit added to its end can bring it into range" with "zero or more and above
max, or negative and belowmin", but the two differ (4withmin={20} max={30}can never reach the range yet fails the second test), so keep one test across FR3, DEC-4, OQ1 and NumberInput FR14. - The Compatibility section cites
spec:AST-017FR5 for changes that apply with no prop set (per-keystroke marking stops, rejected text stays on blur, a shown rejection persists), but FR5 covers only additive changes that leave old usage unchanged, and AST-017 FR3 judges a changed default under FR1, so reclassify those bullets under FR1 (naming the consumer scenario) or FR53.
Two smaller points: drop "Known verification gap: none of these suites exist on main.", since the TBD (gap) rows already say it, and align NumberInput's inverted-range row and the opening of its FR3 with the new rule that a commit keeps rejected text.
Claims and files checked
- Claim: the option was decided in the linked issue. The decision comment exists; it is not an approval of this head.
- Claim: FormLayout's optionality default travels through a layer-scoped context, and a nested layout replaces it, unset included. Verified in the FormLayout source.
- Claim: main shows a nonexistent or out-of-range date once it is complete and flags unreadable date text on each keystroke. Verified in the typed-date hook.
- Claim: NumberInput and TimeInput mark every draft that is not an in-range value as invalid and announce it on each keystroke, with no visible message. Verified.
- Claim: TimeInput and NumberInput revert an unparsable draft on blur, and TimeInput has no Enter commit. Verified.
- Claim: PowerSearch and Table filter editors render these inputs, and DateRangeInput has no typed entry. Verified.
- Claim: the new record carries no pull request or issue references. Verified.
- Claim: current mismatches are written as requirement-named gap lines. Verified, except the "Known verification gap" line.
- Claim: 646 authored lines. Verified.
- Claim:
git diff --checkis clean. Verified. - Claim: the knowledge check, Prettier, the pre-review script and the specs lookup pass. Not verified.
- File
docs/specs/AST-117-validation-timing/spec.md: three findings and one note. - File
docs/specs/components/DateInput/DateInput.spec.md: FR24 shares the native-date finding. - File
docs/specs/components/DateTimeInput/DateTimeInput.spec.md: FR15 inherits the native-date finding. - File
docs/specs/components/NumberInput/NumberInput.spec.md: FR14 shares the number-test finding; one note on the inverted-range row. - File
docs/specs/components/TimeInput/TimeInput.spec.md: clear. - File
docs/specs/components/FormLayout/FormLayout.spec.md: clear. - File
docs/families/input-fields.md: clear.
Rename the option to `validationBehavior`, `defaultValidationBehavior`, and `ValidationBehavior`, per the `<thing>Behavior` rule for a prop that chooses how a component responds to input, and note that it differs from the React Aria prop of the same name. `'complete'` is now each member's shipped behavior, as a new behavior prop's default must be, and `'commit'` holds every signal of a member's own rejection until Enter or blur. Per-member completeness, keeping rejected text at commit, visible messages for NumberInput, TimeInput and native controls, and the end of per-keystroke alerts move to a separate record. Every compatibility bullet is additive; the unneeded verification-gap line is dropped.
There was a problem hiding this comment.
Approval is on hold: spec:AST-117 and its six projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, the recommended answers to OQ1–OQ4, whether the value name 'complete' fits NumberInput and TimeInput (which flag on each keystroke today), and whether Pagination's page input follows a form default.
A new commit resets any approval, so please fix these record defects first:
- FR5's last sentence makes a caller's new
valuereplace the entry and clear its rejection under both values, but NumberInput and TimeInput keep an invalid draft whenvaluechanges today (NumberInput's tests assert it), so it changes the default behaviour FR3 promises to keep; drop the sentence or scope it to what each member's record states. - NumberInput FR14 announces only an unparsable draft at blur and says an out-of-range number always clamps, but FR3 and the Range row also revert a fractional draft in an integer-only field and every number while
minis abovemax, so under'commit'those drafts would vanish unannounced against AST-117 FR4 and AR3; name them in FR14.
Smaller points: DateTimeInput's time segment has no Enter commit today either, so the FR4 gap, the Compatibility bullet and DateTimeInput FR15's gap should name it, FR3 should tie 'complete' to each member's record alone, and DateInput FR24 could say that a refused native value is announced and reverted at the same blur.
Claims and files checked
- Claim: the option is named validationBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (record FR1, FR2, DEC-3; the public API naming rule).
- Claim: the default is each member's shipped behaviour: verified for FR3 and the member rows; false through FR5's caller-value sentence.
- Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behaviour: false only for FR5's caller-value sentence.
- Claim: every compatibility bullet is additive: verified for both bullets; the FR5 change has no bullet.
- Claim: the earlier review's findings are addressed: verified for native-date completeness, the two number tests, the compatibility citation, the verification-gap line, and the naming and default; the inverted range resurfaces in NumberInput FR14.
- Claim: the form default travels like the optionality default, nested layouts replace it even when unset, and layers start without it: verified against the layout context code.
- Claim: code facts on main (date rejection timing, per-keystroke number and time flagging, blur reverts, no TimeInput Enter commit): verified in source.
- Claim: the two records' new requirement ids do not overlap: verified against the companion pull request's files.
- Claim: the knowledge check, Prettier and the pre-review checks pass: not rerun.
- File: docs/specs/AST-117-validation-timing/spec.md: FR5 finding; FR3, FR4 gap and Compatibility notes.
- File: docs/specs/components/NumberInput/NumberInput.spec.md: FR14 finding.
- File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: FR15 gap note.
- File: docs/specs/components/DateInput/DateInput.spec.md: FR24 native note.
- File: docs/specs/components/TimeInput/TimeInput.spec.md: clear.
- File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.
- File: docs/families/input-fields.md: clear.
…e reverted number drafts, and note the DateTimeInput time segment's Enter
There was a problem hiding this comment.
Approval is on hold: spec:AST-117 and its six projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, the recommended answers to OQ1–OQ4, whether the value name 'complete' fits NumberInput and TimeInput (which flag on each keystroke today), and whether Pagination's page input follows a form default.
Both record defects from the last review are fixed, and no blocking finding remains. Three optional wording points follow; a new commit resets any approval, so make them first if you take them:
- NumberInput FR14's Enter clause keeps only a draft that does not parse, while FR3 and the Range row also keep a wrong-kind draft and, with
minabovemax, every number; say Enter keeps a draft FR3 keeps. - FR3's last sentence ties no-prop behavior to the latest stable release as well as to each member's record; one source is enough.
- Miss: TimeInput's at-a-glance Public contract still says "no prop, type, or export changes" beside the new
validationBehavior.
Claims and files checked
- Claim: the option is named validationBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (record FR1, FR2, DEC-3; the public API naming rule).
- Claim: the default is each member's shipped behavior, and commit holds every signal of a member's own rejection until Enter or blur: verified (FR3, FR4 and the four member projections).
- Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behavior: verified; the value-replacement sentence now defers to each member's record.
- Claim: every compatibility bullet is additive: verified in the new record and the five component records.
- Claim: the earlier review findings are addressed: verified for the value-replacement sentence, the number blur clause and the time-segment Enter gap; the Enter half of the number fix remains a wording point.
- Claim: the form default travels like the optionality default (layer-scoped, nested layouts replace it even when unset, the field wins): verified against the layout context code.
- Claim: code facts on the base (date rejection timing, per-keystroke number and time flagging, blur reverts, no TimeInput Enter commit): verified in source.
- Claim: open work makes commit timing the only date behavior: verified (two open pull requests).
- Claim: the two records' new requirement ids do not overlap: verified against the companion pull request's files.
- Claim: the new record carries no pull request or issue references: verified.
- Claim: the knowledge check, Prettier and the pre-review checks pass: not rerun; the 502 authored lines match.
- File: docs/specs/AST-117-validation-timing/spec.md: FR3 wording point.
- File: docs/specs/components/NumberInput/NumberInput.spec.md: FR14 Enter wording point.
- File: docs/specs/components/TimeInput/TimeInput.spec.md: at-a-glance wording point.
- File: docs/specs/components/DateInput/DateInput.spec.md: clear.
- File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: clear.
- File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.
- File: docs/families/input-fields.md: clear.
…keeps what FR3 keeps; TimeInput contract names validationBehavior
There was a problem hiding this comment.
Approval is on hold: spec:AST-117 and its six projections add requirements that no current record covers yet, so an engineering owner needs to record the decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, the author may do so. That decision covers the option itself, the recommended answers to OQ1–OQ4, whether the value name 'complete' fits NumberInput and TimeInput (which flag on each keystroke today), whether Pagination's page input follows a form default, and when DateInput's and DateTimeInput's onEntryErrorChange reports under 'commit'.
One fix is needed before that approval, and a new commit resets any approval, so approve the rebased head:
- Regression:
mainnow gives DateInput and DateTimeInputonEntryErrorChange, so this branch conflicts in both records, and DateInput FR24 and DateTimeInput FR15 do not say whether that callback, and the callererrorstatus it drives (which DateInput AR3 shows and announces), wait for Enter or blur under'commit'; rebase ontomainand state that timing in FR4, FR24 and FR15.
The three earlier wording points are fixed.
Claims and files checked
- Claim: the option is named validationBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (record FR1, FR2, DEC-3; the public API naming rule).
- Claim: the default is each member's shipped behavior, and commit holds every signal of a member's own rejection until Enter or blur: verified (FR3, FR4 and the four member projections).
- Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behavior: verified; FR3 now names one source for no-prop behavior.
- Claim: every compatibility bullet is additive: verified in the new record and the five component records.
- Claim: the earlier review findings are addressed: verified, including the number Enter clause, the single source for the default and the time input's summary row.
- Claim: the form default travels like the optionality default (layer-scoped, nested layouts replace it even when unset, the field wins): verified against the layout context code.
- Claim: code facts on the base (date rejection timing, per-keystroke number and time flagging, blur reverts, no time input Enter commit): verified in source at the base.
- Claim: open work makes commit timing the only date behavior: verified (two open pull requests).
- Claim: the two records' new requirement ids do not overlap: verified against the companion pull request's files.
- Claim: the new record carries no pull request or issue references: verified.
- Claim: the pre-review check merges cleanly: false now; the date input records changed on the main branch since, and the branch conflicts in both.
- Claim: the knowledge check and Prettier pass: not rerun; the 502 authored lines match.
- File: docs/specs/AST-117-validation-timing/spec.md: FR4 is silent on the date inputs' new rejection callback (the blocking point).
- File: docs/specs/components/DateInput/DateInput.spec.md: conflicts with the main branch; FR24 is silent on the callback.
- File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: conflicts with the main branch; FR15 is silent on the callback.
- File: docs/specs/components/NumberInput/NumberInput.spec.md: clear.
- File: docs/specs/components/TimeInput/TimeInput.spec.md: clear.
- File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.
- File: docs/families/input-fields.md: clear.
…idation-timing # Conflicts: # docs/specs/components/DateInput/DateInput.spec.md # docs/specs/components/DateTimeInput/DateTimeInput.spec.md
…s validationBehavior
…n keeps the default
|
/approve-spec 306c614 |
There was a problem hiding this comment.
Changes requested. An engineering owner approved spec:AST-117 at this head, which settles its direction; these record fixes remain, and because they need a new commit, which resets that approval, the owner approves the fixed head again with /approve-spec <full head SHA>.
- The public-concept rows in the family record and the four member records, and AST-117's Current-state impact line, still call the option "validation timing", the name DEC-3 rejects, while FormLayout calls the same concept "entry error behavior"; rename them to "entry error behavior".
- FR7 now keeps Pagination's page input at
'complete', but its verification row names only PowerSearch and Table suites and the path-applicability block omitspackages/core/src/Pagination/Pagination.tsx, so add both, asarchitecture:knowledge-contractsINV26 requires. - Miss: the path-applicability block also leaves out
packages/core/src/PowerSearch/PowerSearchValueEditor.tsxandpackages/core/src/Table/plugins/filtering/useTableFiltering.tsx, which FR7 has bound since earlier revisions; add them. - The description says 502 authored lines (this revision has 510) and that React Aria has a prop "of the same name" (its prop is
validationBehavior); update both sentences, which needs no new commit.
Non-blocking: DEC-3's "as soon as the entry is complete enough to be wrong" reads looser than NumberInput FR14 and TimeInput FR13, which flag 1 with min={10} on the keystroke, and DateInput FR20 could point its typing sentence to FR24. The earlier onEntryErrorChange and merge-conflict point is fixed.
Claims and files checked
- Claim: the option, its name, values and default were decided in the linked issue, and the owner ruled every sub-decision: verified (issue comments for the option, values, default and names; DEC-4 to DEC-6 as the author's Decider lines, approved at this head).
- Claim: the option is named entryErrorBehavior, with a FormLayout default and an exported type, following the behavior-prop naming rule: verified (FR1, FR2, DEC-3; the behavior-prop rule).
- Claim: the default is each member's shipped behavior, and blur-or-enter holds every signal of a member's own rejection until Enter or blur: verified (FR3, FR4 and the four member rows).
- Claim: changes that apply with no prop set moved to the companion record, so these members keep today's behavior: verified (FR3; the companion pull request's files).
- Claim: every compatibility bullet is additive: verified in the new record and the five component records.
- Claim: the findings on the first revision are addressed: verified; none of the earlier record findings remains.
- Claim: the cited existing records (family record, behavior-prop rules, FormLayout optionality clauses, announcement, calendar, disabled and release records, member records) say what the description quotes: verified on the main branch.
- Claim: code facts on the main branch (date rejection timing, per-keystroke number and time flagging, blur reverts, no time-input Enter commit, the layer-scoped layout context, editors that render the members): verified in source.
- Claim: two open pull requests make commit timing the only date behavior: verified (both open).
- Claim: React Aria has a prop of the same name: false; React Aria's prop is validationBehavior.
- Claim: onEntryErrorChange reports at the revealing commit and clears at once: verified (FR4, the DateInput and DateTimeInput rows).
- Claim: number and time inputs keep an invalid focused draft across a value change: verified (FR5).
- Claim: the projections take the listed ids in six records, each with a gap line: verified.
- Claim: the companion record takes the same ids, and whichever lands second renumbers: verified in both descriptions.
- Claim: a nested layout without the prop resets to complete, native values wait under blur-or-enter, and Enter becomes a time-input commit only when set: verified (FR2, FR4, Compatibility).
- Claim: the new record carries no pull request or issue references: verified.
- Claim: no implementation, docs or changeset changes, and no internal context: verified.
- Claim: the pre-review count is 502 authored lines: false; this revision has 510. Merges cleanly: verified.
- Claim: the whitespace check is clean: verified. The knowledge check, Prettier and spec routing: not rerun.
- File: docs/specs/AST-117-validation-timing/spec.md: FR7's verification row and path-applicability block miss Pagination, and the block misses the PowerSearch and Table editors; DEC-3 wording is non-blocking.
- File: docs/families/input-fields.md: the concept row says validation timing.
- File: docs/specs/components/DateInput/DateInput.spec.md: the concept row says validation timing; the FR20 note is non-blocking.
- File: docs/specs/components/DateTimeInput/DateTimeInput.spec.md: the concept row says validation timing.
- File: docs/specs/components/NumberInput/NumberInput.spec.md: the concept row says validation timing.
- File: docs/specs/components/TimeInput/TimeInput.spec.md: the concept row says validation timing.
- File: docs/specs/components/FormLayout/FormLayout.spec.md: clear.
…erification name Pagination, PowerSearch and Table filter files
|
/approve-spec aa8c1d9 |
There was a problem hiding this comment.
Changes requested, for the pull request description only. The records at this head are consistent, and the engineering-owner approval of this head settles the spec direction; because every fix below is a description edit, it needs no new commit and the approval stays valid.
- The writing-rubric line for
component:DateInputsays FR20 is unchanged, but this head adds "(under'blur-or-enter', at the commit that reveals it, FR24)" to FR20 (DateInput.spec.md:198). - The Evidence section says
spec:AST-118projects its native-date rule in DateInput FR25 and DateTimeInput FR16, but #11321 projects it in DateInput FR24 and DateTimeInput FR15, as this description's own relationship paragraph says. - The Evidence section says
spec:AST-118FR1 keeps the "nothing typed at its end can bring it into range" number test with the4-in-20–30 example, but AST-118 FR1 now makes a typed number complete only at commit, and its DEC-12 rejects that test.
Optional: FormLayout's nested state row (FormLayout.spec.md:116) could name entry error behavior beside direction and optionality, as FR4 now does.
Claims and files checked
- Verified: the option, its values, default and names were decided on the linked issue and match FR1–FR3 and DEC-3.
- Verified: changes that apply with no prop set live in the companion record, and both compatibility bullets are additive.
- Verified: the earlier findings are addressed (no completeness definition here, no number tests, additive citations only, the naming and default rules, the five concept rows, FR7's Pagination row and the path block).
- Verified: the cited architecture, release, announcement, disabled-state and FormLayout clauses say what the description says they say.
- Verified: the code facts for the date, number and time inputs on the base, including the per-keystroke alert regions and TimeInput's missing Enter commit.
- Verified: the linked pull requests and issues are open and about what the description says.
- Verified: the decisions DEC-1 to DEC-6 name the owner, and the record has no open questions.
- Verified: the companion record is one accessibility fix, aligns the NumberInput range row and FR3, and claims the same next free requirement ids.
- Verified: the rubric lines for the new record, the family, FormLayout, DateTimeInput, TimeInput and NumberInput.
- Verified: the authored line count (591), the clean merge with
main, and a clean whitespace check. - False: the DateInput rubric line on FR20, and the two Evidence lines about the companion record's ids and number rule.
- Not checked: the knowledge check, Prettier and specs-routing results in Validation, which could not run in this review's environment.
docs/specs/AST-117-validation-timing/spec.md: clear.docs/families/input-fields.md: clear.docs/specs/components/DateInput/DateInput.spec.md: clear (the description misstates its FR20 change).docs/specs/components/DateTimeInput/DateTimeInput.spec.md: clear.docs/specs/components/FormLayout/FormLayout.spec.md: non-blocking note on thenestedstate row.docs/specs/components/NumberInput/NumberInput.spec.md: clear.docs/specs/components/TimeInput/TimeInput.spec.md: clear.
|
/approve-spec a24c20e |
There was a problem hiding this comment.
Changes requested: one record fix. The engineering-owner approval of this head settles the direction and the earlier description findings are fixed, but the fix below needs a new commit, after which an engineering owner records approval again by commenting /approve-spec <full head SHA> on the new head (the author may do so as an engineering owner).
- Miss:
spec:AST-117FR6 says a disabled or busy member reveals no rejection "as its record states", but TimeInput's record keeps a busy field editable and flagging (its FR6 keeps the picker enabled during a pending Action and marks out-of-range native edits, and only a disabled field blocks typing) and DateTimeInput's native segments accept edits during a pendingchangeAction, so FR6 contradicts FR3's promise that'complete'is the shipped behavior; scope FR6 to the records that lock a busy field (DateInput FR12, DateTimeInput FR9 and FR13) and align its verification row.
Optional: NumberInput's Builder impact row still says public prop types remain unchanged beside the new entryErrorBehavior, and the Validation line's authored count is 593 at this head, not 591.
Claims and files checked
- Verified: the option, its values, default and names were decided on the linked issue and match FR1–FR3 and DEC-3; the name follows the behavior-prop rule and the default is the shipped behavior.
- Verified: changes that apply with no prop set live in the companion record, which is one accessibility fix, projects into the same next requirement ids, and makes typed numbers and native dates complete only at commit.
- False while FR6 stands: that the four members keep today's behavior in this pull request and that every compatibility bullet is additive; a busy TimeInput would stop flagging.
- Verified: the earlier findings are addressed (no completeness definition here, no number tests, additive citations only, no verification-gap line, the naming and default rules).
- Verified: the cited architecture, release, announcement, layer, disabled-state and FormLayout clauses say what the description says they say.
- Verified: the code facts for the date, number and time inputs on the base, including the per-keystroke alert regions and TimeInput's missing Enter commit (DateTimeInput's validity memo has a slightly different name).
- Verified: the linked pull requests and issues are open and about what the description says.
- Verified: DEC-1 to DEC-6 name the owner, the record has no open questions, and the projections table matches the records.
- Verified: the writing-rubric lines for all seven records.
- Verified: a clean whitespace check and a clean merge with
main. - Stale: the authored line count (593 at this head, not 591).
- Not checked: the knowledge check, Prettier, specs routing and pre-review findings in Validation, which could not run in this review's environment.
docs/specs/AST-117-validation-timing/spec.md: FR6 busy rule (blocking).docs/specs/components/TimeInput/TimeInput.spec.md: FR13 cites FR6 but keeps a busy field flagging (part of the FR6 finding).docs/specs/components/DateTimeInput/DateTimeInput.spec.md: native segments during a pending Action (part of the FR6 finding).docs/specs/components/NumberInput/NumberInput.spec.md: non-blocking Builder impact row.docs/specs/components/DateInput/DateInput.spec.md: clear.docs/specs/components/FormLayout/FormLayout.spec.md: clear.docs/families/input-fields.md: clear.
…act names the new prop
|
/approve-spec a9259bb |
There was a problem hiding this comment.
Approved pending CI: CI is still running on this head, so this is not ready to merge until its required checks pass.
The engineering-owner approval of this head settles the direction of spec:AST-117, and the last review's finding is fixed: FR6 now silences only locked fields, and a busy TimeInput, which stays editable, keeps revealing rejections as it does today.
- Optional (Miss): the Governing rules row of each member's review projection (DateInput, DateTimeInput, FormLayout, NumberInput, TimeInput) could list
spec:AST-117, the way DateInput's row already listsspec:AST-111.
Claims and files checked
- Verified: the option, its values, default and names were decided in the owner's comments on the linked issue and match FR1–FR3 and DEC-3.
- Verified: the name follows the behavior-prop naming rule, and the default is each member's shipped behavior.
- Verified: changes that apply with no prop set live in the companion record's open pull request, which is one accessibility fix, makes typed numbers and native dates complete only at commit, rejects the digit-reachability test, and uses the same next requirement ids.
- Verified: every compatibility bullet is additive, in the new record and in each member's compatibility lines.
- Verified: the earlier findings are addressed (no completeness definition, no number tests, additive citations only, no verification-gap line, NumberInput's range row and FR3 opening unchanged).
- Verified: the cited naming, release, announcement, layer, disabled-state and FormLayout clauses say what the description says, and a nested FormLayout replaces an unset optionality default in code.
- Verified: the code facts for the date, number and time inputs on the main branch, including the per-keystroke alert regions and TimeInput's missing Enter commit (DateTimeInput's validity memo is named for its time segment).
- Verified: the linked pull requests and issues are open and about what the description says.
- Verified: FR1–FR7, the projections table, the owner decisions (DEC-3 to DEC-6 name the owner; no open questions), the notes on TimeInput's Enter, native values and nested layouts, and the scope and non-goals match the records; no implementation, docs or changeset changes.
- Verified: the writing-rubric lines for all seven records, including the older references left outside the delta.
- Verified: 597 authored lines, a clean whitespace check and a clean merge with the main branch; every changed table is padded the way Prettier pads it, and the new record follows the system-spec template.
- Not rerun here: the knowledge check, the Prettier check, specs routing and the pre-review findings count; CI's spec lane runs the knowledge check.
docs/specs/AST-117-validation-timing/spec.md: clear (FR6 fixed).docs/specs/components/DateInput/DateInput.spec.md: Governing rules note (non-blocking).docs/specs/components/DateTimeInput/DateTimeInput.spec.md: Governing rules note (non-blocking).docs/specs/components/FormLayout/FormLayout.spec.md: Governing rules note (non-blocking).docs/specs/components/NumberInput/NumberInput.spec.md: Builder impact row fixed; Governing rules note (non-blocking).docs/specs/components/TimeInput/TimeInput.spec.md: Governing rules note (non-blocking).docs/families/input-fields.md: clear.
| | Behavior | `presentation` selects the picker surface; an omitted value is `adaptive-native`; `presentation` wins over deprecated `nativePicker`; every committed path emits the same controlled ISO-date value and action feedback. The pointer field reads and writes typed dates in the resolved calendar and reports a typed date only when it is complete (FR20). With a calendar other than `gregory` or `iso8601`, a presentation that would show the native control shows the popover on a fine pointer and the bottom sheet on a coarse pointer, and the bottom sheet shows months of the calendar (FR21). | | ||
| | End-user impact | People type or pick one date using a surface suited to the primary pointer, in the calendar the application chooses. Disabled and busy fields stay focusable; a busy field keeps its ordinary paint with a Spinner while new commits are blocked. | | ||
| | Builder impact | Optional: set `calendar` on the field or its provider, and `min` and `max` on Buddhist and Minguo calendar fields. `changeAction` runs after `onChange` with optimistic busy feedback on every surface. | | ||
| | Compatibility/readiness | `calendar` is additive and the default stays Gregorian. `onEntryErrorChange` is additive; without it, a typed rejection's message replaces a caller `status` as AR3 states. Typed Gregorian entry fires `onChange` only for complete input and keeps an out-of-range date with its error; `parseDateInput` handles only unreadable text and dates the locale's order lacks, and a two-digit year reads within the 80 years before and 19 after the current year, 1946–2045 in 2026 (FR20). Calendars that need `Temporal` fall back to Gregorian where it is missing (the `spec:AST-013` FR12 exception). Under a finger, the sheet wheels' markup changes (one strip of flat rows, faded by a layer inside the column). Under every presentation, keys step through the values in time order (FR17). Caller handlers while disabled, fixed field height, a clear control that drops focus, and month paging in the touch calendar are listed under Current-state impact. | | ||
| | Review checks | Reject a surface-mapping change, lost constraint, callback-order change, unlabeled field, native `disabled`, disabled paint on a busy-only field, unreachable disabled reason, changed close behavior, a theming target placed on the wrong owner, a typed date reported before it is complete, an adjusted typed date, or two rejection kinds that share a message. | | ||
| | Review checks | Reject a surface-mapping change, lost constraint, callback-order change, unlabeled field, native `disabled`, disabled paint on a busy-only field, unreachable disabled reason, changed close behavior, a theming target placed on the wrong owner, a typed date reported before it is complete, an adjusted typed date, two rejection kinds that share a message, or a rejection revealed before commit under `'blur-or-enter'`. | | ||
| | Governing rules | `spec:AST-043/FR1–FR5`; `spec:AST-085/FR1–FR6`; `spec:AST-086/FR3, FR4, FR6, FR8`; `spec:AST-111` FR2, FR3, FR9–FR16, AR2, AR3; `spec:AST-013` FR12; `family:input-fields/FR1–FR6, FR8–FR11`; `family:overlay-dismissal/FR1–FR7`, including its recorded BottomSheet adoption gap; `spec:AST-020/FR15`; `spec:AST-102/FR4`; the four architecture records linked above. | |
There was a problem hiding this comment.
Non-blocking (Miss): this Governing rules row lists spec:AST-111 but not spec:AST-117, which FR24 and the Public contract row now cite. The same row in DateTimeInput (:64), FormLayout (:49), NumberInput (:52) and TimeInput (:49) omits it too. Suggest adding spec:AST-117 FR1–FR6 (FormLayout: FR2).
Exact decision needed
The option is decided on #10367, and the owner has ruled on its name and every sub-decision (see Owner decisions). This PR records them; the spec owner needs to approve the record content.
This head differs from the first in five ways:
entryErrorBehavior, withdefaultEntryErrorBehavioronFormLayoutand an exportedEntryErrorBehaviortype. This follows the<thing>Behaviornaming rule (architecture:public-component-apiINV2).'complete', is each member's shipped behavior (INV3).'blur-or-enter'holds every signal of a member's own rejection until Enter or blur.spec:AST-118(separate PR). Those are: the per-member points of completion, keeping rejected text at commit, visible messages for NumberInput, TimeInput, and native controls, and the end of per-keystroke alerts. In this PR those members keep today's behavior.Existing authority searched
family:input-fieldsowns the cross-member treatment of input state display and API. Its shared-owner section givesFormLayoutform-level optionality. No claim covers when a member reveals its own rejection.architecture:public-component-apiINV2 and INV3.<thing>Behavior.'complete'default follow both.component:FormLayoutFR4, FR5, ORD1, ORD3: howdefaultOptionalityworks.defaultEntryErrorBehaviorfollows the same path, as decided.spec:AST-086(FR1, FR5, FR7) owns how announcements are delivered, not when an input rejects.spec:AST-111FR11, FR12, AR3 owns the date rejection kinds and their messages.spec:AST-085FR2: disabled and busy fields.spec:AST-017FR5: additive changes.main(a709f9a):typedDateErrorinDateInput/useTypedDate.ts.isInputValidmemos and keystrokerole="alert"regions inNumberInput.tsx,TimeInput.tsx, andDateTimeInput.tsx.NativeDateField.tsx's rejected value.FormLayoutContext.ts.PowerSearchValueEditor.tsxanduseTableFiltering.tsx, which include inline filter slots.'blur-or-enter'value.spec:AST-118, not to this record.Why a new record instead of extending the family record:
FormLayout, a collaborator and not a member. The repo sends consequential public-API changes todocs/specs/(AGENTS.md;docs/specs/README.md).currentand cannot hold draft content while sub-decisions are open.spec:AST-099. Each owning contract changes in this PR (architecture:knowledge-contracts, "When current records disagree", step 5).Decision
spec:AST-117(authoritydraft, phaseproposed):DateInput,DateTimeInput,TimeInput, andNumberInputtakeentryErrorBehavior: 'complete' | 'blur-or-enter'. One value covers every surface and segment, and the type is exported asEntryErrorBehavior. The prop sets when a member reveals its own entry errors. React Aria'svalidationBehaviorchooses native or ARIA validation, which is a different concept.FormLayouttakesdefaultEntryErrorBehavior. Resolution order: the field's prop, then the nearestFormLayoutin the same layer, then'complete'. The default travels exactly likedefaultOptionality.'complete'is each member's shipped behavior. A field with neither prop behaves exactly as on the latest stable release.'blur-or-enter', a member shows, marks, styles, and announces no rejection of its own while the person types. A member that reports rejections to the caller (DateInput's and DateTimeInput'sonEntryErrorChange, now onmain) reports a rejection when it reveals it, so a callererrorstatus that the report drives appears at the same commit; a cleared rejection reports at once.'blur-or-enter', an edit that leaves the entry rejected keeps the revealed rejection, without a new announcement. A newvalueor a pick clears a rejection only where the member's record says it replaces the entry, so NumberInput and TimeInput keep an invalid focused draft across avaluechange, as they do today.PowerSearchand Table filter editors keep'complete'and take no prop.Projections:
family:input-fieldscomponent:FormLayoutcomponent:DateInputcomponent:DateTimeInputcomponent:TimeInputcomponent:NumberInputEach projection states
'complete'as that member's shipped behavior, states'blur-or-enter'for that member, and adds one gap line.Owner decisions (recorded)
The owner ruled on every sub-decision, and each DEC names the owner as decider. The record has no open questions.
'blur-or-enter', a member that drops a rejected entry at commit announces it once at that commit, then drops it. Ifspec:AST-118lands, nothing drops and this case disappears.PowerSearcheditors, Table filters, andPagination's page input keep'complete'and take no prop; a surroundingFormLayoutdoesn't change them.DateRangeInputhas no typed entry.entryErrorBehavior/defaultEntryErrorBehavior/EntryErrorBehavior, with the values'complete' | 'blur-or-enter'. It avoids React Aria'svalidationBehavior(native vs ARIA validation), follows INV2, and matchesonEntryErrorChange. DEC-3 records the rejected names.'blur-or-enter', a shown entry error stays, without a new announcement, while an edit leaves the entry wrong, until it's valid or empty or the next commit.Other record choices to check:
'blur-or-enter', Enter becomes a commit for TimeInput. The change is additive: it happens only where a caller sets'blur-or-enter'.'blur-or-enter', native values are held to Enter or blur, so the partial years Chromium reports while a year is typed never flag under'blur-or-enter'. Under'complete'they flag as they do today.spec:AST-118FR1 changes that.FormLayout. A nestedFormLayoutwith nodefaultEntryErrorBehaviorresets its descendants to'complete', as unsetdefaultOptionalitydoes.Rejected alternatives
validationBehavior,validateOn,validateTrigger,validationTiming,errorBehavior,errorTimingas the name. DEC-3 gives one line for each.'complete'as refined behavior in this record, with no false alarms and rejected text kept. A new behavior prop defaults to the shipped behavior (INV3), and changes that apply with no prop set need their ownspec:AST-017FR1/FR53 classification. That work lives inspec:AST-118.Claim scope and non-goals
'complete', which signals a rejection has, and what a commit does with a rejected entry. Each member's record owns these.onChangetiming..doc.mjschanges, and no changeset.Evidence and implementation relationship
Review on d603db2, by finding:
0002-05-10): this record no longer defines completeness.'complete'is the shipped behavior, and under'blur-or-enter'native values wait for Enter or blur (FR4). The rule that a native date value is complete only at commit isspec:AST-118FR1, projected in DateInput FR24 and DateTimeInput FR15 there.spec:AST-118FR1 now makes a typed number complete only at commit, and its DEC-12 rejects the digit-reachability test.spec:AST-118, which is now one AST-017 FR53 accessibility fix. AST-017 FR5 cited for changes that apply with no prop set: no such change remains here. Every bullet is additive. The FR1/FR53 classifications are inspec:AST-118.spec:AST-118aligns both with its keep rule.Relationship with
spec:AST-118:The two land independently, in either order.
Both use the next free FR ids on
main(DateInput FR24, DateTimeInput FR15, TimeInput FR13, NumberInput FR14, family FR14). Whichever lands second renumbers its ids.The second to land meets textual conflicts at adjacent insertions in the family record and the four component records.
If
spec:AST-118lands second, it updates the shipped-behavior wording of'complete'in this record's component rows. DEC-4's case then has nothing left to apply to.Code facts on
main(a709f9a), read from source:typedDateErrorshows a nonexistent or out-of-range date once the date is complete. Unreadable date text setsaria-invalidand fills the alert on each keystroke, then reverts on Enter or blur.isInputValiddrivesaria-invalidand an assertive alert on each keystroke for any draft that is not an in-range value.Precedent (public):
mode, Ant DesignvalidateTrigger, and MantinevalidateInputOnBlurset timing on the form.validationModeis set per form and per field, and the field wins.validationBehaviormeans native vs ARIA validation, so this record doesn't use that name.The record keeps only a one-sentence conclusion, in DEC-2.
Implementation follows in a separate PR once the record is approved.
Writing rubric results
spec:AST-117(new)spec:AST-017classification needs. No other narration.#plus digits,/pull/, and/issues/.FRn gap:lines. The "Known verification gap" line is removed.phase: proposedis the template's lifecycle field.family:input-fieldsspec:AST-117's suites.component:FormLayoutspec:AST-117DEC-2 decides the entry error behavior default."spec:AST-117DEC-2; proposal", and its row is "TBD (gap)".component:DateInput'blur-or-enter', a report comes at the commit that reveals it, FR24), AR3 gains one sentence about'blur-or-enter', and the concept row is renamed entry error behavior; the states are unchanged.proposal, and its row is "TBD (gap)".(#5074). I left it alone.component:DateTimeInputproposal, and its row is "TBD (gap)".component:TimeInput'blur-or-enter'clause.proposal, and its row is "TBD (gap)".component:NumberInput'blur-or-enter'sentence.proposal, and its row is "TBD (gap)".Scope
Components: DateInput, DateTimeInput, TimeInput, NumberInput, FormLayout (records only); the input-fields family record
spec:AST-118.)Validation
pnpm check:knowledge: "Knowledge templates and records are aligned." It prints no status warning for any touched record.prettier --checkis clean on the seven records.git diff --check: clean.pnpm review:pre(head vsorigin/main): 597 authored lines (limit 2,000), 0 findings, merges cleanly. Checklist items: [d] public boundary; [g] a spec owner approves the record content.pnpm specs:for --diff origin/main: no concern-routed claims.