Repository navigation
experimental theme editor how: a stripe ask on striped tables stripes only those tables - #12997
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner deciding how astryx experimental theme editor how answers stripe asks scoped to striped tables, and on one fix.
Blocking
- After "no stripes on even rows of striped tables" (which now writes
background-color transparent --on table-row --when parity:even --state striped), asking "zebra rows on striped tables" returns no command and says Core already stripes those rows while the theme keeps them transparent, where the base branch put the stripe back; when the theme sets its ownparity:evenrule, that answer should take it back or write the stripe, with a test row for the two asks in sequence (packages/cli/api/theme-edit/_how-question.mjs:21111-21115).
Spec decision needed
No current spec defines what how answers, so the scoped --state striped write, the "in the tables the app marks isStriped" wording and the no-command answer for "zebra rows on striped tables" need an engineering owner's decision. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
The scoped stripes otherwise work as described: the two new rows fail on the base branch and pass here.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim (changeset, description): a stripe ask that says on, in or for striped tables stripes only the tables marked isStriped with
--state striped: verified (_how-question.mjs:21008-21012,:21030;theme-how.test.mjs:326-335fails on the base, passes here). - Claim (description): tables that are or are marked striped or isStriped scope the same way: verified ("for tables marked isStriped" and "on tables that are striped" both write
--state striped). - Claim (description): the even clear stays
--when parity:even --state stripedtransparent: verified (_how-question.mjs:21033-21042). - Claim (changeset, description): "zebra rows on striped tables" with no color writes nothing and says how to set a color: verified for a theme with no stripe rules (
_how-question.mjs:21111-21115,theme-how.test.mjs:336-340); wrong after the theme clears that stripe (blocking finding above). - Claim (description): the answer says "in the tables the app marks isStriped" and drops its
--state stripedhint: verified (_how-question.mjs:21013-21018,:21047). - Claim (changeset, description): "striped tables" alone still stripes every data-driven table: verified (
theme-how.test.mjs:341-348passes on the base and here). - Claim (description): on the base branch, "odd rows #f9f9f9 on striped tables" striped every data-driven table: verified (the base writes
--when parity:oddwith no state). - Claim (description): experimental only, no change to the stable CLI: verified (only the editor's
howmodules import the changed file). - Claim (description): no internal context in public text: verified.
- Claim (description): the how tests, the editor and command suites, and the type gate pass: the how tests pass (650) and the editor and command suites pass (430 files); the type gate was not reproduced beyond the changed files, because two page templates need a built theme package.
- File
.changeset/experimental-theme-how-stripes-on-striped-tables.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (the no-command answer ignores the theme's own stripe rule). - File
packages/cli/api/theme-edit/theme-how.test.mjs: clear; no row covers a theme that cleared the stripe.
There was a problem hiding this comment.
Approval waits on an engineering owner deciding how astryx experimental theme editor how answers stripe asks scoped to striped tables; the earlier blocking regression is fixed.
Spec decision needed
No current spec defines what how answers, so the scoped --state striped write, the "in the tables the app marks isStriped" wording, and the answer to "zebra rows on striped tables" need an engineering owner's decision: no command while the theme leaves the even rows alone, and Core's color written back under --state striped once the theme sets its own even-row background, which replaces a recolored stripe. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Non-blocking
- The write-back guard in
packages/cli/api/theme-edit/_how-question.mjs:21114-21121matches an even-row rule in any state, so on a theme whose only even-row rule is a hover color the answer writes a stripe that changes nothing at rest and covers that hover in striped tables; limiting it to settings with no state or thestripedstate would match the description.
After "no stripes on even rows of striped tables", asking "zebra rows on striped tables" now writes the stripe back, and the new test fails before this change and passes here.
Claims and files checked
Review mode: incremental; reason: none
- Claim (description): on the base branch, a stripe ask scoped to striped tables striped every data-driven table: verified (the base writes
--when parity:oddwith no state; the row attheme-how.test.mjs:326-335fails there). - Claim (changeset, description): a stripe ask that says on, in or for striped tables, or tables marked isStriped, writes its stripe with
--state striped: verified (_how-question.mjs:21008-21012,:21030; "for tables marked isStriped" and "on tables that are striped" both scope). - Claim (description): the odd-rows ask writes the odd stripe for striped tables, then clears Core's even stripe as before: verified (
_how-question.mjs:21026-21043;theme-how.test.mjs:326-335). - Claim (changeset, description): the no-color zebra ask on striped tables writes nothing while the theme has no rule of its own on those rows, and says how to set a color: verified (
_how-question.mjs:21113-21125;theme-how.test.mjs:336-340); the guard also counts a hover-only even-row rule as the theme's own (non-blocking note above). - Claim (changeset, description): once the theme cleared or recolored that stripe, the same ask writes the stripe back: verified (
_how-question.mjs:21126-21137;theme-how.test.mjs:898-916fails before this change and passes here; a clear in either mode and a recolor both get the write). - Claim (description): the answer says "in the tables the app marks isStriped" and drops its
--state stripedhint: verified (_how-question.mjs:21013-21018,:21047,:21127). - Claim (changeset, description): "striped tables" alone still stripes every data-driven table: verified (
theme-how.test.mjs:341-348). - Claim (description): experimental only, no change to the stable CLI: verified (only the editor's
howmodules import the changed file). - Claim (description): no internal context in public text: verified.
- Claim (description): the how tests, the editor and command suites, and the type gate pass: the how tests pass (651) and the other suites that exercise stripes pass; the full editor and command suites were not reproduced at this head, and the type gate reports only two unchanged page templates that need a built theme package.
- File
.changeset/experimental-theme-how-stripes-on-striped-tables.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: one non-blocking finding (the write-back guard ignores a setting's state). - File
packages/cli/api/theme-edit/theme-how.test.mjs: clear; no row covers a hover-only theme.
There was a problem hiding this comment.
Approval waits on an engineering owner deciding how astryx experimental theme editor how answers stripe asks scoped to striped tables, and on one changeset fix.
Spec decision needed
No current spec defines what how answers, so the scoped --state striped write, the "in the tables the app marks isStriped" wording, and the answer to "zebra rows on striped tables" need an engineering owner's decision: no command while the theme leaves Core's stripe uncovered, and Core's color written back under --state striped once a theme row fill at rest or on striped tables covers it, which replaces a recolored stripe. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Blocking
- The changeset still says "zebra rows on striped tables" writes nothing while the theme has no stripe rule of its own there, but a theme whose only row rule is a plain
background-colorontable-rownow gets a write (_how-question.mjs:21120-21121, asserted attheme-how.test.mjs:917-938), so reword it to the description's rule: nothing while the theme fills none of those rows, and the stripe written back when a theme fill covers it (a cleared or recolored stripe, or a plain row fill).
Non-blocking
- The hover test at
theme-how.test.mjs:939-954sets the hover color on every row, which the previous revision already ignored; addingwhen: 'parity:even'pins the even-row hover case this push fixes.
The earlier note about the write-back guard matching a hover-only even-row rule is fixed: such a theme now gets no command.
Claims and files checked
Review mode: incremental; reason: none
- Claim (description): on the base branch, a stripe ask scoped to striped tables striped every data-driven table: verified (the base writes
--when parity:oddwith no state; the row attheme-how.test.mjs:326-335fails there). - Claim (changeset, description): a stripe ask that says on, in or for striped tables, or tables marked isStriped, writes its stripe with
--state striped: verified (_how-question.mjs:21008-21012,:21030; "for tables marked isStriped" and "on tables that are striped" both scope). - Claim (description): the odd-rows ask writes the odd stripe for striped tables, then clears Core's even stripe as before: verified (
_how-question.mjs:21023-21050;theme-how.test.mjs:326-335). - Claim (description): a stripe-color ask with no rows named, such as "lighter stripes on striped tables", still sets the stripe token: verified (it sets the muted color token on
table-rowin each mode). - Claim (description): the no-color zebra ask on striped tables writes nothing while the theme fills none of those rows, and says how to set a color: verified (
_how-question.mjs:21113-21126;theme-how.test.mjs:336-340,:939-954). - Claim (description): when a fill covers that stripe (a cleared or recolored stripe, or a plain row fill) the ask writes the stripe back, and a hover-only row color writes nothing: verified (
_how-question.mjs:21127-21139;theme-how.test.mjs:898-938fail before this change and pass here; an even-row hover color gets no command). - Claim (changeset): the zebra ask writes nothing while the theme has no stripe rule of its own there, and writes the stripe back when the theme cleared it: false for a plain or striped-table row fill, which now gets a write (blocking finding above).
- Claim (description): the answer says "in the tables the app marks isStriped" and drops its
--state stripedhint: verified (_how-question.mjs:21013-21018,:21047,:21128). - Claim (changeset, description): "striped tables" alone still stripes every data-driven table: verified (
theme-how.test.mjs:341-348, passing before and after). - Claim (description): experimental only, no change to the stable CLI: verified (only the editor's
howmodules import the changed file). - Claim (description): no internal context in public text: verified.
- Claim (description): the how tests, the editor and command suites, and the type gate pass: the how tests pass (654) and the nine other editor suites that exercise
howanswers or stripes pass (231); the full editor and command suites were not reproduced, and the type gate reports only two unchanged page templates that need a built theme package. - File
.changeset/experimental-theme-how-stripes-on-striped-tables.md: one blocking finding (the zebra-rows sentence). - File
packages/cli/api/theme-edit/_how-question.mjs: clear. - File
packages/cli/api/theme-edit/theme-how.test.mjs: one non-blocking finding (the hover test does not pin the even-row hover case).
| await themeEditSet('zhover', 'background-color', '#eeeeee', { | ||
| cwd, | ||
| on: 'table-row', | ||
| state: 'hover', | ||
| }); |
There was a problem hiding this comment.
Non-blocking: this sets the hover color on every row (no when), which the previous revision's guard already ignored, so the test passes there too and does not pin the case this push fixes: an even-row hover color (background-color #dddddd --on table-row --when parity:even --state hover) used to get a write-back and now gets none. Adding when: 'parity:even' here pins it.
There was a problem hiding this comment.
Approval waits on an engineering owner deciding how astryx experimental theme editor how answers stripe asks scoped to striped tables.
Spec decision needed
No current spec defines what how answers, so the scoped --state striped write, the "in the tables the app marks isStriped" wording, and the answer to "zebra rows on striped tables" need an engineering owner's decision: no command while the theme leaves Core's stripe uncovered, and Core's color written back under --state striped once a theme row fill at rest or on striped tables covers it, which replaces a recolored stripe. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Non-blocking
- The hover test at
theme-how.test.mjs:939-954sets the hover color on every row, which the earlier guard already ignored; addingwhen: 'parity:even'pins the even-row hover case that the guard'sstatecheck fixes.
The release note now matches the write-back rule, so the earlier changeset finding is fixed.
Claims and files checked
Review mode: incremental; reason: none
- Claim (description): on the base branch, a stripe ask scoped to striped tables striped every data-driven table: verified (the base writes
--when parity:oddwith no state; the row attheme-how.test.mjs:326-335fails there). - Claim (changeset, description): a stripe ask that says on, in or for striped tables, or tables marked isStriped, writes its stripe with
--state striped: verified (_how-question.mjs:21008-21012,:21030; "for tables marked isStriped" and "on tables that are striped" both scope). - Claim (description): the odd-rows ask writes the odd stripe for striped tables, then clears Core's even stripe as before: verified (
_how-question.mjs:21023-21050;theme-how.test.mjs:326-335). - Claim (description): a stripe-color ask with no rows named, such as "lighter stripes on striped tables", still sets the stripe token: verified (it sets the muted color token on
table-rowin each mode). - Claim (changeset, description): the no-color zebra ask on striped tables writes nothing while the theme fills none of those rows at rest or on striped tables, and says how to set a color: verified (
_how-question.mjs:21113-21126;theme-how.test.mjs:336-340,:939-954). - Claim (changeset, description): when a theme fill covers that stripe (a cleared or recolored stripe, or a plain row fill) the ask writes the stripe back: verified (
_how-question.mjs:21127-21139;theme-how.test.mjs:898-938fail before this change and pass here; a recolored stripe also gets the write). - Claim (description): a hover-only row color writes nothing: verified (
theme-how.test.mjs:939-954; an even-row hover color also gets no command). - Claim (description): the answer says "in the tables the app marks isStriped" and drops its
--state stripedhint: verified (_how-question.mjs:21013-21018,:21047,:21128). - Claim (changeset, description): "striped tables" alone still stripes every data-driven table: verified (
theme-how.test.mjs:341-348, passing before and after). - Claim (description): experimental only, no change to the stable CLI: verified (only the editor's
howmodules import the changed file). - Claim (description): no internal context in public text: verified.
- Claim (description): the how tests, the editor and command suites, and the type gate pass: the how tests pass (654) and the other how suites and three table suites pass (184); the full editor and command suites and the type gate were not reproduced.
- File
.changeset/experimental-theme-how-stripes-on-striped-tables.md: clear (the earlier finding is fixed). - File
packages/cli/api/theme-edit/_how-question.mjs: clear. - File
packages/cli/api/theme-edit/theme-how.test.mjs: one non-blocking finding (the hover test does not pin the even-row hover case).
There was a problem hiding this comment.
Approval waits on an engineering owner deciding how astryx experimental theme editor how answers stripe asks scoped to striped tables, and on one fix to how it reads a negated scope.
Blocking
- The negation guard on the second scope wording (
packages/cli/api/theme-edit/_how-question.mjs:21009) accepts only "on" or "in" with no article after not, except or without, so "odd rows #f9f9f9 except for tables marked isStriped", "… but not for tables that are striped" and "… but not on the tables marked isStriped" write the stripe with--state stripedon exactly the tables the ask excludes (the base branch wrote every table), and the description's "without" case writes nothing; giving that lookbehind the first alternative's reach,(?:(?:on|in|for|of)\s+)?(?:the\s+|all\s+)?, adding these wordings to the test attheme-how.test.mjs:955-965, and rewording or testing "without" fixes it.
Spec decision needed
No current spec defines what how answers, so the scoped --state striped write and its wording, the negated-scope answer (every table, with Core's even stripe cleared on striped tables), and the "zebra rows on striped tables" answers (no command while Core's stripe is uncovered or the theme fills the odd rows, Core's color written back under --state striped otherwise) need an engineering owner's decision. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Non-blocking notes sit on their lines: the odd-rows answer at _how-question.mjs:21133 also fires for an odd fill set alone, rowFill at :21119 misses a saved "when": null, and the hover test at theme-how.test.mjs:939-954 still does not pin the even-row case.
Claims and files checked
Review mode: incremental; reason: none
- Claim (description): on the base branch a stripe ask scoped to striped tables restyled every data-driven table: verified (the base answers "odd rows #f9f9f9 on striped tables" with
--when parity:oddand no state). - Claim (changeset, description): a stripe ask that names its rows and says on, in or for striped tables, or tables marked isStriped, writes its stripe with
--state striped: verified (_how-question.mjs:21008-21012,:21030;theme-how.test.mjs:326-335; "for tables marked isStriped" and "on tables that are striped" scope too). - Claim (description): "but not on", "except on" or "without" before the scope keeps every table: partly false ("but not on" and "except on" verified by
theme-how.test.mjs:955-965; three wordings with for, of or an article write only striped tables; "without tables marked isStriped" writes nothing). - Claim (description): a stripe-color ask with no rows named, such as "lighter stripes on striped tables", still sets the stripe token: verified (it sets the muted color token on
table-rowin each mode). - Claim (description): the odd-rows ask writes the odd stripe for striped tables, then clears Core's even stripe as before: verified (
theme-how.test.mjs:326-335). - Claim (changeset, description): the no-color zebra ask on striped tables writes nothing while the theme fills none of those rows at rest or on striped tables, and says how to set a color: verified (
_how-question.mjs:21138-21148;theme-how.test.mjs:336-340,:939-954). - Claim (changeset, description): a cleared or recolored stripe, or a plain row fill, gets the stripe written back: verified (
_how-question.mjs:21149-21161;theme-how.test.mjs:898-938), except a saved fill whosewhenisnull(non-blocking). - Claim (changeset, description): when the theme stripes the other rows itself the ask writes nothing and says so: verified (
_how-question.mjs:21124-21135;theme-how.test.mjs:966-993); it also fires for an odd fill set alone (non-blocking). - Claim (description): the answer says "in the tables the app marks isStriped" and drops its
--state stripedhint: verified (_how-question.mjs:21013-21018,:21047,:21150). - Claim (changeset, description): "striped tables" alone still stripes every data-driven table: verified (
theme-how.test.mjs:341-348). - Claim (description): experimental only, no change to the stable CLI: verified (the changed module is reached only through the experimental theme editor).
- Claim (description): no internal context in public text: verified.
- Claim (description): the how tests, the editor and command suites, and the type gate pass: the how tests pass (657) and the strict CLI typecheck reports nothing in the changed files; the full editor and command suites were not reproduced.
- File
.changeset/experimental-theme-how-stripes-on-striped-tables.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: one blocking finding (the negation guard) and two non-blocking notes. - File
packages/cli/api/theme-edit/theme-how.test.mjs: one non-blocking note (the hover test); the negation tests cover only the first scope wording.
| ) | ||
| ) | ||
| return { | ||
| text: `the theme already stripes the ${otherParity} rows of ${parityOn} on tables marked isStriped; to stripe the ${coreParity} rows instead, name a color (background-color <color> --on ${parityOn} --when parity:${coreParity} --state striped)`, |
There was a problem hiding this comment.
Non-blocking: this answer also comes for an odd fill set alone (background-color #f9f9f9 --on table-row --when parity:odd, no even clear), where striped tables still carry Core's even stripe; and the suggested command adds an even color without taking the odd one back, so the stripe does not move "instead". Requiring Core's stripe to be cleared too (a transparent parity:even fill at rest or under striped), and saying "as well" or adding the odd undo, keeps the text true.
2b65612 to
bab5ea9
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner deciding how astryx experimental theme editor how answers stripe asks scoped to striped tables, and on one fix to how it reads an excluded scope.
Blocking
- Miss: "everywhere but", "other than", "apart from", "besides" and "with the exception of" before "striped tables" (for example "odd rows #f9f9f9 everywhere but on striped tables") make the scope check at
packages/cli/api/theme-edit/_how-question.mjs:21009write the stripe with--state striped, only on the tables the ask excludes, while the answer says they cannot be kept apart; add those words to both lookbehinds and to the test attheme-how.test.mjs:963-977.
Spec decision needed
No current spec defines what how answers, so the scoped --state striped write, its "in the tables the app marks isStriped" wording, the reading of an excluded scope and the no-color "zebra rows on striped tables" answers need an engineering owner's decision; any engineering owner, the author included, records it by commenting /approve-spec <full head SHA> on the pull request. The three earlier non-blocking inline notes (the "when": null comparison, the odd-rows answer's "instead", and the hover test that does not pin the even-row case) still apply.
Claims and files checked
Review mode: full; reason: rebase
- Claim: on the base, "odd rows … on striped tables" striped every data-driven table: verified (base probe).
- Claim: a stripe ask that names its rows and says on, in or for striped tables, or tables marked isStriped, writes
--state striped: verified (test lines 326-335, probes). - Claim: "not" or "except" before the scope keeps every table: verified (test lines 963-977, probes); other exclusion words do not (blocking finding).
- Claim: a stripe-color ask with no rows named still sets the stripe token: verified (probe, same on base and head).
- Claim: "zebra rows on striped tables" writes nothing while no theme fill covers those rows and writes the stripe back over a cleared or recolored stripe or a plain row fill: verified (tests lines 906-962, probes).
- Claim: when the theme stripes the other rows itself, it writes nothing and says so: verified (test lines 978-1001); it also answers so for an odd fill set alone (non-blocking note).
- Claim: the answer says "in the tables the app marks isStriped" and drops its
--state stripedhint: verified (probes). - Claim: "striped tables" alone still stripes every data-driven table: verified (test lines 342-350).
- Claim: no change to the stable CLI: verified (the answer code runs only for the experimental
howcommand). - Claim: public text carries no internal context: verified (title, body, branch, commit message and added lines).
- Claim: the listed test rows exist and pass, with the type gate: verified (663 of 663 tests pass; the strict CLI typecheck shows no error in the changed files).
- Claim: the release note's four statements: verified as above.
- File
packages/cli/api/theme-edit/_how-question.mjs: blocking finding (exclusion words), two non-blocking notes. - File
packages/cli/api/theme-edit/theme-how.test.mjs: no rows for the five exclusion wordings; the hover test does not pin the even-row case (non-blocking). - File
.changeset/experimental-theme-how-stripes-on-striped-tables.md: clear.
e4d62de to
1d28c8c
Compare
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approval waits on an engineering owner deciding how astryx experimental theme editor how answers stripe asks scoped to striped tables, and on two fixes.
Blocking
- Miss: additive wordings such as "odd rows #f9f9f9 on striped tables too", "… on striped tables as well" or "… in every table, even on striped tables" make the scope check at
packages/cli/api/theme-edit/_how-question.mjs:21013write the stripe with--state stripedonly, dropping the plain tables the ask includes; skip the narrowing when the ask marks the striped scope as additive or names other tables, and add those wordings to the tests. - Miss: after "no stripes" (which sets
--color-background-mutedto transparent ontable-row), "zebra rows on striped tables" answers that Core already stripes the even rows and writes nothing (packages/cli/api/theme-edit/_how-question.mjs:21148-21160), though no stripe is drawn; treat that token setting as covering Core's stripe and answer from it.
Spec decision needed
No current spec defines what how answers, so the scoped --state striped write, the reading of an excluded scope (which now keeps Core's stripe beside the new one) and the no-color "zebra rows on striped tables" answers need an engineering owner's decision; any engineering owner, the author included, records it by commenting /approve-spec <full head SHA> on the pull request. The two earlier inline notes still anchored on this head (the odd-rows answer's "instead", and the hover test that does not pin the even-row case) still apply, and the new excluded-scope explanation does not reach the person for the tested wordings.
Claims and files checked
Review mode: full; reason: rebase
- Claim: On the base, "odd rows … on striped tables" striped every data-driven table: verified (base run).
- Claim: A stripe ask that names its rows and says on, in or for striped tables, or tables marked isStriped, writes
--state striped: verified for those wordings (test lines 326-335, runs); additive wordings narrow too (blocking finding). - Claim: An exclusion (not, except, everywhere but, other than, apart from, besides, excluding) stripes every table and writes nothing on striped tables: verified (test lines 963-984, runs).
- Claim: The answer says the editor has no condition for a table that is not striped: partly; the visible answer says table-row cannot be kept apart, and the added explanation does not show for the tested wordings (non-blocking).
- Claim: A stripe-color ask with no rows named still sets the stripe token: verified (run, unchanged from the base).
- Claim: "odd rows #f9f9f9 on striped tables" writes the odd stripe with
--state striped, then clears Core's even stripe as before: verified (test lines 326-335). - Claim: "zebra rows on striped tables" writes nothing while the theme fills none of those rows: verified, but it also writes nothing and says Core stripes the rows after the stripe token is cleared (blocking finding).
- Claim: It writes the stripe back over a cleared or recolored stripe or a plain row fill: verified (test lines 906-946, runs).
- Claim: It writes nothing over a hover-only row color: verified (test lines 947-962); the test does not pin the even-row case (non-blocking).
- Claim: When the theme stripes the other rows itself, it writes nothing and says so: verified (test lines 985-1010); it also answers so for an odd fill set alone (non-blocking).
- Claim: The answer says "in the tables the app marks isStriped" and drops its hint: verified (runs).
- Claim: "striped tables" alone still stripes every data-driven table: verified (test lines 342-349, runs).
- Claim: No change to the stable CLI: verified (the answer code is reached only through the experimental how command).
- Claim: Public text carries no internal context: verified (title, body, branch, commit messages, added lines).
- Claim: The listed test rows pass, with the editor suite and the type gate: verified (the theme editor's 432 test files pass, 5,042 tests; the strict CLI typecheck shows no error in the changed files); the command suites were not run.
- Claim: The release note's statements: as above; its first and third sentences carry the two blocking findings.
- File
packages/cli/api/theme-edit/_how-question.mjs: two blocking findings, two non-blocking notes. - File
packages/cli/api/theme-edit/theme-how.test.mjs: no rows for additive wordings or a cleared stripe token; the hover test does not pin the even-row case (non-blocking). - File
.changeset/experimental-theme-how-stripes-on-striped-tables.md: its "Core already stripes those tables" statement follows the second blocking finding.
| // exclusion ("everywhere but", "other than", "besides") is | ||
| // "except". | ||
| const onStriped = | ||
| /(?<!\b(?:not|except|without)\s)\b(?:on|in|for|of)\s+(?:the\s+|all\s+)?striped\s+tables?\b|(?<!\b(?:not|except|without)\s(?:(?:on|in|for|of)\s+)?(?:the\s+|all\s+)?)\btables?\s+(?:that\s+are\s+|marked\s+)(?:is\s*)?striped\b/i.test( |
There was a problem hiding this comment.
Blocking (miss): this alternative matches "on/in/for/of striped tables" anywhere in the ask, so additive wordings narrow the write too: "odd rows #f9f9f9 on striped tables too", "… on striped tables as well", "…, also on striped tables", "… in every table, even on striped tables" and "… on plain tables and on striped tables" all write --when parity:odd --state striped plus the even clear and say "in the tables the app marks isStriped", where the base wrote every table. Skip the narrowing when the ask marks the striped scope as additive (too, as well, also, even, including) or also names other tables (every, all, plain, other tables), and add those rows to the tests.
| ) | ||
| ) | ||
| return { | ||
| text: `Core already stripes the ${coreParity} rows of a table marked isStriped with ${stripe}; to change them, name a color (background-color <color> --on ${parityOn} --when parity:${coreParity} --state striped)`, |
There was a problem hiding this comment.
Blocking (miss): after "no stripes" or "remove the zebra stripes" (both write set <theme> --color-background-muted transparent --on table-row), this answers "Core already stripes the even rows …" with no command, while the compiled table-row sets --color-background-muted: transparent, so striped tables show no stripe. rowFill reads only background settings. Treat the stripe token set on the row (x.on === parityOn && x.thing === stripe, value transparent) as covering Core's stripe and answer from that setting (say the theme cleared it and how to take it back), with a test after "no stripes".
| ? `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`, | ||
| ? `no stripe on the ${p} rows of ${parityOn}${onStriped ? ` ${stripedWhere}` : ''}. 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), ${stripedWhere}${offStriped ? ", striped tables included: a table that is not striped has no condition of its own, so those tables keep Core's own stripe beside it" : ''}${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${limit}`, |
There was a problem hiding this comment.
Non-blocking: for every exclusion wording in the tests the except reader's text ("…, except table-row is the part being changed, so it cannot be kept apart") is the only answer, so this "striped tables included … keep Core's own stripe beside it" text never reaches the person, and nobody is told that striped tables now show both stripes. Either route it into the shown answer and assert the text in theme-how.test.mjs, or drop it.
… only those tables
59b3650 to
df12591
Compare
|
Covers the theme-editor reading this pull request records (the owner's ruling): a stripe ask on striped tables stripes only those tables. |
|
/approve-spec df12591 |
|
Taken out of landing #13226 because the review of the combined head flagged a line this change made. It stays on the working branch and rides the next landing together with its fix: open the fix as a new pull request based on the working branch (it already holds this change), whose description names #12997. |
|
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 howignored "on striped tables": "odd rows #f9f9f9 on striped tables" striped every data-driven table. A stripe ask that names its rows ("odd rows …", "zebra rows …") and says on, in or for striped tables, or tables marked isStriped, now writes its stripe with--state striped; an ask that adds striped tables to the others stays on every table: "striped tables too" or "as well", "also/even/including on striped tables", or "every/all/plain/other tables" not after "not", "except" or "leave" ("…on striped tables too", "in every table, even on striped tables", "on plain tables and on striped tables", "on plain and on striped tables"); "even rows …", "on any striped table", "on every striped table", "…, not on plain tables", "…, leave other tables alone" and another clause's "all buttons" keep the striped scope;, as "odd rows #f9f9f9" does; an exclusion before it ("but" included, as in "anywhere but on striped tables") stripes every table and takes that stripe back on striped tables (background-color transparent --when parity:<that stripe> --state striped, in the stripe's own mode), so a table marked isStriped keeps its rows as Core draws them; the editor has no condition for a table that is not striped, and the answer says so: "not", "except", and every word the question reader reads as except ("everywhere but", "other than", "apart from", "besides", "excluding"). (A stripe-color ask with no rows named, "lighter stripes on striped tables", still sets the stripe token, as before.)What changes
… --when parity:odd --state striped, then Core's even stripe cleared as before (--when parity:even --state striped transparent).… --when parity:even --state striped). When the theme made the stripe's color transparent ("no stripes" sets--color-background-muted transparentontable-row), it takes that setting back (undo … --color-background-muted --on table-row), since writing the stripe again would read that same transparent color; when a theme row fill also covers the stripe, the stripe is written back after the undo. When the theme stripes the other rows itself on striped tables ("odd rows #f9f9f9 on striped tables" set them and cleared Core's), it writes nothing and says so.--state stripedhint.Scope
Experimental:
astryx experimental theme editor howonly.Builds on the zebra
howanswers (now on main).Testing
theme-how.test.mjs: "odd rows #f9f9f9 on striped tables" (its top command and the savedparity:odd+stripedsetting), "zebra rows on striped tables" (no write; and, afterset … transparent --when parity:even --state striped, the stripe written back; and over a plain or striped-table row fill; and no write over a hover-only row color; and no write after "odd rows #f9f9f9 on striped tables"), "odd rows #f9f9f9, but not on striped tables", "… except on striped tables", "… except for tables marked isStriped", "… but not for tables that are striped", "… but not on the tables marked isStriped", "… except the tables marked isStriped", "… everywhere but on striped tables", "… other than on striped tables", "… apart from striped tables", "… besides striped tables", "… excluding striped tables" and "… anywhere but on striped tables" (every table, no--state striped); "…on striped tables too", "…in every table, even on striped tables" and "…on plain tables and on striped tables" (the answer "odd rows #f9f9f9" gives); "zebra rows on striped tables" after--color-background-muted transparentontable-row(that setting taken back), and after that plus a plain row fill (taken back, then the stripe written); "even rows #eeeeee on striped tables", "…, not on plain tables", "…, leave other tables alone" and "make all buttons rounder and odd rows #f9f9f9 on striped tables" (striped scope kept); "zebra rows on striped tables and every card white" (no every-table stripe) and "striped tables" (the even stripe on every table, no--state); every existing stripe row passes.CI=1; the type gate.replay: worse 0 at df12591
preflight: pass df12591 (review deferred to batch: subagent cap)