Repository navigation
experimental theme editor how: "zebra rows taller" is the rows' size, with no stripe (#12971 on main) - #13409
josephfarina wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
|
/approve-spec ffcc86b |
There was a problem hiding this comment.
Changes requested: "with" never keeps the zebra stripe, though the description says it does.
clausesOfends a clause at every "with" (packages/cli/api/theme-edit/_how-question.mjs:3291), so the verb test at_how-question.mjs:11104never sees it, and "a table with taller zebra rows" now loses the even-row stripe thatmaindrafts; either read the clause'sjointfor "with" and add a test row, or drop "with" from the regex and the description and name the verbs in the release note.- The description says this pull request has the same changeset as #12971, but this head rewrote the release note; edit the description to say only the code matches (no new commit needed).
The engineering owner's /approve-spec on this head settles the reading of "zebra", but it covers only this head: the commit that fixes the first point needs a new /approve-spec <full head SHA> from an engineering owner, which the author can give as one. Non-blocking, Miss: "zebra rows taller and zebra rows bold" still keeps the stripe while "zebra rows taller and bold" drops it.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Title: "zebra rows taller" answers only the rows' size, with no stripe. Verified: the new test row passes, and the base drafts the stripe for it.
- Description: the fix of #12971 lands on
mainon its own with the same code and its test rows in their own block. Verified: the source change matches #12971's, and the tests add only the separate block. - Description: the same changeset as #12971. False at this head (finding above).
- Description: this head changes only the release note text, and the code matches the previous head. Verified.
- Description: before, "zebra rows taller", "zebra rows bold" and "compact zebra rows" also striped every data-driven table. Verified on the base.
- Description: the fill ask is dropped only when "zebra" names the rows, every other ask is a row metric, no other clause asks for a fill, and nothing in the ask is about a fill. Verified at
_how-question.mjs:11091-11113. - Description: a color or a word of the listed stems counts in any form and any case. Verified: the stem list matches the code, and the ask is lowercased before the test.
- Description: "add", "want", "need", "give" or "like" before "zebra" in the same clause keeps the stripe, and a verb in another clause does not. Verified on the base and head.
- Description: "with" before "zebra" in the same clause keeps the stripe. False (finding above).
- Description: "compact zebra rows" and "compact zebra tables" lose the stripe, and "compact striped tables" keeps it. Verified.
- Description: the listed unchanged asks, striped tables, "zebra rows", "striped tables" and every "alternate" or "every other row" ask answer as before. Verified: the test rows pass, and the probed asks match the base.
- Description: only the experimental
howcommand changes, not the stable CLI. Verified: one module imports the changed reader, and the API function is exported only from the experimental entry. - Description: this builds on the zebra
howanswers already onmain. Verified. - Description: the public text carries no internal context. Verified in the added lines, the title, the body, the branch name and the commit messages.
- Description: the new rows and every existing stripe row pass. Verified:
theme-how.test.mjspasses in full at this head. - Description: the editor and command suites and the type gate pass. Partly verified:
theme-how.test.mjsat this head, and the editor suites that read stripes on the same code earlier; the whole suites and the type gate were not run here. - Description: the replay and preflight results. Not reproduced.
- Release note: an
[experimental]patch for the CLI that names the command. Verified, and the changeset check passes. - Release note: "zebra rows" beside only a row metric is that metric's ask and no longer stripes every data-driven table. Verified.
- Release note: a color or listed word, another clause that asks for a fill, and striped tables keep the stripe. Verified.
- Release note: a clause that asks for zebra rows keeps the stripe. False for "with" asks (finding above).
.changeset/experimental-theme-how-stripe-words-beside.md: the "with" reading it shares with the description; otherwise clear.packages/cli/api/theme-edit/_how-question.mjs: the blocking "with" finding and the non-blocking repeated-clause note; the rest is clear.packages/cli/api/theme-edit/theme-how.test.mjs: clear and consistent with the code; it has no "with" row.
…ne list of when the stripe stays
…bra rows keeps the stripe
ffcc86b to
8982eb3
Compare
|
/approve-spec 8982eb3 |
There was a problem hiding this comment.
Approved pending CI: the heavy CI suites run after review passes and before merge, so they have not run on this head yet.
The earlier "with" defect is fixed: a clause that starts at "with" keeps the stripe and has a test row, and the description now matches the reworded release note. The engineering owner's /approve-spec on this head settles the reading of "zebra".
Non-blocking:
- "a table with bold headers and taller zebra rows" drops the stripe that "a table with taller zebra rows" keeps, because only the clause right after "with" sees it (
packages/cli/api/theme-edit/_how-question.mjs:11330); a test row would pin whichever reading you want. - "zebra rows taller and zebra rows bold" still keeps the stripe while "zebra rows taller and bold" drops it (
_how-question.mjs:11333).
Claims and files checked
Review mode: full; reason: rebase
- Title: "zebra rows taller" answers only the rows' size, with no stripe. Verified: the test row passes, and the base drafts the stripe for it.
- Description: #12971's fix lands on
mainon its own. Verified:mainhas no such pass, and the theme branch reverted its copy. - Description: the code matches #12971's plus one fix, a clause that starts at "with" keeps the stripe. Verified against #12971's patch; the new test row passes.
- Description: the release note is reworded and the test rows sit in their own block. Verified.
- Description: before, the three asks also striped every data-driven table. Verified on the base.
- Description: the fill ask is dropped only when "zebra" names the rows, every other ask is a row metric, no other clause asks a fill, and nothing in the ask is about a fill. Verified at
_how-question.mjs:11315-11340. - Description: "add", "want", "need", "give" or "like" before "zebra" in the same clause, or a clause that follows "with", keeps the stripe, and a verb in another clause does not. Verified by test rows and runs on the base and head.
- Description: a color or a word of the listed stems counts in any form and any case. Verified: the stem list matches the code, and the ask is lowercased before the test.
- Description: "compact zebra rows" and "compact zebra tables" lose the stripe, and "compact striped tables" keeps it. Verified.
- Description: the listed unchanged asks, striped tables, "zebra rows", "striped tables" and the "alternate" and "every other row" asks answer as before. Verified by the test rows and runs on the base and head.
- Description: only the experimental
howcommand changes, not the stable CLI. Verified: one module imports the changed reader, and the API function is exported only from the experimental entry. - Description: this builds on the zebra
howanswers already onmain. Verified. - Description: the public text carries no internal context. Verified in the added lines, the title, the body, the branch name and the commit messages.
- Description: the new rows and every existing stripe row pass. Verified:
theme-how.test.mjspasses in full at this head. - Description: the editor and command suites and the type gate pass. Partly verified: the
howsuite, five related editor suites and CI's typecheck pass at this head; the full command suites were not run here. - Description: the preflight result. Not reproduced.
- Release note: an
[experimental]patch for the CLI that names the command. Verified, and the changeset check passes. - Release note: "zebra rows" beside only a row metric is that metric's ask and no longer stripes every data-driven table. Verified.
- Release note: a color or listed word, another clause that asks a fill, a clause that asks for zebra rows, and striped tables keep the stripe. Verified for every example; one "with" over two clauses reaches only the first (non-blocking).
.changeset/experimental-theme-how-stripe-words-beside.md: clear.packages/cli/api/theme-edit/_how-question.mjs: the two non-blocking notes above; otherwise clear.packages/cli/api/theme-edit/theme-how.test.mjs: clear and consistent with the code.
| // table with taller zebra rows": an ask for zebra rows keeps them. A | ||
| // clause the reader starts at "with" has it in its joint.) | ||
| !/\b(?:add|want|need|give|like)\b[^,;.]*\bzebra\b/.test(c.text) && | ||
| !/\bwith\b/.test(String(c.joint ?? '')) && |
There was a problem hiding this comment.
Non-blocking: only the clause right after "with" sees it here, so "a table with bold headers and taller zebra rows" (this clause's joint is "and") loses the stripe the base drafts, while "a table with taller zebra rows" keeps it. That matches the description's rule; a test row for the two-clause form would pin whichever reading you want.
…e rows' size, with no stripe (#12971 on main)
- #13409 experimental theme editor how: "zebra rows taller" is the rows' size, with no stripe (#12971 on main) Author: @josephfarina - #13474 perf(cli): the theme contrast check works out each setting's parts once per check Author: @josephfarina
|
Landed in #13489. |
#12971's fix, landing on main on its own. Its code matches #12971's (merged into the theme branch, whose copy is dropped), plus one fix: a clause that the reader starts at "with" and that asks for zebra rows keeps the stripe ("a table with taller zebra rows"). Its release note is reworded, and its test rows sit in their own block.
astryx experimental theme editor howread "zebra rows taller", "zebra rows bold" and "compact zebra rows" as two asks, the metric and a stripe, so it also striped every data-driven table. Now, when "zebra" only names the rows, every other ask of the clause is a row metric (size, spacing, weight, font size, italic, case, leading, tracking, family), no other clause of the ask asks a fill ("…and more vibrant"), and nothing in the whole ask is about a fill, the fill ask is dropped. A clause that asks for zebra rows keeps them: when "add", "want", "need", "give" or "like" comes before "zebra" in that same clause ("add taller zebra rows", "I want zebra rows that are taller"), or the clause follows a "with" ("a table with taller zebra rows"); a verb in another clause does not count ("add more padding to buttons and make the zebra rows taller" still drops the stripe). "About a fill" means any color the color reader finds, or any word of a color, fill, background, shading, tint, band, stripe, lightness or tone stem (the listed stems: colo(u)r…, fill…, background…, shad…, tint…, band…, strip…, dark…, light…, bright…, pale…, deep…, warm…, cool…, subtle…, mute…, soft…, vivid…, vibran…, saturat…, intens…, contrast…), in any case, so every form counts ("colored", "backgrounds", "darken").What changes
Scope
Experimental:
astryx experimental theme editor howonly.Builds on the zebra
howanswers (now on main).Testing
theme-how.test.mjs: the three asks above, and "add more padding to buttons and make the zebra rows taller", answer with their own metric on table rows and write no stripe; "zebra rows taller and #f9f9f9", "zebra rows #f9f9f9 taller" and their upper-case forms, "zebra rows taller and light gray", "darker bold zebra rows", "zebra rows taller and tinted", "zebra rows taller, with shading", "make the zebra row backgrounds bolder", "zebra row fills bolder", "zebra rows taller and colored", "zebra rows taller with more color", "zebra rows bold, darken them slightly", "zebra rows taller, more subtle", "zebra rows taller and warmer", "zebra rows taller and more vibrant", "zebra rows bold and more saturated", "zebra rows taller; more vibrant", "add taller zebra rows", "i want zebra rows that are taller", "make the zebra row colors bolder", "bolder zebra stripes" and "compact striped tables" keep their stripe; every existing stripe row passes. "a table with taller zebra rows" keeps the stripe.CI=1; the type gate.replay: worse 0 at 8982eb3
preflight: pass 8982eb3 (review deferred to batch: subagent cap)