Repository navigation
fix(cli): experimental theme editor - a name in capitals that no part has is no subject - #13223
Conversation
… has is no subject
A single word in capitals that no part has ("FAB") was read as an unknown part, so "FAB 16px corners, bold text" wrote nothing and dropped "bold text". That reading is taken out, so these asks answer as the last release does, and the pending release note says which clauses name an unknown subject: one led by a plural or by words of a part's name.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
Covers the theme-editor reading this pull request restores (the owner's ruling, under the restore rule): a name in capitals that no part has is no subject, so an ask such as "FAB 16px corners" reads as released versions do (the whole theme's corners). |
|
/approve-spec 98b14dc |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI. experimental theme editor how reads a lone word in capitals as an ordinary word again, so "FAB 16px corners" writes the whole theme's corners and "FAB 16px corners, bold text" keeps the bold text, while a plural ("FABs …"), a label ("widgets: …") and words a part's name holds ("command palette …") still write nothing and name the word.
This was checked against the published CLI, not only against the tests: version 0.7.17 answers both asks exactly as this head does, so the change restores a released reading rather than introducing one. The two rows in the clause-subjects test fail at the merge base and pass here, every theme-how test file passes at this head (59 files, 1,286 assertions), and eight further theme-edit files that call the reader pass too.
- Non-blocking: the rewritten comment above the subject check is one 35-word sentence carrying two rules, over the simplified-English limit for a description; splitting it in two keeps the same facts.
Lint and the CLI smoke test pass on this head; the heavy CI jobs started when this review passed and were still queued or running as it was written, so this approval is pending CI.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Release note: a clause led by a plural, or by words a part's name holds, that matches no part writes nothing, names the words and lists any parts containing them — verified; the command-palette ask lists its six parts.
- Release note: a single unknown word still changes the whole theme, as released versions do — verified against the 0.7.17 tree and this head.
- Release note: font names, brand labels and look words read as before — verified by the font, brand-label and look rows of the clause-subjects test.
- Neighbouring release note, cross-checked: a label that names no part ("fab: …") is still named, never painted — verified at this head.
- Description: before the change the two-clause ask wrote nothing and marked "bold text" as not used — verified on the base tree, word for word.
- Description: both test rows fail before the change and pass after — verified; exactly those two of 54 fail at the merge base.
- Description: the theme-how test files pass — verified (59 files, 1,286 tests).
- Description: the full theme-edit suite passes — verified in part; the directory holds 596 test files, too many for this review's budget, so 67 of them were run, including every theme-how file and the heavier files that call the reader. No failure seen.
- Description: a replay of the editor's recorded asks changes only these asks — not verifiable here; the corpus is not in the repository. A ten-ask probe across the released, base and head trees agrees with it.
- Files: the editor's how reader (one disjunct removed, comment kept accurate, lint clean); the clause-subjects test (two rows, red at the merge base, green here); the pending release note (its wording matches the code, and its neighbours in the file stay true).
| // (A subject is a thing on the page: a plural noun, a word of a part's | ||
| // own name, or a name in capitals, "FAB"; a brand or a mood said | ||
| // before a look, "IBM Carbon:", "design feedback:", is not one.) | ||
| // (A subject is a thing on the page: a plural noun or a word of a |
There was a problem hiding this comment.
Non-blocking: this is one 35-word sentence carrying two rules, over the 25-word limit for a description in the repository's source-comment style. Two sentences keep the same facts:
// (A subject is a thing on the page: a plural noun, or a word of a
// part's own name. A brand or a mood said before a look,
// "IBM Carbon:", "design feedback:", is not one.)- #13211 experimental theme editor how: the stripes' names match in their own forms and with the table named - #13176 fix(cli): experimental theme editor - "the page: …" is the page - #13208 fix(cli): experimental theme editor - a gentle dark mode is no page color - #12730 experimental theme set: a theme made one-mode says where the page color shows, once - #13222 fix(cli): experimental theme editor - "bold system type" names no part - #13223 fix(cli): experimental theme editor - a name in capitals that no part has is no subject - #12701 fix(cli): how writes the color of a bold run said for a part's text, and the top bar's links take their looks on its nav items
|
Landed on main in #13226. |
Summary
astryx experimental theme editor howread a single word in capitals that no part has ("FAB") as an unknown part. "FAB 16px corners, bold text" then wrote nothing and marked "bold text" as not used.That reading is taken out, so these asks answer as the last release does:
corners 16px.A plural noun ("FABs …") or a label naming things on the page ("widgets: …") still names an unknown subject and writes nothing for it. The pending release note for unknown subjects now says which clauses name an unknown subject (one led by a plural, or by words of a part's name); no separate note is needed, since released versions already read these asks this way.
Test plan
theme-how-clause-subjects.test.mjs: the "FAB 16px corners" row now expects the corners, and a new row covers "FAB 16px corners, bold text". Both fail before this change and pass after.replay: worse 0 at 98b14dc
preflight: pass 98b14dc