Repository navigation
experimental theme editor how: the stripes' names match in their own forms and with the table named - #13211
Conversation
…forms and with the table named
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
Covers the theme-editor reading this pull request records (the owner's ruling): the stripes' names match in their own forms and with the table named ("striped rows", "the table's stripes"). |
|
/approve-spec eebecc4 |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The heavy suites run once this review passes, so nothing more is needed from you.
An engineering owner's /approve-spec for this head decides both new readings of how. The five asks the description lists now get the stripe line, and the asks it lists as unchanged answer exactly as before.
Non-blocking:
packages/cli/api/theme-edit/_how-question.mjs:4999: for a stripe name that is one common word, the new pattern needs a space before that word, so it no longer matches at the start of an ask ("rows light gray");[...bare.slice(0, -1), named + bare.at(-1)].join('s?\\s+')builds the same pattern for "every other row" and fixes that case (Table's doc has no such name today).
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: the stripe names from Table's
isStripeddoc match in their own forms and with the table named. Verified (_how-question.mjs:4971-4999). - Changeset: "alternating row colors", "alternately shaded rows" and "shade every other table row" stripe the even rows. Verified: the new tests pass on the head and fail on the base.
- Changeset: "every other table row light gray" colours the stripe instead of every row. Verified: its test passes on the head; the base wrote a fill on every row.
- Description: on the base, "alternate" matched only as that word and "every other row" only as that phrase. Verified from the base matcher.
- Description: "alternating row colors", "alternating rows" and "shade every other table row" got only a lookup on the base. Verified: no
setline on the base. - Description: the forms match (alternates, alternated, alternating, alternately; stripe, striped, striping), never "strip" or "alternative". Verified by the built pattern and the two guard tests.
- Description: a phrase of common words may name the component before its last word. Verified for Table ("every other table row").
- Description: the names still come only from the doc, with no phrase list. Verified: every pattern is built from the
parityprop's doc. - Description: the four asks give the even stripe and "every other table row light gray" gives the stripe colour, as the asks without "table" already did. Verified on the head merged onto
main. - Description: "shade every other row", "alternate row shading", "every other row light gray" and "alternate table row text color red" are unchanged. Verified: identical answers on the base and the head.
- Description: experimental only, with no change to the stable CLI. Verified: the changed module is reached only from the experimental theme command.
- Description: public text and artifacts contain no internal context. Verified.
- Description: the five asks fail on
main; the "strip" and "alternatively" cases hold. Verified: 5 fail on the base with the head's tests; all 658 pass on the head and on the head merged ontomain. - Description: the editor and command suites and the type gate pass. Partly verified: the how suite passes and CI's typecheck passed at this head.
- Description: the replay and preflight results. Not verifiable here: they are the author's own runs.
.changeset/experimental-theme-how-stripe-name-forms.md: clear (an[experimental]patch for@astryxdesign/cli).packages/cli/api/theme-edit/_how-question.mjs: one non-blocking note (line 4999).packages/cli/api/theme-edit/theme-how.test.mjs: clear; the "strip" guard compares two real answers, not two empty ones.
| ? new RegExp(`\\b(?:${own.map(forms).join('|')})\\b`) | ||
| : new RegExp( | ||
| `\\b${words.map(w => w.replace(/s$/, '')).join('s?\\s+')}s?\\b`, | ||
| `\\b${bare.slice(0, -1).join('s?\\s+')}s?\\s+${named}${bare.at(-1)}s?\\b`, |
There was a problem hiding this comment.
Non-blocking: when a stripe name is a single common word, bare.slice(0, -1) is empty and this builds \bs?\s+(?:table\s+)?rows?\b, which needs a space before the word, so an ask that starts with it ("rows light gray") stops matching; the base's \brows?\b matched. Joining the component into the last word keeps "every other row" identical and covers that case:
`\\b${[...bare.slice(0, -1), named + bare.at(-1)].join('s?\\s+')}s?\\b`Table's doc has no such name today.
|
Landed on main in #13226. |
- #13211 experimental theme editor how: the stripes' names match in their own forms and with the table named - #13176 fix(cli): experimental theme editor - "the page: …" is the page - #13208 fix(cli): experimental theme editor - a gentle dark mode is no page color - #12730 experimental theme set: a theme made one-mode says where the page color shows, once - #13222 fix(cli): experimental theme editor - "bold system type" names no part - #13223 fix(cli): experimental theme editor - a name in capitals that no part has is no subject - #12701 fix(cli): how writes the color of a bold run said for a part's text, and the top bar's links take their looks on its nav items
astryx experimental theme editor howread the stripes' names from Table'sisStripeddoc too literally: "alternate" matched only as that exact word, and "every other row" only as that phrase (plurals aside). So "alternating row colors", "alternating rows" and "shade every other table row" got only a lookup, and "every other table row light gray" colored every row. A name's own words now match in their own forms ("alternate" as alternates, alternated, alternating, alternately; "stripes" as stripe, striped, striping), never another word that starts the same ("strip", "alternative"), and a phrase made of common words may name the component before its last word ("every other table row"). The names still come only from the doc; there is no phrase list.What changes
background-color 'var(--color-background-muted)' --on table-row --when parity:even), as "shade every other row" already did.--color-background-muted '#e5e7eb' --on table-row --mode light), as "every other row light gray" already did, instead of a fill on every row.Scope
Experimental:
astryx experimental theme editor howonly.Testing
theme-how.test.mjs: the five asks above, each checked for its top command (they fail on main); "strip the background from table rows" answers as "remove the background from table rows" does, and "alternatively make the table rows light gray" writes no stripe.CI=1; the type gate.replay: worse 0 at eebecc4
preflight: pass eebecc4 (review deferred to batch: subagent cap)