Repository navigation
experimental theme editor how: "even rows transparent" takes that stripe away - #13210
Conversation
|
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): "even rows transparent" takes that stripe away. |
|
/approve-spec 3b28b29 |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: CI's typecheck and Node test suites have not run on this head yet.
"even rows transparent" and "odd rows transparent" now get the same clearing command and note as "no stripes on even rows", the four new test rows fail before this change and pass with it, and an engineering owner approved this reading for this head.
Optional follow-ups, not blocking:
- "transparent stripes" and "zebra stripes transparent" still turn stripes on, as they did before this change; a no-color "transparent" zebra ask could clear Core's stripe instead.
- "even rows transparent on hover" (and "… when selected") now clears the even stripe at rest, because the stripe answer drops the state, as it already does for "no stripes on even rows on hover".
Claims and files checked
Review mode: full; reason: no-earlier-review
- Title and release note: "even rows transparent" and "odd rows transparent" clear that row stripe, as "no stripes on even rows" does. Verified:
theme-how.test.mjs:4873-4901, and the answers match the "no stripes" asks command for command and word for word. - Release note: an
[experimental]patch for the CLI that names the command. Verified:.changeset/experimental-theme-how-stripe-transparent.md:2,:5. - Release note and description: before, these asks got no command. Verified: the four new rows fail on the base, which answers with a hint only.
- Description: the stripe answer needed a color, and "transparent" is not one it reads. Verified:
_how-question.mjs:26738; the base branch required a color. - Description: a stripe ask that says transparent and types no other color takes that stripe away. Verified for asks that name one stripe (
_how-question.mjs:26745-26747); "transparent stripes" answers as before (follow-up above). - Description: "make the even rows transparent" gets the even-row clear with the same hover note. Verified: identical answer text.
- Description: a mode the ask names reaches the step. Verified: "in dark mode" adds
--mode dark. - Description: "no stripes on even rows" and stripe asks with a color, such as "odd rows #f9f9f9", are unchanged. Verified: identical answers before and after.
- Description: only the experimental
howcommand changes, not the stable CLI. Verified:_how.mjs:57is the only importer of the changed function. - Description: public text carries no internal context. Verified in the added lines, title, body, branch name and commit message.
- Description: the test file checks the four asks for their top command. Verified:
theme-how.test.mjs:4873-4901. - Description: the editor and command suites and the type gate pass. Partly verified: all 655 tests in
theme-how.test.mjspass and the CLI's strict typecheck reports nothing in the changed files; the other suites did not run here, and CI's heavy suites have not run on this head. - Description: the author's replay and preflight reports. Not reproducible here; a before-and-after run of 54 asks changed only no-color "transparent" asks on one row parity.
- File
.changeset/experimental-theme-how-stripe-transparent.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: the two follow-ups above, not blocking. - File
packages/cli/api/theme-edit/theme-how.test.mjs: clear.
| // ("even rows transparent" takes that stripe away, as "no stripes | ||
| // on even rows" does.) | ||
| const clears = | ||
| c.neg || (!value && /\btransparent\b/.test(noMode(c.text))); |
There was a problem hiding this comment.
Non-blocking: this reads "transparent" anywhere in the clause, and the branch below drops the clause's state, so "even rows transparent on hover" (or "… when selected") now writes background-color transparent --on table-row --when parity:even with no --state and removes the stripe at rest. The base already does this for "no stripes on even rows on hover"; passing the state into the step, or answering with no command when the clause names a state, would keep a hover ask from clearing the stripe everywhere.
3b28b29 to
9472b00
Compare
|
Covers the theme-editor reading this pull request records (the owner's ruling): "even rows transparent" takes that stripe away. |
|
/approve-spec 9472b00 |
|
Reverted on the theme editor working branch: it was held there on an open review finding past the deadline. Please re-open it as one pull request against main with the fix folded in. |
astryx experimental theme editor howanswered "even rows transparent" and "odd rows transparent" with no command: the stripe answer read a color for the row, and "transparent" is not one it reads. Now a stripe ask that says transparent, and types no other color, takes that stripe away, as "no stripes on even rows" already does.What changes
background-color transparent --on table-row --when parity:even, with the same hover note "no stripes on even rows" gives.parity:odd.--mode dark).… --when parity:even --state striped.Scope
Experimental:
astryx experimental theme editor howonly.Testing
theme-how.test.mjs: the five asks above, each checked for its top command.CI=1; the type gate.replay: worse 0 at 9472b00
preflight: pass 9472b00 (review deferred to batch: subagent cap)