Repository navigation
chore: land 1 reviewed pull request (batch 92) - #13037
Conversation
…w's parity (zebra rows, striped tables, odd or even rows)
…s every step; every data-driven table; docs cache version
…aming no part is a table row's; odd table rows; odd rows darker
…pes to striped tables
…g else (alternate table row text color) [skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 83eb9c1 |
There was a problem hiding this comment.
Approved pending CI. One node test shard, test-node (9/9), fails in a render storage test (packages/cli/api/render/render.interactive.test.mjs:1512) that this change does not reach and that passes on its own here and on main, so it needs a re-run; test and docsite-browser are still running.
An engineering owner's /approve-spec for this head settles the stripe answers, the [experimental] patch changeset fits the experimental-surface release rule, and the stripe tests pass. Nothing blocks; two non-blocking points are worth a follow-up, and the inline comments add two smaller ones:
- "zebra rows, the odd ones #f9f9f9" and "zebra rows, odd ones shaded" (the example the comment at
_how-question.mjs:21007-21008names) draft Core's even stripe without the odd rows or the color, while "zebra rows, odd rows #f9f9f9" writes the odd stripe. - A one-step stripe answer ("even rows #eeeeee") reads "the stripe cover Core's hover color" (
_how-question.mjs:21034).
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: stripe asks are answered with the stripe Core marks on each body row (
--when parity:oddorparity:even). Verified (_how-question.mjs:20950-21114; runninghowon base and head). - Changeset: "zebra rows", "striped tables", "alternate row shading" and "shade every other row" stripe every data-driven table on Core's even stripe with the theme's stripe color. Verified for all four (test rows and runs on the head).
- Changeset: the stripe names are read from the doc of the prop that turns stripes on. Verified (
_how-question.mjs:3934-3973reads Table'sisStripeddescription). - Changeset: an ask naming a stripe sets it and clears Core's other stripe on striped tables. Verified for "odd rows #f9f9f9" and "odd table rows #fafafa"; a stripe named as "the odd ones" in a later clause is missed (non-blocking).
- Changeset: "no stripes on even rows" takes that stripe away. Verified (test row).
- Changeset: before, the zebra asks said set had no condition, the two shading asks were not read as a fill, and "odd rows " colored every row. Verified on the base.
- Changeset:
set --whennamesparity:oddandparity:even, with a zebra-rows example. Verified (experimental-theme-editor-set.doc.mjs:46and:110-114);setalready accepted the condition on the base. - Description: the branch merges the reviewed member pull request onto current
mainas a merge commit. Verified (the head's two parents aremainand the member's last reviewed commit). - Description: the branch checks that it builds and tests on current
main. Pending CI: builds, typecheck, lint and most test shards are green; one render test shard needs a re-run; thehowsuites pass on the head. - Description:
howdrafts a stripe write only for a fill ask. Verified ("alternate table row text color red" answers with the row's text color, as on the base). - Description: the stripe-removal answers say they cover Core's hover color on a table with hover. Verified; the theme's cascade layer follows Core's (
packages/build/src/index.js:12). - Description: no knowledge record changes. Verified.
- Description: the stripe answers rest on an engineering owner's
/approve-specon the member and at this head. Verified. - Description: the member pull request is closed with a note when this merges. Not checkable in the diff (merge automation).
- File
.changeset/experimental-theme-how-row-stripes.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: four non-blocking points (dropped "odd ones" stripe, "the stripe cover", "on striped tables" not honored, an extra answer with no command). - File
packages/cli/api/theme-edit/_project.mjs: clear (each prop's description cached, cache version 10). - File
packages/cli/api/theme-edit/theme-how.test.mjs: clear (649 of 649 pass on the head). - File
packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.
| // shaded"): that stripe's fill on the row, in every table, and the | ||
| // other stripe of a striped table cleared, where Core draws its | ||
| // own. A theme with no stripe of its own and no color keeps Core's. | ||
| if (parityOn && paritySaid.length === 1 && value) { |
There was a problem hiding this comment.
(non-blocking) A stripe named as "odd ones" in a later clause never reaches this branch: "zebra rows, the odd ones #f9f9f9" and "zebra rows, odd ones shaded" (the example in the comment above) both answer with Core's even stripe in --color-background-muted, without the odd rows or #f9f9f9, while "zebra rows, odd rows #f9f9f9" writes the odd stripe. Reading a parity a following clause names here, and a test row for "zebra rows, the odd ones #f9f9f9", would cover it.
| return { | ||
| text: c.neg | ||
| ? `no stripe on the ${p} rows of ${parityOn}. On a table with hover those rows lose Core's hover color too` | ||
| : `a stripe on the ${p} rows of ${parityOn} (the first body row is odd), in every data-driven table${steps.length > 1 ? `; the ${other} rows of a striped table, where Core paints its own stripe, are cleared` : ''}. On a table with hover the stripe${steps.length > 1 ? ' and the cleared rows' : ''} cover Core's hover color; add --state striped to stripe only the tables the app marks isStriped`, |
There was a problem hiding this comment.
(non-blocking) With one step this prints "On a table with hover the stripe cover Core's hover color" ("even rows #eeeeee", "even-numbered rows #eeeeee"). Suggest the stripe${steps.length > 1 ? ' and the cleared rows cover' : ' covers'}.
| set('background-color', value, { | ||
| on: parityOn, | ||
| when: `parity:${p}`, | ||
| ...modeOf(c), | ||
| }), |
There was a problem hiding this comment.
(non-blocking) "odd rows #f9f9f9 on striped tables" gets this step without state: 'striped', so the stripe lands in every data-driven table, and the answer then tells the person to add --state striped, which they already asked for.
| text: 'striped rows need a style on every other row, and set has no condition for that; a row background colors every row', | ||
| text: | ||
| (parityOn ?? rowParity) | ||
| ? `a stripe on table rows is set on the stripe: background-color <color> --on ${parityOn ?? rowParity} --when parity:odd (or parity:even)` |
There was a problem hiding this comment.
(non-blocking) "zebra rows, odd rows #f9f9f9" returns this line as a second result, with no command, after the first result already wrote the odd stripe; an agent reads it for nothing.
PR Analysis Report🔎 Preview ·
|
Merges this reviewed pull request onto current main as a merge commit. This branch checks that it builds and tests on today's main.
Scope
CLI experimental theme editor:
howanswers zebra rows and striped tables with the row's stripe, and drafts a stripe write only for a fill ask. The stripe-removal answers say what they cost: on a table with hover, the cleared rows also cover Core's hover color.Records
No knowledge record changes. The stripe answers rest on the engineering owner's
/approve-specon the member and at this head.When this merges, the pull request above is closed with a note that names this one.