Skip to content

experimental theme editor how: "even rows transparent" takes that stripe away - #13210

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
theme-editor-how-stripe-transparent
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
theme-editor-how-stripe-transparent

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

astryx experimental theme editor how answered "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

  • "even rows transparent", "make the even rows transparent" → background-color transparent --on table-row --when parity:even, with the same hover note "no stripes on even rows" gives.
  • "odd rows transparent" → the same on parity:odd.
  • A mode the ask names reaches the step ("even rows transparent in dark mode" → --mode dark).
  • On striped tables only, like any stripe ask scoped that way: "even rows transparent on striped tables" → … --when parity:even --state striped.
  • Unchanged: "no stripes on even rows", and every stripe ask with a color ("odd rows #f9f9f9" still writes the odd stripe and clears Core's even stripe on striped tables).

Scope

Experimental: astryx experimental theme editor how only.

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

Testing

  • theme-how.test.mjs: the five asks above, each checked for its top command.
  • Editor and command suites with CI=1; the type gate.

replay: worse 0 at 9472b00
preflight: pass 9472b00 (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 7:41am 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
🔄 In progress (for maintainers only) Nov 21, 2026, 7:30 AM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the theme-editor reading this pull request records (the owner's ruling): "even rows transparent" takes that stripe away.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 3b28b29

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 9472b00

⏳ Building… Until it's ready, Storybook · Sandbox open the branch's previous preview.

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


Generated by PR Enrichment workflow | View current CI run

@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: 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 how command changes, not the stable CLI. Verified: _how.mjs:57 is 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.mjs pass 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.

Automated review (maintainer link)

// ("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)));

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: 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.

@josephfarina
josephfarina force-pushed the theme-editor-how-stripe-transparent branch from 3b28b29 to 9472b00 Compare November 21, 2026 07:30
@josephfarina
josephfarina changed the base branch from main to feature/theme-editor November 21, 2026 07:30
@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the theme-editor reading this pull request records (the owner's ruling): "even rows transparent" takes that stripe away.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 9472b00

@josephfarina
josephfarina merged commit a2ee98c into feature/theme-editor Nov 21, 2026
12 of 67 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…ipe away (#13210)

Reviewed pull request #13210, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…that stripe away (#13210)"

#13210 was held on this working branch on an open review finding (HQ rule, 11-21): it returns as a pull request against main with its fix folded in.
@josephfarina

Copy link
Copy Markdown
Contributor Author

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.

@github-actions
github-actions Bot deleted the theme-editor-how-stripe-transparent branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 9472b00b 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