Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
Split from AST-087 so the icon-variant decision can land on its own. Co-authored-by: imdreamrunner <[email protected]>
7f0cbca to
c15fe1b
Compare
There was a problem hiding this comment.
Approval of this draft waits on an engineering owner's decision on spec:AST-088 FR1–FR3 and DEC-1: whether component-owned icon boxes follow the theme's Icon size dimension and whether Astryx default glyphs render through Icon, which no current spec settles (spec:AST-087 lists both as non-goals). Any engineering owner, the author included, records that decision by commenting /approve-spec <full head SHA> on this pull request. Separately, the record needs two fixes:
- If FR3 stays, Current-state impact should name
component:MoreMenu(its OQ1 and its trigger-glyph disposition) and ChatSendButton, whose default glyphs FR3 moves ontoIcon, and say that themes styling theicontarget start reaching them. - FR1 cites
family:buttonsFR7 for touch targets, but FR7 covers only control height and outer size; citearchitecture:icon-resolution-and-component-slotsINV8 orspec:AST-087FR14 instead.
[Automated review]
| Control height and touch targets remain set by the component (`family:buttons` | ||
| FR7). |
There was a problem hiding this comment.
family:buttons FR7 covers control height and outer dimensions but never mentions touch targets. The current touch-target guarantee is architecture:icon-resolution-and-component-slots INV8 (“A slot size never changes the control's height, touch target, or outer dimensions”) or spec:AST-087 FR14; cite one of those, or narrow this parenthetical to control height.
| A theme without icon size styles renders the same boxes. When this ships: | ||
|
|
||
| - `family:buttons` — FR7's owned icon slot sizes its box with the theme | ||
| dimension (FR1, FR2). | ||
| - `architecture:component-theming-surface` — component-owned icon boxes follow | ||
| the Icon target's size dimension (FR1). | ||
| - Consumer `Icon` and `Button` docs describe how icon boxes follow theme sizes. |
There was a problem hiding this comment.
FR3 also changes component:MoreMenu, which is current: its default trigger glyph reaches Button as a raw useIcon('moreHorizontal') node, its record says the glyph “does not carry Icon's icon target”, and its OQ1 asks whether it should. ChatSendButton does the same for stop and arrowUp. Please list both here and say that themes styling the icon target start reaching these glyphs; the sentence above covers boxes only.
Exact decision needed
Whether boxes that Astryx components reserve for icons, such as the Button family's icon slot, follow the active theme's icon size dimension, and whether Astryx components render the default glyphs they supply through
Icon.New draft record:
spec:AST-088. It stays draft until an owner decides it. It is separate from #7847 (spec:AST-087) because it goes beyond the icon-variant decision: it changes family geometry ownership.Existing authority searched
family:buttons(current) FR7: owns the icon slot default size and outer-dimension guarantees. This record would make the owned icon box follow the theme dimension while FR7 keeps control height and outer size.component:Icon(current): FR3 applies the resolved size as width and height; spec(AST-087): icon variants, theme sizes, and componentIcons state resolvers #7847 adds a guarantee that a theme sets those through the Icon target.architecture:component-theming-surface(current): owned boxes are not targets today.spec:AST-087) originally contained these requirements as FR8–FR9; they move here unchanged in meaning.Decision
Icon, so theme dimension, color, and variant reach them.Rejected alternatives
Claim scope and non-goals
Out of scope: how a theme sets the dimension (Icon target, #7847), new sizes, caller-supplied icon components. Open: OQ1 whether boxes should follow at all; OQ2 which size relationships a theme keeps.
Evidence and implementation relationship
Requirement text authored by @imdreamrunner in #7847 (FR8–FR9 there); credited as co-author. No implementation PR exists.
Writing rubric results
Rejected:line inside DEC-1.Scope
Validation
node scripts/check-knowledge.mjs: "Knowledge templates and records are aligned."--writeon the record.git diff --check: clean.