Repository navigation
spec(AST-082): open string sets, portable projections, and typed slot forms - #8070
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
The exact-head preview is not available yet. Generated by PR Enrichment workflow | View current CI run |
|
/approve-spec 88ebb37 |
There was a problem hiding this comment.
Changes requested: the new FR4 forms are owner-approved, but the unknown-icon sentence and “the core form is what every platform accepts” carry no platform qualifier, so they bind the web, which the record's own Non-goals and FR14 rule out (today Icon renders nothing for an unresolved name with no development stop, and Badge renders a string icon as text). Please scope the unknown-name sentence to native platforms, and add to FR14 that making an existing web prop an icon slot, where the web renders a string as text today, ships only in a planned minor under spec:AST-017.
[Automated review]
| slot is a string. An **icon** slot is a shared icon name (FR17), which each | ||
| platform resolves the way FR17 says; in a development build an unknown name | ||
| stops with a message that names the icon, and in a release build it draws | ||
| nothing. A **content** slot holds named Astryx components. A platform |
There was a problem hiding this comment.
This sentence has no platform qualifier, and FR3 makes the core contract the same on every platform, so it binds the web too: today Icon renders nothing for an unresolved name with no development stop, and Badge renders a string icon as text. That is a web behavior change the Non-goals rule out. Suggest scoping it (“on a native platform, a development build stops …”) and adding to FR14 that making an existing web prop an icon slot ships only in a planned minor under spec:AST-017, as FR7 and FR8 removals do.
…web text props wait for a minor
88ebb37 to
8a88a99
Compare
|
/approve-spec 8a88a99 |
There was a problem hiding this comment.
Requesting one change: the amended spec:AST-082 FR4, the new FR14 sentence and DEC-12 are owner-approved at this head, but the FR14 verification row does not test the new FR14 sentence. Its failure expectation still fires only when a web prop disappears outside a planned minor, so making an existing web prop that renders a string as text an icon slot in a patch would pass; please add that state and failure to the FR14 row. A new commit voids the current approval, so an engineering owner, the author included, then re-approves by commenting /approve-spec <full head SHA>.
[Automated review]
| | FR11 | FR12 experience scores per scenario step, oldest and newest supported OS | navigation, sheet, menu, picker, switch, text entry, scrolling, keyboard shortcut, large text; a capability newer than the running OS | A step draws a custom control where the platform provides one, misses the touch-target minimum, ignores the text-size setting, or breaks on the oldest supported OS | | ||
| | FR12 | Scenario replay on candidates and reference, on real release builds and devices | each scenario on each candidate and the toolkit reference; oldest and newest supported OS; a lower-end device per platform | A candidate is scored without the reference, on a debug build, on emulation only, on one OS version, or on a different scenario set, or a visual score is given without device captures | | ||
| | FR13 | Dependency manifest audit of each native platform package | platform SDK; first-party project; a React Native out-of-tree desktop platform; third-party optional integration; third-party fork | A third-party library or fork is required to install, build, or render on the platform | | ||
| | FR14 | Compiler and render output comparison, core dependency graph check, and a web type surface diff | each maintained theme with and without the native package installed; runtime-mounted and built CSS; components; web types before and after | Any byte of CSS, mounted rules, or rendered web markup differs, core depends on native, or a web prop disappears outside a planned minor | |
There was a problem hiding this comment.
This row still fails only when a web prop disappears outside a planned minor, so it does not test the new FR14 sentence (lines 279–281): converting, say, Badge icon into an icon slot in a patch keeps the prop and can keep its ReactNode type. Suggest adding the state "an existing web prop that renders a string as text, made an icon slot" and the failure "or such a prop becomes an icon slot outside a planned minor".
|
/approve-spec a95e13d |
There was a problem hiding this comment.
Recommending approval: the amended spec:AST-082 FR4 (open string sets, the Button width projection and typed slot forms), the new FR14 sentence and DEC-12 are approved by an engineering owner for this exact revision, and the FR14 verification row now fails an icon-slot conversion that ships outside a planned minor. Nothing else needs to change; a new commit would void the approval, so an engineering owner, the author included, would then re-approve by commenting /approve-spec <full head SHA>.
[Automated review]
Exact decision needed
Three portable forms the core contract lacks, so native apps can use a theme's own variants, a full-width button, and icon and content slots: (1) open string sets, (2) a portable projection of a wider web type, and (3) the exact form of text, icon, and content slots, with a platform contract allowed to accept a wider form for the same slot.
Existing authority searched
spec:AST-082(current) FR4 lists closed string sets only and names typed slots without their forms; FR17 defines shared icon names; FR14 keeps web output unchanged.spec:AST-024(current) andspec:AST-087(current, FR3–FR4): web augmentable maps (Heading type, icon variants) and unlisted-name behavior on the web.Decision
width:content(default) orfill(web'100%'). Other web values stay web-only. DEC-12.Rejected alternatives
Claim scope and non-goals
Covers the three forms above. Not covered: booleans with named states (a separate amendment), which props adopt each form beyond the examples, and native library APIs, which platform specs define. No web type or output changes (FR14).
Evidence and implementation relationship
No implementation in this PR. The web side already works this way: the theme build augments the maps, and an augmented name with no built-in style renders without variant styling. Native library specs for slots and augmentable variants build on these claims.
Writing rubric results
Rejected:line inside DEC-12.#+digits,/pull/,/issues/).Scope
Validation
pnpm check:knowledge: alignedgit diff --check: clean