Repository navigation
chore: land 1 reviewed pull request (batch fe-theme-1) - #13209
josephfarina wants to merge 9 commits into
Conversation
Reviewed pull request #13196, merged into the theme working branch. It reaches main with the branch's next landing.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec 0170621 |
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Changes requested: the colon-subject fix works for one-sentence lists, but its sentence lookup misreads an item that another sentence names before its colon.
subjectOfColonfinds the clause's sentence by its words (packages/cli/api/theme-edit/_how-question.mjs:10865-10877), so in "Header: navy. Cards: white background, gray header." the cards' "gray header" is read as the app header, the answer reports that navy and gray contradict each other, and the cards' white background goes unwritten where main writes it; find the clause's own sentence by position and add that ask as a test row that checks the cards' line.
Non-blocking: the new row at theme-how-clause-subjects.test.mjs:421 asserts never: /contradict/, which cannot fail, because never reads only the written lines and the contradiction is reported in the answer text.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Description: lands #13196 from the theme editor working branch: verified; the net change equals #13196's patch, and the held-out and reverted commits cancel out.
- Description: each listed pull request was reviewed on its own head: not established; #13196 shows no completed review and its own description defers review to this batch, so its code is reviewed in full here.
- Description: it changes no records: verified; no knowledge record is in the diff.
- Description: the listed change makes every part named before a colon a subject of the list: verified for a sentence's first colon (four new rows fail on main and pass here).
- Description: the scope is the CLI theme editor's
how: verified; all code is inpackages/cli/api/theme-edit. - Description: when this merges, every listed pull request is on main: verified by the same diff comparison.
- Release note: an experimental patch to the CLI: verified.
- Release note: a part named as a whole item before its sentence's first colon is a subject, never a piece held inside the first part: verified in the code.
- Release note: "popover, tooltip and hover card: dark" and "popover and hover card: dark" darken the hover card instead of dropping it: verified against main.
- Release note: a part named after that colon, or inside a longer name, stays an item as before: true for its two examples, false when another sentence names the same part before its colon (the finding above).
- File
.changeset/experimental-theme-how-colon-subjects.md: its last sentence is false until the fix lands. - File
packages/cli/api/theme-edit/_how-question.mjs: blocking (sentence lookup). - File
packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs: non-blocking (line 421); the other new rows prove what they name.
| !!keptWords && | ||
| asked0 | ||
| .split(/[;!?\n]|\.(?!\d)/) | ||
| .filter(sentence => sentence.includes(keptWords)) |
There was a problem hiding this comment.
This picks the clause's sentence by its words, and .some accepts any sentence that holds them. For a clause with no colon of its own, keptWords is only the part's name, so in "Header: navy. Cards: white background, gray header." the cards' "gray header" matches the first sentence and is answered as the app header: the answer reports that navy and gray contradict each other, and "Cards: white background" and "gray header" go unused. Main writes the header and the cards there. Finding the clause's own sentence by position (for example by counting the break joins joinOf records before the clause) avoids it.
| { | ||
| q: 'Header: navy with white text. Cards: white background, header: gray.', | ||
| has: ["background-color '#1e3a8a' --on app-shell-header"], | ||
| never: /contradict/, |
There was a problem hiding this comment.
never is matched only against the editor set lines of the first result (:509-510), and a contradiction is reported in the answer text, so this assertion cannot fail. Assert a written line instead, for example the cards' background-color '#ffffff' --on card --when variant:default --mode light in a "Header: navy. Cards: white background, gray header." row.
|
/approve-spec ad064f7 |
|
Every pull request in this landing was taken out after review, so there is nothing left to land. The next landing carries the branch's pull requests. |
This pull request lands 0 reviewed pull requests from the theme editor working branch in one CI run. Each one was reviewed on its own head and merged into the branch in the order listed.
They change no records.
Scope
Taken out after review: #13196.
When this merges, every pull request above is on main.