Repository navigation
spec(AST-129): React Native platform: Layout, text and keyboard - #12552
imdreamrunner wants to merge 18 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
…measures its first read
…ary fallback for each missing member
…fe-area peer, and native code uses public API only
…tforms; component APIs are named only
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: no current record states spec:AST-129's requirements (FR1–FR17) or decisions (DEC-1 to DEC-6), so an engineering owner, the author included, records it by commenting /approve-spec <full head SHA> on this pull request. Whatever that decision is, these need fixing:
- FR6 makes
isKeyboardDockAvailable()true only on iOS while FR7, the native contract and the platform-support table give Android a native dock and FR13 reads a false probe as "no dock", so make the probe mean the dock is present on both platforms and keep Android's missing scroll-view link as the FR8 gap. - The record cites
spec:AST-112for rules it does not state (FR5 cites AST-112 FR2 for no peer dependency on react-native-safe-area-context, which AST-112 FR2 and FR5 allow as an optional peer of./navigation-legacy; the Intent cites FR1 for all six pieces being core, while FR1's core list names only safe-area insets; Current-state impact cites FR8 for named features it does not define), so amend AST-112 and land that change first, noting that the open AST-112 amendment covers FR1 and FR8 but not FR2/FR5 and drops theversion()that FR4 keeps. - Apps that pass
initialSafeAreaInsetstoSafeAreaProviderare told it is deprecated (FR2), and that needs an explicit owner decision forinitialSafeAreaInsetscited in the description. Found by: deprecation rule - The "Why this exists" table surveys other libraries inside the record, which
architecture:knowledge-contractsINV10 keeps out of records (the description reports rubric items R2 and R4 as none), so move it to a linked artifact and keep each conclusion in its decision.
The knowledge check and Prettier pass on the record.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the record states seventeen requirements, six decisions and four open questions. Verified in the record.
- Claim: the package takes no dependency or peer dependency on react-native-safe-area-context. Stated in FR5 with an FR5 gap; its citation of the parent record's FR2 is false (finding).
- Claim: the parent record names safe-area insets in the core but settles none of this group's behaviour. Verified against its FR1.
- Claim: the native-first and native-component records say nothing about insets, the keyboard dock, window status bars or selectable text. Verified.
- Claim: the calendar and date-input records use
Intlin browsers, and none owns the React Native engine's set. Verified. - Claim: the browser keyboard record stays unchanged. Verified (Current-state impact).
- Claim: no other record owns these terms for React Native. Verified by a repository search.
- Claim: the only open React Native platform record is the Web record, with no overlap. False at this head: the open parent-record amendment and sibling records overlap it (finding).
- Claim: rubric items R1, R3, R5, R6 and R7 found nothing beyond the listed gaps. Verified.
- Claim: rubric items R2 and R4 found nothing. False (finding).
- Claim: the knowledge check, Prettier and the whitespace check pass. Verified by a rerun on this head.
- Claim: the pull request contains specification records only. Verified.
- File
docs/specs/AST-129-react-native-layout-keyboard/spec.md: the four findings above; an owner decision is pending.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: no current record states spec:AST-129's requirements (FR1–FR17) or decisions (DEC-1 to DEC-6), so an engineering owner, the author included, records it by commenting /approve-spec <full head SHA> on this pull request. Whatever that decision is, these need fixing:
- FR6 makes
isKeyboardDockAvailable()true only on iOS while FR7, the native contract and the platform-support table give Android a native dock and FR13 reads a false probe as "no dock", so make the probe mean the dock is present on both platforms and keep Android's missing scroll-view link as the FR8 gap. - The record cites
spec:AST-112for rules it does not state (FR5 cites AST-112 FR2 for no peer dependency on react-native-safe-area-context, which AST-112 FR2 and FR5 allow as an optional peer of./navigation-legacy; the Intent cites FR1 for all six pieces being core, while FR1's core list names only safe-area insets; Current-state impact cites FR8 for named features it does not define), so put the FR2/FR5 change into the AST-112 amendment (#12563) or this pull request, land that amendment first, and align FR4'sversion()with the amended FR8. - Apps that pass
initialSafeAreaInsetstoSafeAreaProviderare told it is deprecated (FR2), and that needs an explicit owner decision forinitialSafeAreaInsetscited in the description. Found by: deprecation rule - The "Why this exists" table surveys other libraries inside the record, which
architecture:knowledge-contractsINV10 keeps out of records (the description reports rubric items R2 and R4 as none), so move it to a linked artifact and keep each conclusion in its decision. - Miss: FR16 promises a library fallback for every
Intlmember outside the required set but names none forDateTimeFormat#formatRangeToParts,NumberFormat#formatRange,NumberFormat#formatRangeToParts,ListFormat,DisplayNamesorsupportedValuesOf, so name one for each or narrow FR16 to the members the library calls. - Miss: the FR12 verification row's failure cell, "One element for every block", restates FR12's own requirement of one element per block, so write "One element for the whole text".
The knowledge check and Prettier pass on the record.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record states seventeen requirements, six decisions and four open questions. Verified in the record.
- Claim: the package takes no dependency or peer dependency on react-native-safe-area-context. Stated in FR5 with an FR5 gap; its citation of the parent record's FR2 is false (finding).
- Claim: the parent record owns the platform layer, results, capability shape, additive evolution, app-root hosts and Astryx Stage, and names safe-area insets in the core without settling this group's behaviour. Verified against its FR1, FR6 to FR9 and FR12.
- Claim: the native-first and native-component records say nothing about insets, the keyboard dock, window status bars or selectable text. Verified.
- Claim: the calendar and date-input records use
Intlin browsers, and none owns the React Native engine's set. Verified. - Claim: the browser keyboard record stays unchanged. Verified (Current-state impact).
- Claim: no other record owns these terms for React Native. Verified by a repository search.
- Claim: the only open React Native platform record is the Web record, with no overlap. False at this head: the open parent-record amendment and promotion, and the open Stage record, overlap it (finding).
- Claim: the six rejected alternatives are one line each inside the decisions. True of the decisions; false of the record, whose "Why this exists" table carries more (finding).
- Claim: rubric items R1, R3, R5, R6 and R7 found nothing beyond the listed gaps. Verified.
- Claim: rubric item R2 found no research in the record. False (finding).
- Claim: the knowledge check, Prettier and the whitespace check pass. Verified by a rerun on this head.
- Claim: the pull request contains specification records only, with no internal context. Verified.
- File
docs/specs/AST-129-react-native-layout-keyboard/spec.md: the six findings above; an owner decision is pending.
…amendment, review findings fixed
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: no current record states spec:AST-129's requirements (FR1–FR17) or decisions (DEC-1 to DEC-6), so an engineering owner, the author included, records it by commenting /approve-spec <full head SHA> on this pull request. Whatever that decision is, these need fixing:
AstryxSafeAreakeeps aversion()method (FR4) and aversionconstant ingetConstants(native contract), while FR14 and Current-state impact rely onspec:AST-112FR8 as amended in #12563, which says no contract carries a revision counter, so drop both and keepinitialWindowMetrics.- Miss: FR5's
./safe-area-contextentry is not among the package entries thatspec:AST-112FR5 lists onmainor in #12563, and Current-state impact names no change to that list, so add the entry to AST-112 FR5 in #12563 or name it under Current-state impact. - The description's "Existing authority searched" names AST-131 as the open React Native platform record, while fifteen more React Native records are open and AST-125, AST-128 and AST-138 cite this record for these pieces, so list them in the description and say they defer to AST-129.
The seven earlier inline findings are fixed at this head, and the knowledge check and Prettier pass on the record.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the parent-record amendment and lands after it and the parent's promotion. Verified: the amendment adds the core membership, default linking, public-API rule, named features and Stage version floor this record relies on.
- Claim: the record states the six pieces' contracts and the engine's
Intlrequirement in seventeen requirements, six decisions and five open questions. Verified. - Claim: the parent record owns the platform layer, results, capability shape, additive evolution, app-root hosts and Astryx Stage, and names safe-area insets in the core without settling this group's behaviour. Verified.
- Claim: the native-first and native-component records say nothing about insets, the keyboard dock, window status bars or selectable text. Verified.
- Claim: the calendar and date records use
Intlin browsers, and none owns the React Native engine's set. Verified; the internationalization architecture record also uses it, for Core only. - Claim: the browser keyboard record stays unchanged. Verified.
- Claim: no other record owns these terms for React Native. Verified; the sibling React Native drafts that use them defer to this record.
- Claim: the only open React Native platform record is the Web record, with no overlap. False (finding); there is no ownership collision.
- Claim: the compatibility entry needs no install of react-native-safe-area-context, and whether the optional peer stays is OQ5. Verified.
- Claim: the six rejected alternatives are one line each inside DEC-1 to DEC-6. Verified.
- Claim: the writing rubric found no narration, research, change or pull request references, or ruled open questions, and six gaps are written against named requirements. Verified, apart from the "(amended)" markers in Current-state impact (non-blocking).
- Claim: the knowledge check, Prettier and the whitespace check pass. Verified by a rerun on this head.
- Claim: the pull request contains specification records only, with no internal context. Verified.
- File
docs/specs/AST-129-react-native-layout-keyboard/spec.md: the two record findings above and one non-blocking note; an owner decision is pending.
|
|
||
| ## Current-state impact | ||
|
|
||
| - Relies on `spec:AST-112` FR1 (amended): layout, text and keyboard belong to |
There was a problem hiding this comment.
Non-blocking: "(amended)" names a pending change rather than the fact relied on; once #12563 lands, these five markers read as history (rubric R1, R7). Drop them when the amendment merges.
… use safe-area-context beside these components
…ript engine, not a named one
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: no current record states spec:AST-129's requirements (FR1–FR17) or decisions (DEC-1 to DEC-6), so an engineering owner, the author included, records it by commenting /approve-spec <full head SHA> on this pull request. Whatever that decision is, these need fixing before the record can merge:
AstryxSafeAreastill hasversion()(FR4) and aversionconstant in its native contract, while FR14 now rests onspec:AST-140FR5, which says no contract carries a revision counter, so drop both and keepinitialWindowMetrics.- FR5 adds a public
./safe-area-contextentry thatspec:AST-112FR5 does not list, onmainor in #12563, so add it there or name it under Current-state impact as an entry this record adds. - The description is out of date: its search names only AST-131 although #12558, #12563, #12579 and #12594 cite this record, its merge order starts with #12576, which closed without merging, and it does not list #12579 and #12598, which hold the
spec:AST-139andspec:AST-141records named in Non-goals.
Two non-blocking notes: the three "(amended)" markers under Current-state impact read as history once #12563 lands, and FR16's date-range fallback joins two dates with a separator where the internationalization record asks for one message with placeholders.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record depends on the AST-112 amendment and the AST-140 record and merges in an order that starts with the AST-112 promotion. False: the promotion pull request closed without merging, and the AST-139 and AST-141 records the record names are not listed.
- Claim: the record is a draft child of AST-112. Verified: frontmatter and Intent.
- Claim: AST-112 names safe-area insets in the core but settles none of this group's behaviour. Verified: AST-112 FR1 on main.
- Claim: AST-082 and AST-093 say nothing about insets, the keyboard dock, window status bars or selectable text. Verified.
- Claim: AST-140 owns the shared platform rules the record cites. Verified against its open draft; it is not on main.
- Claim: no current record owns the React Native engine's
Intlset. Verified: the records that useIntlare browser-side. - Claim: AST-099 owns the keyboard in browsers and stays unchanged. Verified.
- Claim: no other record owns safe area, insets, keyboard dock, status bar or selectable text for React Native. Verified.
- Claim: the only open React Native platform record is AST-131, with no overlap. False: sixteen other open pull requests carry React Native records, and four cite this one.
- Claim: native code uses public platform API only, with no exception (FR17). Verified.
- Claim: the compatibility entry needs no install of react-native-safe-area-context, and keeping the optional peer is OQ5. Verified: FR5 and OQ5.
- Claim: writing rubric results (no pull request or issue references, one conclusion per piece, six one-line rejected alternatives, four gap lines, open questions keep their options). Verified against the record.
- Claim: the knowledge check passes with no warning for this record, Prettier passes, and the whitespace check is clean. Verified on this head.
- Claim: the components listed under "Who uses it" and the ecosystem comparison. Not checkable here: the React Native package is not in this repository.
- File:
docs/specs/AST-129-react-native-layout-keyboard/spec.md: the three blocking findings and two notes above.
…afe-area-context to the AST-112 entries
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: no current record states spec:AST-129's requirements (FR1–FR17) or decisions (DEC-1 to DEC-6), so an engineering owner, the author included, records approval of this draft direction, or names the requirements that must change, by commenting /approve-spec <full head SHA> on this pull request.
One fix is needed regardless of that decision:
- The description says AST-131 is the only open React Native platform record and that there is no overlap, but five open records cite this one (AST-128, the AST-112 amendment, AST-139, AST-140 and AST-141) and eight other "React Native platform" group records are open, so list the citing records and say that each defers to this one.
The revision-counter, ./safe-area-context and merge-order findings from the last review are fixed. Three non-blocking notes remain: drop the "(amended)" markers once the AST-112 amendment lands, decide whether FR16's range fallback should be one catalog message, and use spec:AST-140 FR1's "name or tag" wording for platform-only props.
Claims and files checked
Review mode: full; reason: spec-record
- Claims:
- The record is not stacked and merges after the AST-112 amendment and AST-140: verified, both are open and the record cites both.
- The record cites AST-139 and AST-141 in one Non-goals line: verified (spec.md:79-80).
- AST-112 names safe-area insets in the core but settles none of this group's behaviour: verified (AST-112 FR1).
- AST-082 and AST-093 say nothing about insets, the keyboard dock, window status bars or selectable text: verified.
- AST-140 owns the shared platform rules the record cites: verified (its FR2, FR3, FR5, FR6 and FR9).
- AST-111 and the DateInput, DateTimeInput and PowerSearch records use
Intlin browsers, and none owns the engine'sIntlset: verified. - AST-099 covers the keyboard in browsers and stays unchanged: verified (AST-099 Non-goals; spec.md:385).
- No other current record owns safe area, insets, the keyboard dock, input accessories, status bars or selectable text for React Native: verified.
- The only open React Native platform record is AST-131, with no overlap: false (five open records cite this one; eight other "React Native platform" group records are open).
- The record states FR1–FR17, six decisions, a
./safe-area-contextentry that needs no install of that library, and OQ5 for the optional peer: verified (spec.md:97-326, :411-521). - Rubric: no survey in the record, one-line rejected alternatives inside each decision, no pull request or issue references, four gap lines: verified (spec.md:43-58, :424-491, :173, :199, :322, :324).
- The knowledge check and Prettier pass, and the diff has no whitespace errors: verified on this head.
- The pull request holds only a spec record, and its public text carries no internal context: verified.
- Files:
docs/specs/AST-129-react-native-layout-keyboard/spec.md: held for an engineering owner's decision; three non-blocking notes (Current-state impact markers, FR16 range fallback, platform-only prop wording).
| `Intl` is a requirement on the JavaScript engine (FR15), not a native | ||
| contract. `AstryxSelectableText`'s `content` is the blocks as JSON, with sizes in dp | ||
| before font scaling and colours as processed colour numbers; the wrapper builds | ||
| it. A platform-only prop says so in its documentation (`spec:AST-140/FR1`). |
There was a problem hiding this comment.
Non-blocking: spec:AST-140 FR1 reads "A member that exists on one platform only says so in its name or its tag." This line says "in its documentation", and the names bottomInset, restingInset and colorScheme do not carry their platform. Use the cited wording so an implementer tags them.
Remove the safe-area compatibility entry and its optional peer: apps use react-native-safe-area-context beside Astryx, which measures its own insets. State the baseline as named features, 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: no current record states spec:AST-129's requirements (FR1–FR17) or decisions (DEC-1 to DEC-6), so an engineering owner, the author included, records approval of this draft direction, or names the requirements that must change, by commenting /approve-spec <full head SHA> on this pull request.
Three fixes are needed regardless of that decision:
- The Non-goals section now reads "None.", so the record drops the template's "Equivalent internal implementations remain valid when they satisfy this contract" line while its Platform support table still names internal mechanisms (a selectable
UITextView, aTextViewover oneSpannablewithExploreByTouchHelper, Core Animation,WindowInsetsAnimationCompat), whicharchitecture:knowledge-contractsDEC-7 leaves free; restore that line, the internal-mechanism line, and a bound naming each component's own record for its layout against insets and the keyboard, as the description's scope section still says. - FR5, its verification row and "Why this exists" rely on
spec:AST-112FR2 and FR5 as the open AST-112 amendment changes them (no react-native-safe-area-context declaration, Astryx measuring its own insets beside it), while onmainthey keep that library as an optional peer of./navigation-legacy, so add that reliance to Current-state impact beside FR1, FR3 and FR4. - The description says AST-131 is the only open React Native platform record, with no overlap or collision, but six open records cite this one and AST-141 still maps react-native-safe-area-context imports to the
./safe-area-contextentry this revision removes, so list the citing records and settle that mapping before either lands.
Four non-blocking notes: drop the "(amended)" markers once the amendment merges, use spec:AST-140 FR1's "name or tag" wording for platform-only props, decide whether FR16's range fallback should be one catalog message, and say which events each FR13 fallback sends.
Claims and files checked
Review mode: full; reason: spec-record
- Claims:
- The record is not stacked and merges after the AST-112 amendment and AST-140: verified, both are open drafts and the record cites both.
- The record is a draft child of AST-112: verified (frontmatter and Intent, spec.md:33-40).
- AST-112 with its amendment owns the platform layer, results, the capability shape, additive evolution and the app root, and Astryx measures its own insets under its FR2: verified for the amendment; on
main, FR2 still keeps react-native-safe-area-context as an optional peer (second fix). - AST-112 names safe-area insets in the core but settles none of this group's behaviour: verified (AST-112 FR1).
- AST-082 and AST-093 say nothing about insets, the keyboard dock, window status bars or selectable text: verified.
- AST-140 owns the shared platform rules the record cites: verified (its FR2, FR3, FR5, FR6 and FR9).
- AST-111 and the date and search component records use
Intlin browsers, and none owns the engine'sIntlset: verified. - AST-099 keeps the keyboard in browsers and is unchanged: verified (spec.md:39-40, :354).
- No other current record owns safe area, insets, the keyboard dock, input accessories, status bars or selectable text for React Native: verified.
- The only open React Native platform record is AST-131, with no overlap or ownership collision: false (third fix).
- The record states FR1–FR17, the native contract, platform support and DEC-1 to DEC-6 as summarised: verified (spec.md:77-339, :383-442).
- The compatibility entry and the optional-peer question are gone, and apps use react-native-safe-area-context beside Astryx: verified (FR5, spec.md:120-124); its AST-112 FR2 support exists only in the open amendment (second fix).
- Each contract's baseline is its first release's shape, growing by named features: verified (FR14, spec.md:249-253).
- Non-goals reads "None." and each decision states its direction and reason: verified (spec.md:71-73, :383-442).
- Each library component's own layout against insets and the keyboard stays with that component's record: false, the record no longer says so (first fix).
- Open questions OQ1 to OQ4 stay unanswered with their options: verified (spec.md:444-464).
- Rubric: no narration, no research or survey in the record, no change references, no rejected alternatives, and four gap lines quoted exactly: verified (spec.md:148, :175, :293, :295).
- The record preserves equivalent internal implementations, and any named internal mechanism is intentionally public: false at this revision (first fix).
- The knowledge check and Prettier pass, and the diff has no whitespace errors: verified on this head.
- The pull request holds only a spec record, and its public text carries no internal context: verified.
- Files:
docs/specs/AST-129-react-native-layout-keyboard/spec.md: held for an engineering owner's decision; three blocking findings (Non-goals, FR5's reliance on the amendment, the description's open-work statement) and four non-blocking notes.
…liance Keep the template's two standing Non-goals lines, state that each component's own record owns its layout against insets and the keyboard, list the amended AST-112 FR2 and FR5 under Current-state impact, and say which events each fallback sends.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: no current record states spec:AST-129's requirements (FR1–FR17) or decisions (DEC-1 to DEC-6), so an engineering owner, the author included, records approval of this draft direction, or names the requirements that must change, by commenting /approve-spec <full head SHA> on this pull request.
Two fixes are needed regardless of that decision:
- Regression: FR14 and Current-state impact restate
spec:AST-140FR5 as "each contract's baseline is its first release's shape", while that clause and the AST-112 amendment's DEC-14 now set the baseline at the first release after the package leaves the canary channel, so write that wording in both places or cite the clause without restating it. - The description lists the AST-112 amendment, AST-140, AST-128, AST-139 and AST-141 as the open records that cite this one, but the NavigationStack record (#12596) also cites it as the owner of the safe area, the inset hooks and the keyboard dock, so add it (AST-141 has since dropped its citation and resolves react-native-safe-area-context imports to the project's own copy).
The Non-goals, the FR5 reliance on the amended AST-112 FR2 and FR5, and the fallback events are fixed. Smaller, non-blocking notes are inline: add AST-112 FR7 and FR8 to the amended clauses, name the read windowMetrics() makes, and the earlier notes on the "(amended)" markers, the platform-only prop wording and FR16's range fallback still apply.
Claims and files checked
Review mode: full; reason: spec-record
- Claims:
- The record is not stacked and merges after the AST-112 amendment and AST-140: verified, both are open drafts and the record cites both.
- The record is a draft child of AST-112: verified (frontmatter; Intent, spec.md:33).
- AST-112 with its amendment owns the platform layer, results, the capability shape, additive evolution and the app-root hosts, and Astryx measures its own insets under its FR2: verified for the amendment; on
mainits FR2 still keeps react-native-safe-area-context as an optional peer of./navigation-legacy, which Current-state impact now names (spec.md:359-361). - AST-112 names safe-area insets in the core but settles none of this group's behaviour: verified (AST-112 FR1).
- AST-082 and AST-093 say nothing about insets, the keyboard dock, window status bars or selectable text: verified.
- AST-140 owns the shared platform rules the record cites: verified (its FR2, FR3, FR5, FR6 and FR9).
- AST-111 and the date and search component records use
Intlin browsers, and none owns the engine'sIntlset: verified. - AST-099 keeps the keyboard in browsers and stays unchanged: verified (spec.md:39, :367).
- No other current record owns safe area, insets, the keyboard dock, input accessories, status bars or selectable text for React Native: verified.
- The open records that cite this one are the AST-112 amendment, AST-140, AST-128, AST-139 and AST-141, with no other collision: false, the NavigationStack record also cites it (second fix).
- The record states FR1–FR17, the native contract tables, platform support and DEC-1 to DEC-6 as summarised: verified.
- The record relies on the amended AST-112 FR2 and FR5: verified (spec.md:359-361).
- The compatibility entry and the optional-peer question are gone, and apps use react-native-safe-area-context beside Astryx: verified (FR5, spec.md:128-132).
- Each contract's baseline is its first release's shape, growing by named features, as AST-140 FR5 says: false at this point, AST-140 FR5 now sets it after the canary channel (first fix).
- Non-goals keeps only the template's two standing lines, and each decision states its direction and reason: verified (spec.md:72-81, :394-455).
- Each library component's own layout against insets and the keyboard stays with that component's record: verified (spec.md:40-41).
- Open questions OQ1 to OQ4 stay unanswered with their options: verified (spec.md:457-477).
- Rubric: no narration, no research in the record, no change references, no rejected alternatives outside decisions, and four gap lines quoted exactly: verified (spec.md:156, :183, :303, :305).
- The record preserves equivalent internal implementations: verified (spec.md:74-75).
- The knowledge check and Prettier pass, and the diff has no whitespace errors: verified on this head.
- The pull request holds only a spec record, and its public text carries no internal context: verified.
- Files:
docs/specs/AST-129-react-native-layout-keyboard/spec.md: held for an engineering owner's decision; two blocking findings (FR14's baseline wording, the description's citing-record list) and five non-blocking notes.
|
|
||
| | Contract | Kind | Methods | Platforms | | ||
| | ---------------- | ----------------------------------- | -------------------------------------------------------------------------- | ------------ | | ||
| | `AstryxSafeArea` | native module (Turbo Native Module) | `getConstants` (`initialWindowMetrics`: the key window's insets and frame) | iOS, Android | |
There was a problem hiding this comment.
Miss (non-blocking): this row gives the module only getConstants with initialWindowMetrics, while FR4 has windowMetrics() read the native side on each call. Name the read windowMetrics() makes, so another host built from this contract has one.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on spec:AST-129, a new draft record whose FR1–FR17 and DEC-1 to DEC-6 no current record states (the safe area, the keyboard dock, the Android window status bar, selectable text, the engine's Intl requirement and fallbacks, and the group's core, baseline and public-API rules). An engineering owner approves or amends them as written at this head by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. No blocking defect remains, and the decision should also settle these two readings:
- OQ1: the AST-112 amendment this record relies on (#12563) keeps a native piece in the core only while an Astryx component or template uses it (its FR20 and DEC-16), and
SafeAreaView's only user is app API. - FR10 and FR12 let a caller cap selectable text with
maxFontSizeMultiplier, which has no stated default, or stop scaling withallowFontScaling={false}, whilespec:AST-082FR11 says text follows the platform's text-size setting.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record merges after the AST-112 amendment and AST-140 drafts and is not stacked — verified (both are open drafts; no Stack line).
- Claim: the record states FR1–FR17, the native contract tables, platform support and six decisions — verified (spec.md:85-305, 308-348, 394-453).
- Claim: AST-112 owns the result vocabulary, capability shape, additive evolution and app-root hosts and names safe-area insets in its core — verified on
main(FR1, FR6–FR9). - Claim: AST-082 and AST-093 settle nothing about insets, the dock, window status bars or selectable text — verified by search of both records.
- Claim: AST-140 owns the shared platform rules the record cites — verified (its FR2, FR3, FR5, FR6 and FR9 in #12594).
- Claim: no current record owns the React Native engine's
Intlset — verified (the internationalization record covers Core's paths). - Claim: AST-099 keeps the keyboard in browsers and is unchanged — verified (its Non-goals leave native keyboard avoidance out).
- Claim: the open records citing this one are the AST-112 amendment, AST-140, AST-128, AST-139 and NavigationStack, and AST-141 resolves the safe-area library to the project's own copy — verified at each draft's current head.
- Claim: the record relies on the amended AST-112 FR2 and FR5 for its dependency set — verified (spec.md:358-360).
- Claim: the safe-area compatibility entry, the optional peer and its open question are gone — verified (no such entry; OQ1–OQ4 only).
- Claim: each contract keeps AST-140 FR5's baseline and grows by named features — verified (spec.md:259-262, :361).
- Claim: Non-goals keeps only the template's two standing lines — verified (spec.md:74-81 match the system-spec template).
- Claim: the record has no pull request or issue references, and its four mismatches are written as FR gaps — verified (spec.md:156, :183, :302, :304).
- Claim: the knowledge check passes with no warning for this record, Prettier passes and the diff check is clean — verified by running each on this head.
- File
docs/specs/AST-129-react-native-layout-keyboard/spec.md: held for owner approval; non-blocking notes on FR10's missing default, the safe-area module row, the AST-112 FR7 and FR8 reliance, the platform-only prop wording, the "(amended)" markers and the FR16 range fallback.
| - Props: `isSelectable` (default `true`; `false` keeps the text visible | ||
| and readable by screen readers but not selectable, and links still report), `selectionColor`, `colorScheme` (iOS; the edit | ||
| menu and handles), `allowFontScaling` (default `true`), | ||
| `maxFontSizeMultiplier` (0 for no limit), `estimatedHeight`, `fallback`, |
There was a problem hiding this comment.
Miss (non-blocking): maxFontSizeMultiplier has no default here, while FR12 (line 232) caps text by it. A capped default would stop text following the system text size, which spec:AST-082 FR11 requires ("text follows the platform's text-size setting"). Write "default 0" beside "0 for no limit".
|
|
||
| ## Open questions | ||
|
|
||
| - **OQ1 — Does `SafeAreaView` stay in the platform's core when no Astryx |
There was a problem hiding this comment.
Miss (non-blocking): the AST-112 amendment this record relies on keeps a piece in the core only while an Astryx component or create template uses it (its FR20: "leaves it when none does") and ships "nothing else" (its DEC-16). AstryxSafeAreaView's only user is app API (line 65), and the Intent puts every piece in the core (lines 38-39). Name the component or template that renders SafeAreaView, or settle this question on its second option.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on spec:AST-129, a new draft record whose FR1–FR17 and DEC-1 to DEC-6 no current record states (the safe area, the keyboard dock, the Android window status bar, selectable text, the engine's Intl requirement and fallbacks, and the group's core, baseline and public-API rules). An engineering owner approves or amends them as written at this head by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. No blocking defect remains; the decision should also settle the first two points below, and the third is a small wording fix:
- OQ1: the AST-112 amendment this record relies on (#12563) keeps a native piece in the core only while an Astryx component or template uses it (its FR20 and DEC-16), and
SafeAreaView's only user is app API. - FR10 and FR12 let a caller cap selectable text with
maxFontSizeMultiplier, which has no stated default, or stop scaling withallowFontScaling={false}, whilespec:AST-082FR11 says text follows the platform's text-size setting. - Non-blocking: the safe-area row of "Who uses it" now names the screen header
TopNav, while the AST-128 (#12558) and NavigationStack (#12596) drafts call that React Native componentHeader; use one name across the series.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record merges after the AST-112 amendment and AST-140 drafts and is not stacked — verified (both are open drafts; no Stack line).
- Claim: the record states FR1–FR17, the native contract tables, platform support and six decisions — verified (spec.md:85-306, 308-348, 392-453).
- Claim: AST-112 owns the result vocabulary, capability shape, additive evolution and app-root hosts, and names safe-area insets in its core; Astryx measures its own insets under its amended FR2 — verified on
main(FR1, FR6–FR9) and in the amendment (FR2). - Claim: AST-082 and AST-093 settle nothing about insets, the dock, window status bars or selectable text — verified by search of both records.
- Claim: AST-140 owns the shared platform rules the record cites — verified (its FR2, FR3, FR5, FR6 and FR9 in #12594).
- Claim: no current record owns the React Native engine's
Intlset — verified (the internationalization record covers Core's paths). - Claim: AST-099 keeps the keyboard in browsers and is unchanged — verified (its Non-goals leave native keyboard avoidance out).
- Claim: the open records citing this one are the AST-112 amendment, AST-140, AST-128, AST-139 and NavigationStack, and projects resolve the safe-area library to their own copy — verified at each draft's current head.
- Claim: the record relies on the amended AST-112 FR2 and FR5 for its dependency set — verified (spec.md:358-360).
- Claim: the safe-area compatibility entry, the optional peer and its open question are gone — verified (no such entry; OQ1–OQ4 only).
- Claim: each contract keeps AST-140 FR5's baseline and grows by named features — verified (spec.md:259-262, :361).
- Claim: Non-goals keeps only the template's two standing lines — verified (spec.md:74-81 match the system-spec template).
- Claim: the "Who uses it" table in the description matches the record — verified (both name
TopNavin the safe-area row). - Claim: the record has no pull request or issue references, and its four mismatches are written as FR gaps — verified (spec.md:156, :183, :302, :304).
- Claim: the knowledge check passes with no warning for this record, Prettier passes and the diff check is clean — verified by running each on this head.
- File
docs/specs/AST-129-react-native-layout-keyboard/spec.md: held for owner approval; non-blocking notes on theTopNavname, FR10's missing default, the safe-area module row, the AST-112 FR7 and FR8 reliance, the platform-only prop wording, the "(amended)" markers and the FR16 range fallback.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on spec:AST-129, a new draft record whose FR1–FR17 and DEC-1 to DEC-6 no current record states; an engineering owner approves or amends them as written at this head by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. That decision should also settle how FR15's Intl requirement, SafeAreaView's place in the core (OQ1) and the selectable text's font-scaling opt-outs fit spec:AST-112 and spec:AST-082 FR11. Two fixes are needed whatever the decision:
- Regression: FR15, DEC-6 and the Intent make
Collator,DateTimeFormat,NumberFormatandgetCanonicalLocalesrequired with no fallback, whilespec:AST-112FR5 and DEC-10 onmainnow say every component renders and works on a runtime withoutIntl, so align FR15 and FR16 with the parent or amend DEC-10. - Current-state impact cites
spec:AST-140/DEC-9, which exists only in the open #13029 while the merge line names only the already-merged #12563 and #12594, so citespec:AST-112/DEC-15until #13029 lands or add #13029 to the merge order.
Non-blocking: the "(amended)" markers can go now that the amendment has merged, and the earlier wording notes on maxFontSizeMultiplier's default, the safe-area module row and the platform-only prop wording still apply.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record is not stacked and merges after the AST-112 amendment and AST-140 — partly false: both have merged, and the record now also needs the public-API decision that the open #13029 adds.
- Claim: the record states FR1–FR17, the native contract tables, platform support and six decisions — verified (spec.md:83-306, 308-348, 392-453).
- Claim: AST-112 owns the platform layer, the result vocabulary, the capability shape, additive evolution and the app-root hosts, and Astryx measures its own insets under its FR2 — verified on
main(FR2, FR6–FR9). - Claim: AST-112 names safe-area insets in the core but settles none of this group's behaviour — false since the runtime-boundaries change: its FR5 and DEC-10 now settle how components behave without
Intl. - Claim: AST-082 and AST-093 settle nothing about insets, the dock, window status bars or selectable text — verified by search of both records.
- Claim: AST-140 owns the shared platform rules the record cites — verified on
main(FR2, FR3, FR5, FR6, FR9). - Claim: no current record owns the React Native engine's
Intlset — verified (the internationalization record covers Core's paths); the draft parent now states a rule for it. - Claim: AST-099 keeps the keyboard in browsers and is unchanged — verified (its Non-goals leave native keyboard avoidance out).
- Claim: the open records citing this one are the AST-112 amendment, AST-140, AST-128, AST-139 and NavigationStack — stale: the amendment and AST-140 merged and AST-139 closed; AST-128 and NavigationStack still cite it.
- Claim: projects resolve the safe-area library's imports to their own copy — not checkable: the Preview draft that stated it closed unmerged.
- Claim: the record relies on the amended AST-112 FR2 and FR5 for its dependency set — verified (spec.md:358-360; FR2 on
main). - Claim: the safe-area compatibility entry, the optional peer and its open question are gone — verified (no such entry; OQ1–OQ4 only).
- Claim: each contract keeps AST-140 FR5's baseline and grows by named features — verified (spec.md:259-262, :361).
- Claim: Non-goals keeps only the template's two standing lines and each decision states its direction and reason — verified (spec.md:72-81, 392-453).
- Claim: the "Who uses it" table in the description matches the record — verified.
- Claim: the record has no pull request or issue references, and its four mismatches are written as FR gaps — verified (spec.md:156, :183, :302, :304).
- Claim: the knowledge check passes with no warning for this record, Prettier passes and the diff check is clean — verified with this head merged onto
main. - Claim: the public-API rule is cited from AST-140 FR9 and DEC-9, where the open #13029 moves AST-112 FR4's line — FR9 verified on
main; DEC-9 is not onmain(Current-state impact, spec.md:356). - File
docs/specs/AST-129-react-native-layout-keyboard/spec.md: held for owner approval; two required fixes (theIntlrequirement against the parent, the DEC-9 cite); non-blocking notes on the "(amended)" markers,maxFontSizeMultiplier's default, the safe-area module row, the platform-only prop wording and the FR16 range fallback.
| - **FR15 — The JavaScript engine meets a declared `Intl` requirement.** | ||
| `Intl` is a requirement on the JavaScript runtime. The package names each | ||
| `Intl` member it relies on and each member it guards, per platform: | ||
| - Required on iOS and Android: `Collator`, `DateTimeFormat` with |
There was a problem hiding this comment.
Regression: spec:AST-112 FR5 on main now says "Every component renders and works on a runtime without Intl" and its DEC-10 "It does not depend on Intl either", while this list makes these four members required with no fallback. Move them to the guarded list with an FR16 fallback each, or amend DEC-10 to state the requirement and cite it here; DEC-6 and the Intent (line 31) follow the same choice.
| the platform's core. | ||
| - Relies on `spec:AST-112` FR3 (amended): the core links in every app by | ||
| default. | ||
| - Relies on `spec:AST-140/FR9` and `spec:AST-140/DEC-9`: native code calls |
Not stacked. Merges after #12563 (AST-112) and #12594 (AST-140).
Exact decision needed
The observable contract of the React Native platform's layout, text and keyboard pieces: the safe-area provider, view and module (
AstryxSafeAreaProvider,AstryxSafeAreaView,AstryxSafeArea), the keyboard dock (AstryxKeyboardDock), the Android window status bar (AstryxWindowStatusBar) and the selectable text view (AstryxSelectableText), plus the JavaScript engine'sIntlrequirement and the library's fallback for each member the engine lacks: their JavaScript API, native contract, threading, fallbacks, accessibility, contract baseline and platform support. The record isspec:AST-129, a draft child ofspec:AST-112.Existing authority searched
spec:AST-112(React Native foundation), with its open amendment (spec(AST-112): React Native commands are one astryx rn group; package shape (Expo wrapper, default linking, named features) #12563) for core membership, default linking, the public-API rule, and the contract baseline with named features: owns the platform layer, the result vocabulary (FR6), the capability shape (FR7), additive evolution (FR8) andAstryxAppRoothosts (FR9). Astryx measures its own insets under its FR2. It names safe-area insets in the core but settles none of this group's behaviour; this record details it.spec:AST-082(native-first surfaces) andspec:AST-093(native component guidelines): platform conventions and evidence rules; nothing about insets, the keyboard dock, window status bars or selectable text.spec:AST-140(React Native platform code, spec(AST-140): React Native platform code #12594): owns the shared platform rules (missing piece, result vocabulary, additive evolution, threading, coexistence) that this record cites instead of restating.Intl, plural rules and relative time:spec:AST-111(calendar systems) and the DateInput, DateTimeInput and PowerSearch component records useIntlin browsers; none owns the React Native engine'sIntlset.spec:AST-099(on-screen keyboard): the keyboard in browsers. This record owns the native keyboard dock and leaves AST-099 unchanged.safe area,keyboard,status bar,selectable text,react native): the keyboard pull requests are web keyboard work under AST-099; open records that cite this one are thespec:AST-112amendment (spec(AST-112): React Native commands are one astryx rn group; package shape (Expo wrapper, default linking, named features) #12563),spec:AST-140(spec(AST-140): React Native platform code #12594),spec:AST-128(spec(AST-128): React Native platform: Menus and presentation #12558),spec:AST-139(spec(AST-139): React Native: Astryx Stage (experimental) (draft) #12579), and the NavigationStack record (spec(NavigationStack): React Native platform record #12596), which cites it as the owner of the safe area, the inset hooks and the keyboard dock. Projects resolve react-native-safe-area-context imports to their own copy of that library. No ownership collision.Decision
The record states the requirements FR1 to FR17 (FR17: native code follows the public-API rule), the native contract tables, platform support, and six decisions: the safe area keeps the ecosystem's names and meaning, measured by Astryx itself (DEC-1); insets apply during native layout (DEC-2); the dock moves its children natively and reports a change's start and end (DEC-3); a modal window owns its own status bar on Android (DEC-4); selectable prose is one native text view whose links go to the app (DEC-5); the engine's
Intlis a measured requirement with a library fallback per missing member (DEC-6).This revision also:
spec:AST-112FR2 and FR5 for that dependency set (Current-state impact).spec:AST-112/FR2,spec:AST-140/FR9). The open question about the optional peer is gone.spec:AST-140/FR5sets and grows by named features (FR14,spec:AST-140/FR5).Who uses it
AstryxSafeAreaProvider(SafeAreaProvider, hooks)AstryxAppRootmounts it around the tree. Through the library's shared insets (useInsets), fed by it:AppShell,TopNav,TabBar,Layout,InlineSheet,ChatLayout,ChatMessageList,KeyboardAccessoryView,VideoView, and the layer host that places toasts; through a snapshot of the window's insets:BottomSheet,Dialog,Drawer,Lightbox,CommandPalette; the Astryx router's stack and tab navigators and their header search field.AstryxSafeAreaView(SafeAreaView)SafeAreaView), for an app's own views.AstryxSafeAreainitialWindowMetrics; the platform status'ssafeArearow; the library's launch timing, which measures the module's first read.AstryxKeyboardDock(KeyboardDockView)KeyboardAccessoryView,ChatLayout,BottomSheet,CommandPalette; on Android, the library's shared keyboard frame, which keyboard-aware surfaces read.AstryxWindowStatusBarAstryxSelectableText(NativeSelectableTextView)MarkdownwithisSelectable.Intl./i18n,InternationalizationProvider):Calendar,DateInput,DateRangeInput,TimeInput,Timestamp,Timer,NumberInput,Slider,Stepper,ProgressBar,Pagination,TextArea(the count's plural words),Avatar(initials),DonutChart, and every other component that writes a number.Ecosystem comparison
The record keeps one conclusion per piece; this is the comparison behind them.
spec:AST-112/FR2,spec:AST-112/DEC-9); an app uses react-native-safe-area-context beside it. Astryx keeps the same names and meaning (DEC-1); OQ1 asks about scope.KeyboardAvoidingViewis simple and dependency-free.InputAccessoryViewrides the iOS keyboard natively, interactive dismissal included.KeyboardAvoidingViewmoves content from JavaScript keyboard events at the start and end of a change and cannot follow a drag.InputAccessoryViewis iOS-only and lives in the keyboard's window, outside the screen's layout and theme. The controller library adds a native dependency and its animated values reach layout through an animation library; the dock moves Astryx's own composer and transcript together with no JavaScript per frame.StatusBarsets the activity window's bar style and visibility from JavaScript.Modalis its own Dialog window, which copies the activity's bar look once when it opens; nothing written throughStatusBarreaches it afterwards. A drawn full-screen modal needs its own window's bar.Textwithselectablegives the system's selection on oneTextelement.Textto the next, so a heading and the paragraph under it cannot be copied as one piece.Textreports no selection, takes no programmatic selection, and gives a screen reader one element for the whole run.Intl(engine requirement)Intlwith collation, date and number formatting. FormatJS's polyfills fill the members an engine lacks and are thorough.Rejected alternatives
Each decision in the record states its chosen direction and its reason.
Claim scope and non-goals
The record governs the six native pieces, their JavaScript wrappers, and the
Intlengine requirement with its fallbacks; its Non-goals section keeps only the template's two standing lines. The keyboard in browsers stays with AST-099, and each library component's own record states its layout against insets and the keyboard (Intent). Component APIs that use these pieces (KeyboardAccessoryView,ChatLayout,ChatMessageList,BottomSheet, the router's stack options) are named in "Who uses it". Open questions: OQ1 (doesSafeAreaViewstay in the core), OQ2 (is the dock's scroll-view link public), OQ3 (a public window status bar for an app's ownModal), OQ4 (is hiding the keyboard by dragging the linked list down a dock behaviour).Evidence and implementation relationship
The implementation lives in the React Native package's platform layer (codegen specs, iOS and Android native code, JavaScript wrappers,
./testingdoubles). No public evidence links; the record stays valid without them.Writing rubric results
./testingdoubles, Simulator, emulator, device, UI-thread frame checks).#with digits,/pull/,/issues/).isKeyboardDockAvailable()answers false on Android binaries that register the dock."; "FR8 gap: on Android the linked scroll view keeps its place in the layout and moves at a change's start and end."; "FR16 gap: evaluating the library's root or./i18nentry installs the library's plural rules asIntl.PluralRuleswhere the engine has none."; "FR16 gap: the package depends on a FormatJS package for CLDR plural data.". The check printed no project-status warning for this record.Scope
Components: AstryxSafeAreaProvider, AstryxSafeAreaView, AstryxSafeArea, AstryxKeyboardDock, AstryxWindowStatusBar, AstryxSelectableText, the
Intlengine requirement (React Native platform layer and library internationalization helpers)Validation
pnpm check:knowledge(node scripts/check-knowledge.mjs, run on a Linux checkout of main with this record): exit 0, "Knowledge templates and records are aligned."; no warning names this record.--checkpasses for the record.git diff --check origin/main: clean.pnpm specs:for --diff origin/mainwas not run: no dependency install.Follow-up: claims moved from
spec:AST-112Cites
spec:AST-140FR9 and DEC-9 for public platform API, where #13029 movesspec:AST-112FR4's public-API line.