Repository navigation
spec(AST-126): React Native platform: Controls - #12556
imdreamrunner wants to merge 23 commits into
Conversation
…e controls and how the library chooses them
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
…atform API only, and the Switch and date picker questions
…zing rules in its own neutral sentences
There was a problem hiding this comment.
Approval waits on a spec owner's decision. spec:AST-126 adds new draft requirements (FR1–FR16 and DEC-1–DEC-5) that no current record states, and it departs from current spec:AST-043 FR1–FR3 (the date inputs' default and native fallback), spec:AST-082 FR11 (Android slider and segmented hosts) and spec:AST-082 DEC-7 (native implementations outside @astryxdesign/native). An engineering owner records the decision by commenting /approve-spec 8983f39560dbfe785f48f79fb46254a4d1c1e870 on this pull request, or by naming the departures the record must drop; as an engineering owner, the author may record it too.
These fixes are needed whatever the decision is:
- FR2's list of shapes that draw the Astryx control (lines 149–155) misses a Button with an icon on Android (line 172), a TextInput with a start icon on Android (line 207) and a segment that shows both an icon and a label on iOS (line 219), so native presentation silently drops those icons, against
spec:AST-082FR3 and the record's own DEC-2. - The Android date module resolves
{action, value, end}(lines 400–403) instead of thestatus,reasonandmessageresult thatspec:AST-112FR8 requires and that the record says it follows (lines 37–41). NativeSlider'sshowsValueIndicator(lines 179 and 191–192) is a public prop that does nothing on its only host, so drop it until a host draws a value label.- FR1 makes
controlslink by default but hands the swipe-row, drag-snap and zoom-pager views, whichspec:AST-112FR1 puts incontrols, to a gestures record that does not exist (line 96), and it leaves the opt-out as "may exist" (line 112) while FR14 and the FR1 verification row test an opted-out build. - The description says the record links
spec:AST-082FR11 and DEC-2, but the record cites onlyspec:AST-082/FR13(line 56).
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the record is a new draft with sixteen requirements and five decisions. Verified.
- Claim: the controls link by default, changing the React Native foundation record's opt-in rule. Verified as stated; the foundation record itself is not edited.
- Claim: two gap lines cover the default link and the switch. Verified (lines 128–130 and 158–160).
- Claim: the date inputs differ from the input-presentation record in two places, left as an open question. Verified (lines 438–442, OQ3).
- Claim: the native-first record's native-first rule and visual-props decision are linked. False: only its dependency rule is cited (line 56).
- Claim: the native component guidelines record is consistent. Not cited in the record; that record covers apps built on the shared native package.
- Claim: the contract tables come from the package's contract list. Not verifiable: the React Native package is not in this repository.
- Claim: every native piece has a library component that uses it. Verified in the record's table; the paste button and media scrubber have no component record yet.
- Claim: one rejected-alternative line each in the three decisions, no pull request references, no build status. Verified.
- Claim: the knowledge check, Prettier, the whitespace check and the leak scan are clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: the five findings above.
…dicator, uses the FR8 result shape, and names the native-first departures
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: spec:AST-126 adds draft requirements (FR1–FR16 and DEC-1–DEC-5) that no current record states, it departs from current spec:AST-043 FR1–FR3 (the date inputs' default and native fallback) and spec:AST-082 FR11 (the drawn default and Android's drawn Slider and SegmentedControl), and it leaves open whether spec:AST-082 DEC-2 covers the public ./controls views. An engineering owner records the decision by commenting /approve-spec 4e8f37a68825a5a3242f8c3093e50899e646d87d on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too. The earlier icon, slider indicator, date result, gesture-view and link fixes are in at this head.
These fixes are needed whatever the decision is:
- The Intent's statement that the controls' native-only visuals "are theme configuration, not component props" (lines 42–43) is contradicted by the public views' platform-only visual props (
buttonStyleglass,fieldStylefilled, and the paste control's tints and radius in FR3, FR5 and FR8), so scope it to the library components and name the./controlsprops as a departure, or move those visuals into the theme. - Miss:
systemImage,startSystemImage,fieldStyle,fill,cornerRadiusandinsetXsit on contracts marked for iOS and Android (lines 393 and 395) but do nothing on Android (lines 179 and 211), so tag them iOS-only and have the Android wrapper say so in development, or draw them there. - The description says "Six questions stay open" but lists seven (OQ1–OQ7).
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record is a new draft with sixteen requirements and five decisions. Verified.
- Claim: the record changes the React Native foundation record so the controls link by default. Verified as stated (the FR1 gap and Current-state impact); the foundation record itself is not edited.
- Claim: the native-first record's native-first rule, dependency rule and visual-props decision are linked, and two native-first departures are named. Verified (lines 41–43, 58 and 450–454); the visual-props link is the first finding.
- Claim: the native component guidelines record is not cited. Verified.
- Claim: the date inputs differ from the input-presentation record in two places, left as an open question. Verified (lines 445–449, OQ3).
- Claim: the Android date module resolves the foundation record's result object. Verified (lines 404–410).
- Claim: an icon never disappears: an icon button or start-icon field on Android and an icon-and-label segment draw the Astryx control. Verified for the library components (lines 154–162); the direct views are the second finding.
- Claim: two gap lines cover the default link and the switch. Verified (lines 132 and 165).
- Claim: the contract tables come from the package's contract list. Not verifiable: the React Native package is not in this repository.
- Claim: every native piece has a library component that uses it. Verified in the record; the paste button and media scrubber have no component record yet.
- Claim: the gesture views link by default and the gestures record owns their contracts. Verified; that record is an open draft pull request.
- Claim: six questions stay open. False: seven are listed.
- Claim: one rejected-alternative line in each of three decisions, no pull request references and no build status. Verified.
- Claim: the knowledge check, Prettier and the whitespace check pass, and the leak scan is clean. Verified at this head.
- Claim: open pull requests show no overlap. Verified: the open gestures and component-set drafts agree with or defer to this record.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: the three findings above.
…ed AST-112, follows AST-043 and AST-082 with departures as open questions, and tags iOS-only members
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states; the decision needs to settle:
- Android drawing its own Slider, SegmentedControl and icon Button or TextInput where Material 3 has its own, against
spec:AST-082FR11 (OQ2). - The
./controlsviews keeping per-instance platform-only visual props, whichspec:AST-082DEC-2 rejects on components (OQ8). - The iOS button and text field drawing UIButton and UITextField instead of wrapping the shared Swift
ButtonandTextInput, as draftspec:AST-112FR10 asks. - Whether the
spec:AST-112amendment this record relies on (FR3, FR5, FR8, FR12) merges first.
An engineering owner records the decision by commenting /approve-spec 876aa3529916480915cd2a27760666df99801e1f on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
One fix is needed whatever the decision is:
- Current-state impact says "This record makes no departure from
spec:AST-043orspec:AST-082" (line 431), but Android draws the Astryx Slider, SegmentedControl, icon Button and start-icon TextInput where Material 3 has its own (lines 134–141, 164, 199, 224, 400–402), which OQ2 itself says goes against FR11, so name that as a departure fromspec:AST-082FR11 there or give Android those hosts and icons.
The visual-props scoping and the iOS-only member tags asked for earlier are in at this head, and the record now follows spec:AST-043 and FR11's native-first default.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the open foundation-record amendment and cites the open gestures record, with the merge order stated. Verified: the amendment adds default linking, named features and the Stage version floor; both are open drafts.
- Claim: the record covers the controls' API, native contracts, how the library chooses the system or drawn control, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim: the record relies on the amended foundation record and does not restate it. Verified (Current-state impact); that amendment is not on the main branch yet.
- Claim: the selection follows the native-first rule, with the system control as the default wherever a host exists. Verified for the default (FR2, DEC-1).
- Claim: the record makes no departure from the native-first or input-presentation records, and its departures are open questions, not requirements. False: the Android drawn controls (the fix above).
- Claim: the native component guidelines record is not cited. Verified.
- Claim: the date inputs follow the input-presentation record's first three requirements and do not overrule it. Verified (FR2).
- Claim: component records own each component's contract. Verified (Non-goals); the paste button and media scrubber have no component record yet.
- Claim: open pull requests show no overlap, and the sibling platform records are open drafts. Verified: the component-set and gestures drafts defer to this record.
- Claim: the controls link by default from the controls entry. Verified (FR1).
- Claim: prop, provider, theme, then the adaptive native default; an explicit native warns where no host exists; a shape the system control cannot show draws the Astryx control. Verified (FR2).
- Claim: per-control API, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and evolution rules. Verified (FR3–FR15).
- Claim: native code uses public platform API only, with no exception. Verified (FR16).
- Claim: the Android date module resolves the foundation record's result object. Verified (Native contracts).
- Claim: an icon never disappears: icon shapes draw the Astryx control. Verified (FR2).
- Claim: one gap line, for Switch. Verified.
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the theme-only visuals rule is stated for library components, and the views' visual props are an open question. Verified (Intent, OQ8).
- Claim: no deprecated aliases; the appearance prop carries mode and accent. Verified (contract table).
- Claim: the contract tables come from the package's contract list. Not verifiable: the React Native package is not in this repository.
- Claim: each native piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: three rejected alternatives, one line each inside three decisions. Verified.
- Claim: eight questions stay open. Verified.
- Claim: no implementation and no public evidence links. Verified.
- Claim: rubric results (no narration, research moved out, no references, no build status). Verified, apart from the departures line above.
- Claim: the knowledge check, Prettier and the whitespace check pass, and the leak scan is clean. Verified at this head.
- Claim: the checklist, a specification record only, with affected current claims named. Record only: verified; affected claims: false for the Android departure.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: the fix above, plus non-blocking notes on thedefaultpresentation value, an explicit native date field with no host, an undefined theme preference in FR2,buttonStyleglass on Android, and the merge order.
…e products under AST-139 and AST-141
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states; the decision needs to settle:
- Android drawing its own Slider, SegmentedControl and icon Button or TextInput where Material 3 has its own, against
spec:AST-082FR11 (OQ2). NativeButtonandNativeTextFieldaccepting iOS-only members on Android and ignoring them with a development warning, againstspec:AST-082FR3.- The
./controlsviews keeping per-instance platform-only visual props, whichspec:AST-082DEC-2 rejects on components (OQ8). - The iOS button and text field drawing UIButton and UITextField instead of wrapping the shared Swift
ButtonandTextInput, as draftspec:AST-112FR10 asks. AstryxDatePickernaming both a view and a module, which draftspec:AST-140FR1 forbids (OQ5).- Whether the open drafts this record relies on (the
spec:AST-112amendment,spec:AST-140,spec:AST-139andspec:AST-141) merge first.
An engineering owner records the decision by commenting /approve-spec 1a2e23e21abbd8221af9175132a96edc96ec01a2 on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
Three fixes are needed whatever the decision is:
- Current-state impact says "This record makes no departure from
spec:AST-043orspec:AST-082" (line 432), but Android draws the Astryx Slider, SegmentedControl, icon Button and start-icon TextInput where Material 3 has its own (lines 138–146, 169, 204, 229, 402–404), which OQ2 itself says goes against FR11, so name that as a departure fromspec:AST-082FR11 there or give Android those hosts and icons. - The record says it follows
spec:AST-140/FR1(lines 39, 424), which says the same name is never a module on one platform and a view on another, yetAstryxDatePickeris a view on iOS and a module on Android (lines 80–81, 382, 387), so give the iOS view its own name or name that departure under Current-state impact and in OQ5. - The description's merge order names #12576, which is closed, and leaves out #12594, whose
spec:AST-140the record cites on twelve lines, so state the open chain: #12563, then #12594 (and #12579 and #12598 while the record cites AST-139 and AST-141), then this record.
The review also carries non-blocking notes on version(), the default presentation value, an explicit native date field with no host, an undefined theme preference in FR2, and buttonStyle glass on Android.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation-record amendment (default linking) and on the platform-code record (registration, results, revision 1 with named features, threading). Verified: both drafts state those rules; both are open drafts.
- Claim: the record cites the gestures, Stage and Preview records, and Stage and Preview conform to this record's contracts. Verified: both records say they conform and never define the contracts; all three are open drafts.
- Claim: merge order is the closed promotion pull request, then the amendment, then this record. False: the promotion pull request was closed unmerged, and the platform-code record is missing from the order (fix above).
- Claim: the record covers the controls' API, native contracts, how the library chooses the system or drawn control, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim: default linking and revision 1 come from the amendment and are not restated. Verified for default linking (FR1); revision 1 is cited from the platform-code record (FR15), to which the amendment defers.
- Claim: the foundation-record requirements listed are detailed for the controls, relying on the amended FR3 and FR5. Verified (Current-state impact).
- Claim: the platform-code record's FR1, FR2, FR3, FR5 and FR6 are cited. Verified; FR1 conflicts with the date picker's one name (fix above).
- Claim: the selection follows the native-first rule, with the system control as the default wherever a host exists, and the Android hosts are open questions. Verified for the default (FR2, DEC-1); the Android case is a departure (fix above).
- Claim: the native component guidelines record is not cited. Verified.
- Claim: the date inputs follow the input-presentation record's first three requirements and do not overrule it. Verified (FR2).
- Claim: component records own each component's contract. Verified (Non-goals).
- Claim: open pull requests show no overlap, and the sibling platform records are open drafts. Verified.
- Claim: the controls link by default from the controls entry. Verified (FR1).
- Claim: prop, provider, theme, then the adaptive native default; an explicit native warns where no host exists; a shape the system control cannot show draws the Astryx control. Verified (FR2).
- Claim: per-control API, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and evolution rules. Verified (FR3–FR15).
- Claim: native code uses public platform API only, with no exception. Verified (FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (Native contracts).
- Claim: an icon never disappears: icon shapes draw the Astryx control. Verified (FR2).
- Claim: one gap line, for Switch. Verified.
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the theme-only visuals rule is stated for library components, and the views' visual props are an open question. Verified (Intent, OQ8).
- Claim: no deprecated aliases; the appearance prop carries mode and accent. Verified (FR11, contract table).
- Claim: the contract tables come from the package's contract list. Not verifiable: the React Native package is not in this repository.
- Claim: the "who uses it" table matches the record, and each native piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: three rejected alternatives, one line each inside three decisions. Verified.
- Claim: eight questions stay open and keep their options. Verified.
- Claim: no implementation and no public evidence links. Verified.
- Claim: rubric results (no narration, research moved out, evidence layers named, no references, no build status). Verified, apart from the claim that the native-first departures are only open questions, which is false for Android (fix above).
- Claim: the checklist, a specification record only, with affected current claims and overlapping work named. Record only: verified; affected claims: false for the Android departure and the date picker's naming.
- Claim: the knowledge check, Prettier and the whitespace check pass, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: the first two fixes above, plus the non-blocking notes.
…s the iOS date picker view its own name, and asks about the shared Swift controls
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states; the decision needs to settle:
- Android drawing its own Slider, SegmentedControl and icon Button or TextInput where Material 3 has its own, against
spec:AST-082FR11 (OQ2). - The
./controlsviews staying public for apps (FR1, DEC-1), while thespec:AST-112amendment this record relies on keeps the native controls internal. NativeButtonandNativeTextFieldaccepting iOS-only members on Android with a development warning, againstspec:AST-082FR3.- The
./controlsviews keeping per-instance platform-only visual props, whichspec:AST-082DEC-2 rejects on components (OQ8). - The iOS button and text field drawing UIButton and UITextField instead of wrapping the shared Swift
ButtonandTextInput, as draftspec:AST-112FR10 asks (OQ9). - Whether the open drafts this record relies on or cites (the
spec:AST-112amendment,spec:AST-140,spec:AST-139andspec:AST-141) merge first.
An engineering owner records the decision by commenting /approve-spec 6a003c394cc47c87c419b1668f26adc9f959246f on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
Two fixes are needed whatever the decision is:
- Miss: Current-state impact says the record relies on the amended
spec:AST-112FR5 for./controls(lines 428–429), but that amendment says the native controls "stay internal" and that "no entry exports one as a separate public view", while FR1 (lines 115–123), the Who uses it table (lines 76–82) and DEC-1 (line 473) make the views public, so either make the views internal (and drop OQ8) or name the departure from the amended FR5 with an open question and align the amendment. - The description's merge order names #12563 and #12594 but not #12579 and #12598, although the record cites
spec:AST-139(lines 46, 92) andspec:AST-141(line 92), which exist only there, so add both to the order or drop the two citations.
The review also carries non-blocking notes on the default presentation value, an explicit native date field with no host, an undefined theme preference in FR2, buttonStyle glass on Android, and the date module's getConstants.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation-record amendment (default linking) and the platform-code record (registration, results, revision 1 with named features, threading) and merges after both. Verified for both dependencies; the order leaves out the Stage and Preview drafts the record cites (fix above).
- Claim: the record cites the gestures, Stage and Preview records, and Stage and Preview conform to its contracts. Verified; all three are open drafts.
- Claim: the record covers the controls' API, native contracts, how the library chooses, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim: default linking and revision 1 with named features come from the amendment and are not restated. Verified for default linking (FR1); revision 1 is cited from the platform-code record (FR15), to which the amendment defers.
- Claim: the listed foundation requirements are detailed for the controls, relying on the amended FR3 and FR5. False for FR5: the amendment keeps the native controls internal, and the record makes them public (fix above).
- Claim: the platform-code record's FR1, FR2, FR3, FR5 and FR6 are cited. Verified.
- Claim: the system control is the default wherever a host exists, and the record departs from the native-first rule on Android with an open question. Verified (FR2, DEC-1, Current-state impact).
- Claim: the native component guidelines record is not cited. Verified.
- Claim: the date inputs follow the input-presentation record's first three requirements and do not overrule it. Verified (FR2).
- Claim: component records own each component's contract. Verified (Non-goals).
- Claim: the sibling platform records are open drafts with no overlap. Verified that they are open drafts.
- Claim: the controls link by default from the controls entry. Verified (FR1).
- Claim: prop, provider, theme, then the adaptive native default; explicit native warns once where no host exists; adaptive native falls back silently; a shape the system control cannot show draws the Astryx control. Verified (FR2).
- Claim: per-control API, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and evolution rules. Verified (FR3–FR15).
- Claim: native code uses public platform API only, with no exception. Verified (FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (Native contracts).
- Claim: an icon never disappears because a control presents natively. Verified (FR2).
- Claim: one gap line, for Switch. Verified.
- Claim: the iOS date view and the Android date module have separate names, and the JavaScript date picker object carries no revision counter. Verified; the module's
getConstantsis left unexplained (non-blocking). - Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the theme-only visuals rule is stated for library components, and the views' visual props are an open question. Verified (Intent, OQ8).
- Claim: no deprecated aliases; the appearance prop carries mode and accent. Verified (FR11, contract table).
- Claim: the contract tables come from the package's contract list. Not verifiable: the React Native package is not in this repository.
- Claim: the "who uses it" table matches the record, and each piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: three rejected alternatives, one line each inside three decisions. Verified (DEC-1, DEC-3, DEC-4).
- Claim: eight questions stay open and keep their options. Verified (OQ1–OQ4, OQ6–OQ9).
- Claim: no implementation and no public evidence links. Verified.
- Claim: rubric results (no narration, research moved out, evidence layers named, no references, no build status, departures named). Verified.
- Claim: the checklist: a specification record only, with affected current claims and overlapping work named. Record only: verified; overlapping work: the amendment's internal-views rule is not named (fix above).
- Claim: the knowledge check, Prettier and the whitespace check pass, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: the two fixes above, plus the non-blocking notes.
…s the amended AST-112 FR5 says
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states. The decision needs to settle render (auto, system, drawn) on six components beside the presentation the date inputs keep for the same choice, the theme's render.default and the surface prop that only the open foundation amendment (#12563) defines, the drawn Android Slider, SegmentedControl and icon controls against spec:AST-082 FR11 (OQ2), the UIKit button and text field against draft spec:AST-112 FR10 (OQ9), PasteButton and MediaScrubber, which no record defines, DateRangeInput's presentation, and whether the four open drafts this record relies on must be approved first. An engineering owner records it by commenting /approve-spec 7b3f91c0a5d52f1a29760d69d535e7b4d3177916 on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
Two fixes are needed whatever the decision is:
- FR2 maps the date inputs'
adaptive-nativetorender: 'auto'and lets the theme'srender.defaultoverride everyauto(lines 124–134), so a theme withrender.default: 'drawn'turns a default DateInput into the Astryx sheet againstspec:AST-043FR1 and FR3, while Current-state impact says the record followsspec:AST-043; either state thatpresentationresolves only asspec:AST-043says and thatrender.defaultdoes not reach the date inputs, or name the theme override as a departure under Current-state impact and in OQ3. - Miss: FR3's
buttonStyle: 'glass'gives the system button Liquid Glass on iOS 26 (lines 164, 169–171) that nothing in this record selects, since FR2 draws everysurface="glass"Button itself, and the open Surfaces and glass record (#12557) already draws glass Buttons, although the description reports no overlap with open records; dropglassfrombuttonStyleand the matching iOS 26 lines, or say what selects it and how it divides with #12557, and name #12557 in the description.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation-record amendment (default linking) and the platform-code record (registration, results, additive evolution with a first-release baseline and named features, threading). Verified against both open drafts; the record also takes
render,surfaceand the theme'srender.defaultfrom the amendment. - Claim: the record cites the gestures, Stage and Preview records, which conform to its contracts. Verified; all three are open drafts.
- Claim: not stacked; merges after the amendment and the platform-code, Stage and Preview records. Verified: no stack line, and the order covers the four records the body cites.
- Claim: the record covers the controls' native contracts, how the library chooses, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim: default linking and the first-release baseline with named features come from the other records and are not restated. Verified (FR1, FR15).
- Claim: Stage and Preview are separate products that conform to the record's contracts. Verified (Non-goals).
- Claim: the listed foundation requirements are detailed for the controls, relying on the amended linking and public-surface requirements. Verified (Current-state impact).
- Claim: the platform-code record's registration, missing-piece, result, evolution and threading requirements are cited. Verified.
- Claim: the system control is the default wherever a host exists, an open question asks whether React Native departs from that, and the Android departure from the native-first rule is named. Verified (FR2, Current-state impact, OQ2, OQ7).
- Claim: the native component guidelines record is not cited. Verified.
- Claim: the date family keeps the input-presentation prop, takes no
render, and the record does not overrule that record. False while the theme'srender.defaultreaches the date inputs through FR2's mapping (first fix above). - Claim: component records own each component's contract. Not for PasteButton and MediaScrubber, which have no record (part of the owner decision).
- Claim: open pull requests show no overlap, the sibling platform records are open drafts, and the gesture views are left to the gestures record. The siblings and the gestures record are open drafts; the no-overlap part is false for the Surfaces and glass record (second fix above).
- Claim: requirements are stated against the native contracts and the components' behaviour, not internal function names. Verified (FR1, FR3–FR8, FR14).
- Claim: one
renderaxis spelledsystem;autois the component's own default; the theme'srender.defaultoverrides everyauto; glass issurface;systemwarns once with no host; a shape the system control cannot show draws the Astryx control. Verified (FR2, DEC-1, DEC-2). - Claim: per-control behaviour, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and evolution rules. Verified (FR3–FR15).
- Claim: native code uses public platform API only, with no exception. Verified (FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (Native contracts).
- Claim: an icon never disappears because a control renders as the system's. Verified (FR2).
- Claim: two gap lines, for Switch and for the axis's two spellings. Verified (FR2).
- Claim: the iOS date view and the Android date module have separate names, and the module carries no revision counter. Verified (contract tables).
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the native controls are internal, the controls entry holds the components, and native-only visuals come from the theme. Verified (FR1, Current-state impact, FR11).
- Claim: no deprecated aliases; the appearance prop carries mode and accent. Verified (FR11, contract table).
- Claim: the contract tables come from the package's contract list, and the platform support table covers iOS and Android. The first part is not verifiable here (the package is not in this repository); the second is verified.
- Claim: the description's "who uses it" table is the record's table. Verified, row for row.
- Claim: each piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: three rejected alternatives, one line each inside three decisions. Verified (DEC-1, DEC-3, DEC-4).
- Claim: six open questions. Verified (OQ1–OQ3, OQ6, OQ7, OQ9).
- Claim: the implementation lives in the package's platform layer; no implementation or public evidence links here. Verified.
- Claim: rubric results, including that the remaining departures are named or open questions. Verified, except the theme override of the date inputs, which is neither (first fix above).
- Claim: the checklist. Records only, observable behaviour, verification layers, one decision, scope and no internal context: verified. Overlapping open work called out: not the Surfaces and glass record (second fix above).
- Claim: the knowledge check, Prettier and the whitespace check pass, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: the two fixes above, plus non-blocking notes on the Slider tooltip exception, the missing amendment dependency in Current-state impact, the unlistedfieldStylevalues and the Stepper line.
…em button has no glass style
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states. The decision needs to settle render (auto, system, drawn) on six components beside the presentation the date inputs keep for the same choice, the theme's render.default and the surface prop that only the open foundation amendment (#12563) defines, the drawn Android Slider, SegmentedControl and icon controls against spec:AST-082 FR11 (OQ2), the UIKit button and text field against draft spec:AST-112 FR10 (OQ9), PasteButton and MediaScrubber, which no record defines, DateRangeInput's presentation, and whether the four open drafts this record relies on must be approved first. An engineering owner records it by commenting /approve-spec 8ed32a7e8ea568107286809dc1d3fed995c6400d on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
Both earlier fixes are in (the date inputs now resolve presentation only as spec:AST-043 says, and the system button has no glass style), and the remaining notes are non-blocking inline comments.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation-record amendment (default linking) and the platform-code record (registration, results, additive evolution with a first-release baseline and named features, threading). Verified against both open drafts; the record also takes
render,surfaceand the theme'srender.defaultfrom the amendment, which its Current-state impact does not list (non-blocking). - Claim: the record cites the gestures, Stage and Preview records, which conform to its contracts. Verified; all three are open drafts.
- Claim: not stacked; merges after the amendment and the platform-code, Stage and Preview records. Verified: no stack line, and the order covers the four records the body cites.
- Claim: the record covers the controls' native contracts, how the library chooses, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim: default linking and the first-release baseline with named features come from the amendment and are not restated. Verified (FR1, FR15).
- Claim: Stage and Preview are separate products that conform to the record's contracts. Verified (Non-goals); the Intent's wording says the reverse (non-blocking inline comment).
- Claim: the listed foundation requirements are detailed for the controls, relying on the amended linking and public-surface requirements. Verified (Current-state impact).
- Claim: the platform-code record's registration, missing-piece, result, evolution and threading requirements are cited. Verified.
- Claim: the system control is the default wherever a host exists, an open question asks whether React Native departs from that, and the Android departure from the native-first rule is named. Verified (FR2, Current-state impact, OQ2, OQ7).
- Claim: the native component guidelines record is not cited. Verified.
- Claim: the date family keeps the input-presentation prop, takes no
render, and the record does not overrule that record. Verified (FR2: the theme'srender.defaultdoes not reach it). - Claim: component records own each component's contract. Not for PasteButton and MediaScrubber, which have no record (part of the owner decision).
- Claim: open pull requests show no overlap; the Surfaces and glass record draws glass Buttons, the system button has no glass style, and the two divide cleanly; the sibling platform records are open drafts; the gesture views are left to the gestures record. Verified (FR2, FR3).
- Claim: requirements are stated against the native contracts and the components' behaviour, not internal function names. Verified (FR1, FR3–FR8, FR14).
- Claim: one
renderaxis spelledsystem;autois the component's own default; the theme'srender.defaultoverrides everyautoof the six components and never reaches the date inputs; glass issurface; the system button has no glass style;systemwarns once with no host; a shape the system control cannot show draws the Astryx control. Verified (FR2, FR3, DEC-1, DEC-2). - Claim: per-control behaviour, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and evolution rules. Verified (FR3–FR15).
- Claim: native code uses public platform API only, with no exception. Verified (FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (Native contracts, against the platform-code record's binding result shape).
- Claim: an icon never disappears because a control renders as the system's. Verified (FR2).
- Claim: two gap lines, for Switch and for the axis's two spellings. Verified (FR2).
- Claim: the iOS date view and the Android date module have separate names, and the module carries no revision counter. Verified (contract tables).
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the native controls are internal, the controls entry holds the components, and native-only visuals come from the theme. Verified (FR1, Current-state impact, FR11).
- Claim: no deprecated aliases; the appearance prop carries mode and accent. Verified (FR11, contract table).
- Claim: the contract tables come from the package's contract list, and the platform support table covers iOS and Android. The first part is not verifiable here (the package is not in this repository); the second is verified.
- Claim: the description's "who uses it" table is the record's table. Verified, row for row.
- Claim: each piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: three rejected alternatives, one line each inside three decisions. Verified (DEC-1, DEC-3, DEC-4).
- Claim: six open questions. Verified (OQ1–OQ3, OQ6, OQ7, OQ9).
- Claim: the implementation lives in the package's platform layer; no implementation or public evidence links here. Verified.
- Claim: rubric results. Verified: no narration, research, pull-request references or project status in the record; the gaps and the departures are named.
- Claim: the checklist (records only, observable behaviour, verification layers, one decision, overlapping work named, no internal context). Verified.
- Claim: the knowledge check, Prettier and the whitespace check pass, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: no blocking finding; non-blocking notes on the Slider tooltip exception, the missing amendment dependency in Current-state impact, the unlistedfieldStylevalues, the Stepper line and the Intent's Stage wording.
| content type and return key, capitalization, autocorrection, spell checking, | ||
| a clear button, an iOS-only start SF Symbol (`startSystemImage`), loading, | ||
| editable and enabled states, `status` (`error`, `warning`, `success`), | ||
| autofocus, an iOS-only filled box (`fieldStyle`, `fill`, `cornerRadius`, |
There was a problem hiding this comment.
Non-blocking: fieldStyle has no listed values here or in the contract table (line 388), while line 207 and Platform support (line 411) use filled and rounded. Name the values in FR5 (for example fieldStyle (rounded, filled)), since FR15 freezes the first release's shape.
Describe each control's current behaviour in positive terms, leave the render and surface definitions to AST-112 FR21 and keep the controls' own mapping, clear Non-goals, and state each decision's direction and reason.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states, and two wording fixes are needed either way.
The decision needs to settle render (auto, system, drawn) on six components beside the presentation the date inputs keep for the same choice, the theme's render.default and the surface prop that only the open foundation amendment (#12563) defines, the drawn Android Slider, SegmentedControl and icon controls against spec:AST-082 FR11 (OQ2), the UIKit button and text field against draft spec:AST-112 FR10 (OQ9), PasteButton and MediaScrubber, which no record defines, DateRangeInput's presentation, and whether the open drafts this record relies on must be approved first. An engineering owner records it by commenting /approve-spec 3f3325f11b621b5f0f97ca34cdf953f243215f87 on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
Blocking fixes:
- FR2's date-input line (lines 110–113) now says the inputs resolve as
spec:AST-043says "apart from the theme'srender.default", which, with DEC-1's "everyauto" (lines 444–445), lets a theme withrender.default: 'drawn'replace a default DateInput's native picker againstspec:AST-043FR1 and FR3, so say that it resolves only as that record says and thatrender.defaultapplies to the six components alone. - The description says the record cites the Gestures and drag record, but with the Non-goals emptied the record no longer names it and FR1 (lines 91–93) leaves "the gesture views" undefined, so name
spec:AST-124there or drop the claim.
The remaining notes are non-blocking inline comments.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation amendment (default linking) and the platform-code record (registration, results, named features, threading). Verified against both open drafts.
- Claim: the record cites the Gestures and drag record. False at this head: the record no longer names it (blocking).
- Claim: not stacked; merges after the two drafts. Verified: no stack line, and the record cites no other open draft.
- Claim: the record covers the controls' native contracts, how the library chooses, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim:
renderandsurfacecome from the amendment's FR21, and the record maps the controls onto them. Verified (FR2); that FR21 exists only in the open amendment. - Claim: the listed foundation, platform-code and native-first requirements were searched and are detailed or followed. Verified; the Android departure from the native-first rule is named (Current-state impact, OQ2).
- Claim: the native component guidelines record is followed through the native-first record, not cited. Verified.
- Claim: the date family keeps the input-presentation prop, and that record stays its owner. Intended, but FR2's date line can be read as letting the theme override it (blocking).
- Claim: component records own each component's contract. Not checkable for PasteButton and MediaScrubber, which have no record (part of the owner decision).
- Claim: no overlap with open pull requests; glass Buttons are drawn; the gesture views are left to the gestures record. Glass verified (FR2); the gestures record is no longer named (blocking).
- Claim: the controls link by default and stay internal;
./controlsexports the components. Verified (FR1). - Claim:
system,drawnandautoas described; the theme default overridesautofor six components; shapes the system cannot show are drawn; icons stay visible. Verified (FR2, DEC-1, DEC-2), apart from the date line above. - Claim: per-control behaviour, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and the evolution rules. Verified (FR3–FR15).
- Claim: native code uses public platform API only. Verified (FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (Native contracts).
- Claim: one gap line, for Switch. Verified; its wording now reads the reverse of its intent (non-blocking).
- Claim: the iOS date view and the Android date module have separate names. Verified.
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the contracts carry the target props, and the appearance prop carries mode and accent. Verified (FR11).
- Claim: the contract tables come from the package's contract list, and the platform support table covers iOS and Android. The first part is not checkable here (the package is not in this repository); the second is verified.
- Claim: the record is written in positive terms, the Non-goals read "None.", and each decision states its direction and reason. Verified; two qualifiers were lost in the rewrite (non-blocking).
- Claim: the description's "who uses it" table is the record's table. Verified, row for row.
- Claim: each piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: six open questions remain. Verified (OQ1–OQ3, OQ6, OQ7, OQ9).
- Claim: the implementation lives in the package's platform layer, with no implementation or evidence links here. Verified.
- Claim: rubric results R1–R7. Verified: no narration, research, pull-request references or project status in the record.
- Claim: the checklist (records only, observable behaviour, named mechanisms with a dependent, verification layers, one decision, owners named, no internal context). Verified; the native contracts' dependent is named only through the evolution rule's citation (non-blocking).
- Claim: the knowledge check and Prettier pass, the whitespace check is clean, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: two blocking findings (the date line with DEC-1, and the gesture views in FR1 against the description); non-blocking notes on the Switch gap, two lost qualifiers, the native contracts' dependent, Current-state impact, the Slider tooltip exception andfieldStyle's values.
| - FR2 gap: `Switch`'s system presentation is React Native's own `Switch`, | ||
| apart from this group's appearance mapping (FR11) and contract baseline | ||
| (FR15); see OQ6. |
There was a problem hiding this comment.
Non-blocking: "apart from this group's appearance mapping (FR11) and contract baseline (FR15)" now reads as Switch taking both, the reverse of the earlier "outside". Suggested: "FR2 gap: Switch's system presentation is React Native's own Switch, which stays outside this group's appearance mapping (FR11) and contract baseline (FR15); see OQ6."
| - iOS draws a UITextField in the system's rounded style; `filled` draws the | ||
| theme's fill and element radius and its horizontal inset, with a border in | ||
| the status colour while a status is set and in the accent while focused. `startSystemImage` is drawn at the start of the |
There was a problem hiding this comment.
Non-blocking: the rewrite dropped that the filled box has no border at rest. Suggested: "filled draws the theme's fill, element radius and horizontal inset; its border shows only while a status is set (the status colour) or while the field is focused (the accent)."
| - Paste control: VoiceOver reads the system's own name for it ("Paste"), | ||
| and an app sets the hint. |
There was a problem hiding this comment.
Non-blocking: the rewrite dropped "only". Suggested: "VoiceOver reads the system's own name for it ("Paste"), and an app sets only the hint."
| (`spec:AST-112/FR9`). They serve the native-first rule of | ||
| `spec:AST-082/FR11`. In the library components, a control's native-only | ||
| visuals come from the theme (FR11), so one theme styles every control the same | ||
| way (`spec:AST-082/DEC-2`). |
There was a problem hiding this comment.
Non-blocking: with the Stage and Preview lines gone, the record names no one who depends on the exact props, commands and events of the views FR1 calls internal (lines 349–368), apart from FR15's citation of spec:AST-140/FR5. Suggested, after this sentence: "A binary of one release and the JavaScript of another rely on these native contracts as written (spec:AST-140/FR5)."
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states, and two wording fixes are needed either way.
The decision needs to settle render (auto, system, drawn) on six components beside the presentation the date inputs keep for the same choice, the theme's render.default and the surface prop that only the open foundation amendment (#12563) defines, the drawn Android Slider, SegmentedControl and icon controls against spec:AST-082 FR11 (OQ2), the UIKit button and text field against draft spec:AST-112 FR10 (OQ9), PasteButton and MediaScrubber, which no record defines, DateRangeInput's presentation, and whether the open drafts this record relies on must be approved first. An engineering owner records it by commenting /approve-spec 4c0beba06699803658d7bb1f5354b6620839c86d on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
Blocking fixes:
- FR2's date-input line (lines 119–120) says the inputs resolve as
spec:AST-043says "apart from the theme'srender.default", which, with DEC-1's "everyauto" (lines 451–452), lets a theme withrender.default: 'drawn'replace a default DateInput's native picker againstspec:AST-043FR1 and FR3, so say that it resolves only as that record says and thatrender.defaultapplies to the six components alone. - The description says the record cites the Gestures and drag record and leaves the gesture views to it, but the restored Non-goals are the template's generic lines and FR1 (lines 98–100) still names "the gesture views" without saying which views or who owns them, so name
spec:AST-124there or drop those claims from the description.
The remaining notes are non-blocking and stand in the existing inline comments; the restored Non-goals line now also asks the record to say who depends on its internal native contracts.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation amendment (default linking) and the platform-code record (registration, results, named features, threading). Verified against both open drafts.
- Claim: the record cites the Gestures and drag record. False at this head: the record never names it (blocking).
- Claim: not stacked; merges after the two drafts. Verified: no stack line.
- Claim: the record covers the controls' native contracts, how the library chooses, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim:
renderandsurfacecome from the amendment's FR21, and the record maps the controls onto them. Verified (FR2); that FR21 exists only in the open amendment. - Claim: the listed foundation, platform-code and native-first requirements were searched and are detailed or followed. Verified; the Android departure from the native-first rule is named (Current-state impact, OQ2).
- Claim: the native component guidelines record is followed through the native-first record, not cited. Verified.
- Claim: the date family keeps the input-presentation prop, and that record stays its owner. Intended, but FR2's date line can be read as letting the theme override it (blocking).
- Claim: component records own each component's contract. Not checkable for PasteButton and MediaScrubber, which have no record (part of the owner decision).
- Claim: no overlap with open pull requests; glass Buttons are drawn; the gesture views are left to the gestures record. Glass verified (FR2); the gestures record is not named (blocking).
- Claim: the controls link by default and stay internal;
./controlsexports the components. Verified (FR1). - Claim:
system,drawnandautoas described; the theme default overridesautofor six components; shapes the system cannot show are drawn; icons stay visible. Verified (FR2, DEC-1, DEC-2), apart from the date line above. - Claim: per-control behaviour, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and the evolution rules. Verified (FR3–FR15).
- Claim: native code uses public platform API only. Verified (FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (Native contracts).
- Claim: one gap line, for Switch. Verified; its wording reads the reverse of its intent (non-blocking).
- Claim: the iOS date view and the Android date module have separate names. Verified.
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the contracts carry the target props, and the appearance prop carries mode and accent. Verified (FR11).
- Claim: the contract tables come from the package's contract list, and the platform support table covers iOS and Android. The first part is not checkable here (the package is not in this repository); the second is verified.
- Claim: the record is written in positive terms, the Non-goals keep only the template's two standing lines, and each decision states its direction and reason. Verified; the two lines match the template, and two qualifiers were lost in the rewrite (non-blocking).
- Claim: the description's "who uses it" table is the record's table. Verified, row for row.
- Claim: each piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: six open questions remain. Verified (OQ1–OQ3, OQ6, OQ7, OQ9).
- Claim: the implementation lives in the package's platform layer, with no implementation or evidence links here. Verified.
- Claim: rubric results R1–R7. Verified: no narration, research, pull-request references or project status in the record.
- Claim: the checklist (records only, observable behaviour, named mechanisms with a dependent, verification layers, one decision, owners named, no internal context). Verified, except that the native contracts' dependent is named only through the evolution rule's citation, which the restored Non-goals line asks the record to state (non-blocking).
- Claim: the knowledge check and Prettier pass, the whitespace check is clean, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: two blocking findings (the date line with DEC-1, and the gesture views in FR1 against the description); non-blocking notes on the native contracts' dependent, the Switch gap, two lost qualifiers, Current-state impact, the Slider tooltip exception andfieldStyle's values.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), which no current record states; no blocking fix remains, since this head resolves the date-input line and names the Gestures and drag record in FR1.
The decision needs to settle render (auto, system, drawn) on six components beside the presentation the date inputs keep for the same choice, the theme's render.default and the surface prop that only the open foundation amendment (#12563) defines, the drawn Android Slider, SegmentedControl and icon controls against spec:AST-082 FR11 (OQ2), the UIKit button and text field against draft spec:AST-112 FR10 (OQ9), PasteButton and MediaScrubber, which no record defines, DateRangeInput's presentation, and whether the open drafts this record relies on (#12563, #12594 and #12562) must be approved first. An engineering owner records it by commenting /approve-spec 118ac50697074467da8b193853f53882a4033643 on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too.
The remaining notes are non-blocking and stand in the inline comments; the two new ones ask to add #12562 to the description's merge line and to list the amended FR21 under Current-state impact.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation amendment (default linking) and the platform-code record (registration, results, named features, threading). Verified against both open drafts.
- Claim: the record cites the Gestures and drag record. Verified: FR1 names it (line 99).
- Claim: not stacked; merges after the two drafts. Verified: no stack line; the merge line leaves out the gestures draft the record now cites (non-blocking).
- Claim: the record covers the controls' native contracts, how the library chooses, controlled values, sizing, theme, accessibility and fallbacks. Verified (FR1–FR16).
- Claim:
renderandsurfacecome from the amendment's new requirement, and the record maps the controls onto them. Verified (FR2); that requirement exists only in the open amendment. - Claim: the listed foundation, platform-code and native-first requirements were searched and are detailed or followed, and the Android departure from the native-first rule is named. Verified (Current-state impact, OQ2).
- Claim: the native component guidelines record points the same way and is followed through the native-first record. Verified.
- Claim: the date family keeps the input-presentation prop, and that record stays its owner. Verified (FR2 lines 117–120, DEC-1).
- Claim: component records own each component's contract. Not checkable for PasteButton and MediaScrubber, which have no record (part of the owner decision).
- Claim: no overlap with open pull requests; glass Buttons are drawn; the gesture views are left to the gestures record. Verified (FR2, FR1).
- Claim: the controls link by default and stay internal;
./controlsexports the components. Verified (FR1). - Claim:
system,drawnandautoas described; the theme default overridesautofor six components; shapes the system cannot show are drawn; icons stay visible. Verified (FR2, DEC-1, DEC-2). - Claim: per-control behaviour, controlled values, sizing, theme tokens, accessibility, the UI thread, absent views and the evolution rules with their baseline and named features. Verified (FR3–FR15).
- Claim: native code uses public platform API only. Verified (FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (Native contracts).
- Claim: one gap line, for Switch. Verified; its wording reads the reverse of its intent (non-blocking).
- Claim: the iOS date view and the Android date module have separate names. Verified.
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the contracts carry the target props, and the appearance prop carries mode and accent. Verified (FR11).
- Claim: the contract tables come from the package's contract list, and the platform support table covers iOS and Android. The first part is not checkable here (the package is not in this repository); the second is verified.
- Claim: the record is written in positive terms, the Non-goals keep only the template's two standing lines, and each decision states its direction and reason. Verified; two qualifiers were lost in the rewrite (non-blocking).
- Claim: the description's "who uses it" table is the record's table. Verified, row for row.
- Claim: each piece has a library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: six open questions remain. Verified (OQ1–OQ3, OQ6, OQ7, OQ9).
- Claim: the implementation lives in the package's platform layer, with no implementation or evidence links here. Verified.
- Claim: rubric results R1–R7. Verified: no narration, research, pull-request references or project status in the record.
- Claim: the checklist (records only, observable behaviour, named mechanisms with a dependent, verification layers, one decision, owners named, no internal context). Verified, except that the native contracts' dependent is named only through the evolution rule's citation (non-blocking).
- Claim: the knowledge check and Prettier pass, the whitespace check is clean, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: no blocking finding; non-blocking notes on the merge line, Current-state impact, the native contracts' dependent, the Switch gap, two lost qualifiers, the Slider tooltip exception andfieldStyle's values.
| ## Requirements | ||
|
|
||
| - **FR1 — The controls link by default and stay internal.** The native | ||
| controls and the gesture views of `spec:AST-124` are part of the default set of |
There was a problem hiding this comment.
Non-blocking: FR1 now cites spec:AST-124, which exists only in open draft #12562, but the description's merge line names only #12563 and #12594. Merged first, main would carry a record that cites one it lacks, and the knowledge check passes it. Add #12562 to the merge line, as was done for the earlier AST-139 and AST-141 citations.
| - Relies on `spec:AST-112` FR5 (amended): the native controls and the gesture | ||
| views are internal; `./controls` holds the library's components whose | ||
| native half they are. | ||
| - Relies on `spec:AST-140/FR5`: each contract keeps the baseline that `spec:AST-140/FR5` sets, and later behaviour is a named feature. |
There was a problem hiding this comment.
Non-blocking: this line cites spec:AST-140/FR5 twice, and Current-state impact still has no line for spec:AST-112 FR21 or the render.default member that #12563 adds to spec:AST-082 FR10, which FR2 relies on (lines 106–116). Suggested:
- Relies on `spec:AST-140/FR5`: each contract keeps its baseline, and later behaviour is a named feature.
- Relies on `spec:AST-112` FR21 (amended) for `render` and `surface`, and on the theme's `render.default` member it adds to `spec:AST-082` FR10.
…ontrol exists and what it shows
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the draft requirements of spec:AST-126 (FR1–FR16 and DEC-1–DEC-5), and three record fixes are needed whatever that decision is.
- Miss: FR2's Button shapes (lines 110–112) leave out
childrenandendContent, which core Button takes and the system button cannot show, so add them as the open Button platform record (#12817) already does and name the React Native component platform records as overlapping work with one owner for the shape rules. - Regression: FR2 (line 111) always draws a glass Button, while
spec:AST-112FR21 onmainnow has a system-drawn button showsurfaceas the platform's matching button style, so either give the system button that style in FR3 or cite FR21 and name the departure (withspec:AST-082FR11) under Current-state impact. - Regression: OQ9 (lines 498–502) and Current-state impact (lines 402–403) say
spec:AST-112FR10 asks the platform to wrap@astryxdesign/native's Swift controls, but FR10 onmainnow says the platform's native controls are its own, typed from the shared contracts' generated Swift and Kotlin, so drop or restate both.
The decision needs to settle the drawn Android Slider, SegmentedControl and icon controls against spec:AST-082 FR11 (OQ2), the glass Button rule, PasteButton and MediaScrubber (which no record defines yet), DateRangeInput's presentation, and whether spec:AST-124 (#12562) must merge first. An engineering owner records it by commenting /approve-spec 6986ee4d0f5531dbcc0190a77786a9baad7fc42d on this pull request, or by naming what the record must conform to; as an engineering owner, the author may record it too. The earlier non-blocking notes stand in their inline threads, and one new note asks DateRangeInput's extension to keep spec:AST-043 FR1's non-Gregorian fallback.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the foundation amendment (default linking) and the platform-code record (registration, results, named features, threading). Verified; both have since merged into
mainas drafts. - Claim: the record cites the Gestures and drag record. Verified (FR1, line 98).
- Claim: not stacked; merges after the two drafts. Verified (no stack line). The merge line still leaves out the gestures draft the record cites (non-blocking).
- Claim: the decision covers the system button, slider, text field, segmented control, the date view and dialog module, and the paste control. Verified (FR3–FR8).
- Claim: default linking and the named-feature baseline come from the foundation amendment, which also defines
surface. Verified onmain. The record usessurfacewithout citing that requirement and contradicts its system-drawn rule (blocking). - Claim: the
renderrule is removed and left to each component's own record. Verified: norenderremains. The open component platform records still cite this record's FR2 for it. - Claim: the listed foundation, platform-code, native-first, component-guidelines and input-presentation requirements were searched and are followed or detailed. Verified, except that the record's reading of the foundation's FR10 is stale (blocking).
- Claim: the Android departure from the native-first rule is named with OQ2, and OQ7 asks about the default. Verified (lines 395–398).
- Claim: the date family keeps the input-presentation prop, which stays that record's. Verified (lines 398–399). The record also extends the prop to DateRangeInput, which needs an owner decision.
- Claim: component records own each component's contract. Not checkable for PasteButton and MediaScrubber, which have no record (owner decision).
- Claim: open pull requests were searched and none overlaps in requirements. False: the open React Native component platform records (#12817, #12821, #12831, #12837) restate or cite FR2, and the Button record's shape list differs (blocking).
- Claim: glass Buttons are drawn, so the record divides cleanly with the Surfaces and glass draft. True between those two drafts, but the foundation's FR21 on
maincontradicts it (blocking). - Claim: the gesture views are left to the Gestures and drag record. Verified (FR1).
- Claim: the controls link by default and stay internal, and
./controlsexports the components. Verified (FR1). - Claim: FR2 gives the hosts and the drawn shapes, icons stay visible, and a move keeps the value. Verified (lines 105–121), except that the Button shapes are incomplete (blocking).
- Claim: per-control behaviour, controlled values, sizing, theme tokens, accessibility, threading, absent views, evolution rules and public-SDK-only code. Verified (FR3–FR16).
- Claim: the Android date module resolves the shared result object, with value and end on success. Verified (lines 353–359).
- Claim: one gap line, for Switch. Verified; its wording reads the reverse of its intent (non-blocking).
- Claim: the iOS date view and the Android date module have separate names. Verified.
- Claim: the iOS-only members are tagged and warn once on Android. Verified (FR3, FR5, contract table).
- Claim: the contracts carry the target props, and
appearancecarries the mode and accent. Verified (FR11). - Claim: the contract tables come from the package's contract list, and the platform support table covers iOS and Android. The first part is not checkable, because the package is not in this repository; the second is verified.
- Claim: positive terms, the Non-goals keep only the template's two standing lines, and each decision states its direction and reason. Verified.
- Claim: the description's "who uses it" table is the record's. Verified, row for row.
- Claim: each native piece has at least one library component that uses it. Verified.
- Claim: the ecosystem comparison. Not checked: it describes libraries outside this repository.
- Claim: five open questions remain (OQ1, OQ2, OQ6, OQ7, OQ9). Verified; OQ9 rests on stale text (blocking).
- Claim: no implementation and no evidence links. Verified.
- Claim: rubric results R1–R7. Verified, except R6 for OQ9, whose premise the foundation record no longer states.
- Claim: the scope checklist. Verified, except that the overlapping open work leaves out the component platform records (blocking, above).
- Claim: the knowledge check and Prettier pass, the whitespace check is clean, and the leak scan is clean. Verified at this head.
- File
docs/specs/AST-126-react-native-native-controls/spec.md: three blocking findings (the Button shapes, the glass Button, OQ9) and the non-blocking notes in the inline threads.
| - The system controls do not show these shapes, and the component draws its | ||
| own control for them: Button as a toggle, with `surface="glass"`, inside a | ||
| connected group, or with an icon on Android; TextInput inside an |
There was a problem hiding this comment.
Miss: this list leaves out children and endContent. Core Button takes both (component:Button FR2: the icon slot, the label text, children when supplied, then endContent), and FR3 gives the system button only a title and an iOS SF Symbol. As written, a Button with endContent on a host draws the system button and loses that content, against spec:AST-082 FR3 ("A platform never offers a prop it does not fully honor"). The open Button platform record (#12817, FR4) already lists both as shapes that draw the Astryx button. Add children that differ from label and endContent here, and name the React Native component platform records as overlapping work with one owner for these shape rules.
| SegmentedControl and the date view on iOS; the date dialogs on Android; | ||
| and PasteButton's system paste control wherever the OS has one (FR8). | ||
| - The system controls do not show these shapes, and the component draws its | ||
| own control for them: Button as a toggle, with `surface="glass"`, inside a |
There was a problem hiding this comment.
Regression: spec:AST-112 FR21 on main, which defines surface, now says "a drawn button draws that surface, and a system-drawn button shows it as the platform's matching button style". Its verification fails on "a system-drawn button whose platform style does not match its surface". This line instead always draws a glass Button, and the record neither cites FR21 nor names the departure, which is also one from spec:AST-082 FR11 (Current-state impact names only the Android one, lines 395–397). Either give AstryxNativeButton the platform's matching glass style in FR3 and drop glass here, or keep it drawn, cite FR21, and name the departure from spec:AST-112 FR21 and spec:AST-082 FR11 under Current-state impact.
| - **OQ9 — Do the iOS button and text field wrap the shared Swift controls?** | ||
| (`checkable`) `spec:AST-112/FR10` asks the platform to wrap a shared native | ||
| control where `@astryxdesign/native` provides one. Options: wrap the shared | ||
| Swift `Button` and `TextInput`, with this record's contract on top; or keep | ||
| UIButton and UITextField until the shared controls cover FR3 and FR5. |
There was a problem hiding this comment.
Regression: spec:AST-112 FR10 on main no longer asks the platform to wrap @astryxdesign/native's controls. It now says "The platform's native controls are its own, typed from the Swift and Kotlin that the shared contracts generate (FR4)", and FR4 and DEC-19 deprecate @astryxdesign/native. This question and its Current-state impact line (402–403) ask the owner to rule on a choice the parent has settled, and line 387's "Details spec:AST-112 … FR10" rests on the old text. Drop both, or restate them against the new FR10, so that each control's native types come from the contracts' generated Swift and Kotlin.
| - Extends `spec:AST-043`'s `presentation`, with the values `DateInput` takes, | ||
| to `DateRangeInput` on React Native. |
There was a problem hiding this comment.
Non-blocking. Miss: this gives DateRangeInput "the values DateInput takes", but not spec:AST-043 FR1's rule that a calendar other than gregory or iso8601 resolves native and adaptive-native to the Astryx surface. architecture:internationalization INV10 makes DateRangeInput show the app's calendar, and FR7's native pickers work in the Gregorian calendar. Suggested: "Extends spec:AST-043's presentation, with the values and the calendar fallback of DateInput, to DateRangeInput on React Native."
Depends on #12563 (the
spec:AST-112amendment: default linking) and #12594 (spec:AST-140, the shared platform rules: registration, results, additive evolution with a baseline and named features, threading). Cites the Gestures and drag record, #12562.Not stacked. Merges after #12563 (AST-112) and #12594 (AST-140).
Exact decision needed
The contract of the React Native platform's native controls: the system button,
slider, text field, segmented control, date pickers (an iOS view and an Android
dialog module) and paste control. That covers their native
contracts, how the library chooses the system control or its own drawn control,
the controlled-value pattern, sizing, how the theme reaches the control,
accessibility and fallbacks. Default linking and the contract baseline with named features
come from the
spec:AST-112amendment, andsurfaceis defined inspec:AST-112/FR21; this record relies on them. Therenderrule is removedfrom this record: each component's own record decides it.
Existing authority searched
spec:AST-112(React Native foundation, the parent record): FR1, FR3, FR5(capabilities and entries), FR7 (capability shape), FR9 (design language of
native controls), FR10, FR15 (evidence). This record details them for the
controls and relies on the amended FR3 and FR5 (Current-state impact).
spec:AST-140(React Native platform code, draft): the shared platformrules. The record cites FR1 (registration, platform-only members), FR2
(missing piece), FR3 (result vocabulary), FR5 (additive evolution, a baseline
and named features) and FR6 (threading).
spec:AST-082(native-first surfaces): FR11 (native-first), FR13 (requireddependencies), DEC-2 (native-only visuals are theme configuration). Linked in
the record. FR2 follows FR11: the system control is the default wherever a
host exists, and whether React Native departs from that default is OQ7. On
Android the record departs from FR11: Slider and SegmentedControl, and a
Button or TextInput with an icon, draw the Astryx control where Material 3
has its own (Current-state impact, OQ2).
spec:AST-093(native component guidelines): it governs components built onthe shared native package; its rules point the same way (native control
first, brand through the theme), and this record follows
spec:AST-082directly.
spec:AST-043(input presentation, current): the date family'spresentation. The record keeps it for the date family. AST-043 stays theowner of
presentation.they own each component's contract. This record owns only the native
presentation.
native controls,react native platform spec,presentation native SegmentedControl): no overlap in requirements. TheSurfaces and glass record (spec(AST-123): React Native platform: Surfaces and glass #12557) draws glass Buttons; a Button with
surface="glass"is drawn, so the two divide cleanly. The sibling platformrecords are open as drafts (AST-125 Navigation hosts, AST-127 Icons and
drawing, AST-129 Layout, text and keyboard, AST-130 System modules, AST-131
Web). The gesture views that ship next to the controls (swipe row, drag snap,
zoom pager, pan and zoom) are left to the Gestures and drag record (AST-124,
spec(AST-124): React Native platform: Gestures and drag #12562).
Decision
docs/specs/AST-126-react-native-native-controls/spec.md, draft, FR1 to FR16,DEC-1 to DEC-5:
spec:AST-112/FR3and areinternal behind the components (amended FR5);
./controlsexports thecomponents (FR1).
controls do not show, which the component draws itself; an icon stays
visible whichever control draws it, and a move between the two controls
keeps the value (FR2, DEC-1, DEC-2). The date family keeps
spec:AST-043'spresentation.intrinsic size (FR10), which theme tokens reach each control (FR11),
accessibility and Dynamic Type (FR12), touch and values on the UI thread
(FR13), absent views and results (FR14), the evolution rules of
spec:AST-140/FR5: the baseline it sets, growing by named features(FR15).
spec:AST-140/FR3's result object(
status,reason,message, withvalueandendonok).Switch's system presentation is React Native's ownSwitch(FR2 gap, OQ6).
AstryxDatePickerViewand the Android dialogmodule is
AstryxDatePicker: one kind per name (spec:AST-140/FR1).systemImage,startSystemImage,fieldStyle,fill,cornerRadius,insetX) aretagged iOS, and setting one on Android gives one development warning (FR3,
FR5).
appearancecarries the mode andaccent).
table that covers iOS and Android (Slider and SegmentedControl draw the
Astryx control on Android, OQ2).
controls do, the Non-goals section keeps only the template's two standing lines, and each decision states
its direction and reason.
Who uses it (same table as the record):
AstryxNativeButtonButton, in the shapes the system button shows (FR2)AstryxNativeSliderSlider;MediaScrubber, which asks for it throughSliderAstryxNativeTextFieldTextInput, in the shapes the system box shows (FR2)AstryxSegmentedControlSegmentedControl, in the shapes it shows (FR2)AstryxDatePickerViewDateInput,TimeInput,DateTimeInput,DateRangeInputon iOS whenpresentationresolves to nativeAstryxDatePickerDateInput,TimeInput,DateTimeInput,DateRangeInputon Android whenpresentationresolves to nativeAstryxPasteControlPasteButtonon iOS 16 and later, in an app's own runtimeEach piece has at least one library component that uses it. OQ1 asks the "why this exists" scope question for
the controls whose ecosystem counterpart already covers the capability.
Ecosystem comparison
The record keeps one conclusion per piece under "Why this exists". This is the comparison behind it:
AstryxNativeButtonButtondraws the system button but takes no theme, icon or loading state. Expo UI's SwiftUI and Jetpack Compose buttons give system buttons with system styles.AstryxNativeSlider@react-native-community/sliderwraps UISlider and Android's seek bar, with the thumb on the UI thread.AstryxNativeTextFieldTextInputis already UITextField or EditText: keyboard, IME, selection and autofill are the system's.TextInput. The native piece adds only the system's box: UITextField's rounded or filled style and Material 3's outlined TextInputLayout, with status colours and an SF Symbol. OQ1.AstryxSegmentedControl@react-native-segmented-control/segmented-controlwraps UISegmentedControl on iOS and draws its own on Android.AstryxDatePickerView@react-native-community/datetimepickerwraps UIDatePicker (compact, inline, spinner).Dateobjects, so the picked calendar day stays the same in every time zone (DEC-4). The view sits inside the library's date sheet and field (FR7), with the theme's accent and mode.AstryxDatePickerspec:AST-140/FR3), presentation from the calling surface, one dialog at a time, and ISO strings in both directions.AstryxPasteControlexpo-clipboard's paste button wraps UIPasteControl on iOS 16 and later.Rejected alternatives
Each decision in the record states its chosen direction and its reason.
Claim scope and non-goals
The record covers the six controls' native contracts and how the library uses
them; its Non-goals section keeps only the template's two standing lines. Each component's own record owns
its contract, the Gestures and drag record (AST-124) owns the gesture views,
and
spec:AST-043owns the date family's own surfaces. Five questions stayopen: scope (OQ1), Android hosts for the iOS-only controls (OQ2), a native
contract for
Switch(OQ6),whether React Native departs from
spec:AST-082/FR11's native-first default(OQ7), and whether the iOS button and text field wrap the shared Swift
controls of
spec:AST-112/FR10(OQ9).Evidence and implementation relationship
The implementation lives in the platform layer of the React Native package:
the codegen specs, the iOS and Android views and module, the
./controlswrappers, and the library's choice between the system control and its own. This pull request carries no
implementation and no public evidence links. The record stays valid without
them.
Writing rubric results
the amended
spec:AST-112("Relies on …") and states no change history.description (Ecosystem comparison); "Why this exists" keeps one conclusion
per piece.
layers (
./testingdoubles, Simulator, emulator,VoiceOver, TalkBack, UI-thread frame checks).
decision states its direction and reason.
OQ9 are unanswered and keep their options.
missing hosts are written as present behaviour with OQ2, not as missing work.
One mismatch is written as a gap line (FR2 gap). The Android departure from
spec:AST-082/FR11is named under Current-state impact with OQ2; the otherpossible departure (FR11's default) is an open question (OQ7), not a
requirement.
Scope
Components: Button, Slider, MediaScrubber, TextInput, SegmentedControl,
DateInput, TimeInput, DateTimeInput, DateRangeInput, PasteButton (React Native
platform
controls)Validation
pnpm check:knowledge(run asnode scripts/check-knowledge.mjs): "Knowledge templates and records are aligned."; no error or warning for this record.--checkpasses for the record.git diff --check origin/main: clean.pnpm specs:fornot run: this checkout has no package install.