Repository navigation
fix(cli): astryx component Flex names Stack first - #12260
josephfarina wants to merge 4 commits into
Conversation
Stack's search card lists `Flex`, the name Chakra UI and Mantine use for a row or column of children, so a lookup for it suggests Stack before Layout.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Changes requested: the Flex synonym does what the title says, but the measurement the result-order spec requires for this reorder is not in the description yet.
- Add the held-out and fresh failed-lookup evaluation results (main against this head, with paired 95% intervals) to the description, because
spec:AST-083FR7 lets theastryx componentsuggestion order change only under that measurement, and the current note defers it and names only the held-out, fresh and synthetic search sets.
Everything else checked out: with this change on main, astryx component Flex in any case lists Stack then Layout with the same reasons and exit code, the description's 313 tests pass, and astryx search gives identical answers across 2,571 replayed queries, so the search sets should show no change.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset,
astryx component Flexnames Stack first: verified with this change on main. - Changeset, Stack's search card lists
Flex: verified (packages/cli/api/search/_cards.json:3577). - Changeset, Chakra UI and Mantine call this part
Flex: public library naming, not checkable in this repository. - Changeset, the missed lookup suggests Stack before Layout: verified.
- Description, before and after table for
Flexandflex: verified on main and with this change. - Description, Stack is the row-or-column part and Layout the page frame: verified against both components' docs.
- Description, no card names the bare word, so Layout leads on other signals: verified; both docs declare the keyword
flex, and Layout lists it earlier. - Description, three synonyms in the card's existing library-name form: verified.
- Description, the quoted lines from the search ordering notes and the CLI conventions: verified.
- Description, one data change with no code, weight, option or JSON field change: verified.
- Description,
astryx search flexandastryx search "flex row"are unchanged: verified, with 2,569 other queries. - Description, the search-order measurement is added before review: not present (the item above).
- Description, no new public API, default or internal context: verified.
- Description, 17 test files and 313 tests pass: verified on this head and on its merge with main.
.changeset/stack-card-flex-synonym.md: clear.packages/cli/api/search/_cards.json: the measurement item above.
There was a problem hiding this comment.
Changes requested: the failed-lookup replay now in the description settles the astryx component Flex reorder, but the search half of the measurement is still incomplete.
- Add the synthetic and cold-start set results to the Search replay section and replace the Evidence bullet that still says the held-out, fresh and synthetic measurement is "added here before review", because
spec:AST-083FR6 lets the search-order change the description reports ship only when all four sets show no row worse.
Everything else checked out: with this change on current main only Flex, flex and FLEX change across 5,947 replayed lookup names, 2,565 search queries and 30 build ideas give identical answers, and the description's 313 tests pass.
Claims and files checked
Review mode: incremental; reason: none
- Changeset,
astryx component Flexnames Stack first: verified with this change on current main. - Changeset, Stack's search card lists
Flex: verified (packages/cli/api/search/_cards.json:3577). - Changeset, Chakra UI and Mantine call this part
Flex: public library naming, not checkable in this repository. - Changeset, the missed lookup suggests Stack before Layout: verified.
- Description, before and after table for
Flexandflex: verified. - Description, Stack is the row-or-column part and Layout the page frame: verified against both components' docs.
- Description, no card names the bare word, so Layout leads on other signals: verified; both docs declare the keyword
flex, and Layout lists it earlier. - Description, three synonyms in the card's existing library-name form, and the quoted lines from the search ordering notes and the CLI conventions: verified.
- Description, one data change with no code, weight, option or JSON field change: verified.
- Description,
astryx search flexandastryx search "flex row"are unchanged: verified, with 2,563 other queries. - Description, the search-order measurement on the held-out, fresh and synthetic sets is added before review: not supported for the synthetic set (the item above).
- Search replay, a handful of real search requests change and none got worse, fresh requests unchanged: those request sets are not in this repository; consistent with no change across 2,565 card-derived queries.
- Search replay, among lookups only
component Flexandcomponent flexchange: verified across 5,947 names (FLEX, the same name in another case, changes too). - Search replay, docs forms and
astryx buildunchanged: verified; docs lookups never read the search cards, and 30 build ideas give identical answers. - Description, no new public API, default or internal context: verified.
- Description, 17 test files and 313 tests pass: verified with this change on current main.
.changeset/stack-card-flex-synonym.md: clear.packages/cli/api/search/_cards.json: the measurement item above.
There was a problem hiding this comment.
Changes requested: the new synthetic and held-out results close most of the earlier measurement gap, but the cold-start result the result-order spec requires is still missing, and one Evidence line misdescribes the search ordering notes.
- Add the cold-start evaluation set result (main against this head) to the Search replay section, because
spec:AST-083FR6 defines that set as catalog items hidden from fitting, ranked from their own docs, while the current "Cold start" bullet compares a fresh home folder with a warm one. - Reword the Evidence bullet that says the measurement covers "all four sets
ORDERING.mdnames for a card change", becausepackages/cli/api/search/ORDERING.mdline 31 names three sets (held-out, fresh and synthetic), lists no real-replay set, and FR6's fourth set is cold-start.
The Flex lookup itself does what the title says: Stack now comes first in any case, the error keeps its two entries and reasons, and the description's 313 tests pass on this head.
Claims and files checked
Review mode: incremental; reason: none
- Changeset,
astryx component Flexnames Stack first: verified on the base and head trees. - Changeset, Stack's search card lists
Flex: verified (packages/cli/api/search/_cards.json:3577). - Changeset, Chakra UI and Mantine call this part
Flex: public library naming, not checkable in this repository. - Changeset, the missed lookup suggests Stack before Layout: verified.
- Description, before and after table for
Flexandflex: verified on the base and head trees. - Description, Stack is the row-or-column part and Layout the page frame: verified against both components' docs.
- Description, no card names the bare word, so Layout leads on other signals: verified; both docs declare the keyword
flex, and Layout lists it earlier. - Description, three synonyms in the card's existing library-name form, and the quoted lines from the search ordering notes and the CLI conventions: verified.
- Description, one data change with no code, weight, option or JSON field change: verified.
- Description,
astryx search flexandastryx search "flex row"are unchanged: verified, with six more queries. - Description, the measurement covers all four sets the search ordering notes name: false (the second item above).
- Search replay, a handful of real search requests change and none got worse, fresh requests unchanged: those request sets are not in this repository; consistent with unchanged card-derived queries.
- Search replay, among lookups only
component Flexandcomponent flexchange: verified (FLEX, the same name in another case, changes too). - Search replay, the synthetic set keeps every first answer and the held-out set is no worse: reported; those sets are not in this repository.
- Search replay, cold start: reports a fresh-versus-warm home folder check, not the spec's cold-start set (the first item above).
- Search replay, docs forms and
astryx buildunchanged: verified; docs lookups never read the search cards, and replayed build ideas give identical answers. - Scope, no new public API, default or internal context: verified.
- Testing, 17 test files and 313 tests pass: verified on this head.
.changeset/stack-card-flex-synonym.md: clear.packages/cli/api/search/_cards.json: clear; the items above concern the description.
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet.
The description now reports the cold-start evaluation set and names the four sets the result-order spec requires, so both earlier points are resolved. The Flex lookup puts Stack first in any case with the same two suggestions and reasons, search answers are unchanged, and the description's 313 tests pass on this head.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Changeset,
astryx component Flexnames Stack first: verified on the base and head trees and on the merge with currentmain. - Changeset, Stack's search card lists
Flex: verified (packages/cli/api/search/_cards.json:3577). - Changeset, Chakra UI and Mantine call this part
Flex: public library naming, outside this repository. - Changeset, the missed lookup suggests Stack before Layout: verified.
- Description, before and after table for
Flexandflex: verified (FLEXchanges the same way). - Description, Stack is the row-or-column part and Layout the page frame: verified against both components' docs.
- Description, a missed lookup orders suggestions with card synonyms, no card held the bare word, and Layout led on other signals: verified (
packages/cli/foundation/text/suggest-order.mjs:752-762). - Description, three synonyms in the card's existing library-name form: verified.
- Description, the quoted lines from the search ordering notes and the CLI conventions: verified (
packages/cli/api/search/ORDERING.md:18,docs/contributing/cli-conventions.md:18). - Description, one data change with no code, weight, option or JSON field change: verified.
- Description,
--json component Flexsuggests Layout then Stack before and Stack then Layout after: verified. - Description,
astryx search flexandastryx search "flex row"are unchanged: verified, with six more queries. - Description, the measurement covers the four sets the result-order spec names plus the search replay, with no row worse: the four names match the spec; the results are reported, and the sets are not in this repository.
- Search replay, real and fresh requests, synthetic, held-out and cold-start sets: reported; the cold-start set matches the spec's definition (items without their per-item search data, ranked from their own names and docs).
- Search replay, among lookups only
component Flexchanges: verified for the names checked here, including other cases of the same name. - Search replay, a fresh home folder gives the same answers: consistent with the static, local order the spec requires.
- Search replay, docs forms and
astryx buildunchanged: docs lookups never read the search cards; build answers carried from the earlier run on the same code. - Scope, one defect, no tag-along, no new public API or default, no internal context: verified.
- Testing, 17 test files and 313 tests pass: verified on this head.
.changeset/stack-card-flex-synonym.md: clear.packages/cli/api/search/_cards.json: clear.
- #12680 perf(cli): a template's component line resolves its names in one pass, not one full lookup per name Author: Joey <[email protected]> - #12180 fix(core): Calendar weekday names widen their column instead of overlapping Author: Joey <[email protected]> - #12159 feat(cli): make an icon set inside your own app Author: Joey Farina <[email protected]> - #12383 fix(Grid): a responsive column shrinks to a container narrower than minWidth Author: Joey Farina <[email protected]> - #12374 [fix] Icon: a glyph given as name renders and warns, instead of crashing Author: Joey Farina <[email protected]> - #12453 fix(charts): line, area and band default to straight segments Author: josephfarina <[email protected]> - #12296 fix(core): a neutral Badge in a primary or destructive Button meets 4.5:1 on its fill Author: Joey Farina <[email protected]> - #12395 fix(CodeBlock): without a code string, CodeBlock names the prop and the fix in development Author: Joey Farina <[email protected]> - #12260 fix(cli): `astryx component Flex` names Stack first Author: Joey Farina <[email protected]> - #12391 fix(core): a two-lane Toolbar wraps instead of squeezing its start lane Author: Joey Farina <[email protected]> - #12427 fix(core): checkbox and radio marks keep their share of the box a theme sizes Author: josephfarina <[email protected]> - #12725 [experimental] cli: with no icon set, experimental icon names the discover search where it lists packs Author: Joey Farina <[email protected]>
|
Landed in #12738. |
User impact
Flexis the name Chakra UI, Mantine and other libraries give the part that lays children out in a row or a column. An agent or a person who asks Astryx for it gets the wrong first suggestion:astryx component FlexLayout(the page frame)Stackastryx component flexLayoutStackStack(withHStackandVStack) is the Astryx part for a row or a column of children.Layoutis the page frame, a different job.Problem and solution fit
flex row,flex columnanddiv with display flex, but not the bare nameFlex, so no card claims the exact word andLayoutcomes first on other signals.Flex,Chakra FlexandMantine Flexto Stack's card synonyms, in the same form the card already uses for other libraries' names (Ant Space).Expected behavior and authority
packages/cli/api/search/ORDERING.md: a card holds "the words people use for it"; the card's synonyms are reviewed data.docs/contributing/cli-conventions.md: an error gives "a suggestion it can act on".Smallest restoration
One data change: three synonyms on one card. No code, weight, option or JSON field changes.
Evidence
astryx --json component FlexsuggestsLayout, thenStack.Stack, thenLayout.astryx search flexandastryx search "flex row"return the same results in the same order.spec:AST-083FR6 names (held-out, fresh, synthetic and cold-start), plus the search replay set: no row is worse; details under Search replay.Scope
Components: CLI search cards (Stack)
Testing
Search replay
astryx component Flex(andcomponent flex) changes: Stack now comes first, then Layout. Every other lookup name replays identically.astryx build: unchanged.