Skip to content

experimental theme editor how: "zebra rows taller" is the rows' size, with no stripe (#12971 on main) - #13409

Closed
josephfarina wants to merge 3 commits into
mainfrom
theme-editor-how-zebra-taller-landing-form
Closed

josephfarina wants to merge 3 commits into
mainfrom
theme-editor-how-zebra-taller-landing-form

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

#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 how read "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

  • "zebra rows taller", "zebra rows bold", "compact zebra rows" (and "compact zebra tables"): only the metric's answer on table rows; no stripe. "compact striped tables" keeps its stripe: "striped" says the tables are striped.
  • Unchanged: every ask with a color, fill, shading, stripe or lightness word anywhere ("zebra rows #F9F9F9 taller", "zebra rows taller and light gray", "zebra rows taller and blue buttons", "darker bold zebra rows", "zebra rows taller and tinted", "zebra rows taller, with shading", "make the zebra row colors bolder", "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", "bolder zebra stripes"), striped tables ("compact striped tables", "bold striped tables"), "zebra rows", "striped tables", and every "alternate"/"every other row" ask.

Scope

Experimental: astryx experimental theme editor how only.

Builds on the zebra how answers (now on main).

  • No change to the stable CLI.
  • Public text and artifacts contain no internal Meta context.

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.
  • Editor and command suites with CI=1; the type gate.

replay: worse 0 at 8982eb3
preflight: pass 8982eb3 (review deferred to batch: subagent cap)

@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 9:39pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2026
@astracat-bot

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 9:43 PM UTC

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 8982eb3

Storybook · Sandbox · built from this PR's head

Current run: The current CI run concluded cancelled. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@josephfarina josephfarina changed the title Landing form of #12971: experimental theme editor how: "zebra rows taller" is the rows' size, with no stripe experimental theme editor how: "zebra rows taller" is the rows' size, with no stripe (#12971 on main) Nov 21, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ffcc86b

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: "with" never keeps the zebra stripe, though the description says it does.

  • clausesOf ends a clause at every "with" (packages/cli/api/theme-edit/_how-question.mjs:3291), so the verb test at _how-question.mjs:11104 never sees it, and "a table with taller zebra rows" now loses the even-row stripe that main drafts; either read the clause's joint for "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 main on 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 how command 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 how answers already on main. 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.mjs passes in full at this head.
  • Description: the editor and command suites and the type gate pass. Partly verified: theme-how.test.mjs at 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.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the theme-editor-how-zebra-taller-landing-form branch from ffcc86b to 8982eb3 Compare November 21, 2026 21:26
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 8982eb3

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 main on its own. Verified: main has 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 how command 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 how answers already on main. 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.mjs passes in full at this head.
  • Description: the editor and command suites and the type gate pass. Partly verified: the how suite, 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.

Automated review (maintainer link)

// 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 ?? '')) &&

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

josephfarina added a commit that referenced this pull request Nov 21, 2026
josephfarina added a commit that referenced this pull request Nov 22, 2026
- #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
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #13489.

@github-actions
github-actions Bot deleted the theme-editor-how-zebra-taller-landing-form branch November 23, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — 8982eb32 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant