Repository navigation
feat(cli): experimental theme editor: round 15 parts 20–25 in one change - #13048
josephfarina wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
dd82061 to
fd0f550
Compare
e34b4bf to
8ee66c2
Compare
d620787 to
ac68159
Compare
9e7725b to
d90a658
Compare
d915401 to
b5c927f
Compare
d90a658 to
55c904e
Compare
b5c927f to
f13d6f6
Compare
55c904e to
cde25f0
Compare
f13d6f6 to
fcc0ed3
Compare
3ae9844 to
7942b54
Compare
fcc0ed3 to
5d1ce50
Compare
5d1ce50 to
e3639d3
Compare
7942b54 to
190927a
Compare
190927a to
ad8ce30
Compare
ad8ce30 to
ed915a5
Compare
6cf0903 to
2718441
Compare
|
Covers round 15 parts 20–25 under the owner's rulings: a bar's height reaches the row inside it; checks use a 4px step, the spacing refusal, and borrowed doc values; a corner ask the part already answers says so, with longhands; plural looks and scaling; picture traits given as commands; the page-colour note and its guide. A saved |
|
/approve-spec 7a5f4c3 |
There was a problem hiding this comment.
Outcome: changes requested. An engineering owner's /approve-spec for this exact head settles the direction, and the checkbox-size release note now names the command it changes. What remains is in the description, and fixing it needs no new commit:
- The description says
_how-question.mjschanges +386/−49 for the whole change, but this head changes it +627/−441. - The "one line short of main" note is stale:
how "rounded corners on the left, and 12px corners"answers exactly asmaindoes, offeringcorners roundorcorners 12px, with noborder-radius 12pxline. - "page #202020, cards #2D2D2D" is listed as a
mainmisreading, but on a neutral thememainalready writes the cards for dark mode only, as this head does. - "secondary button light blue tint with blue text" is listed as written on fewer variants than
main, but both write the text on the secondary variant only; what differs is the fill andmain's dark-mode text line.
Non-blocking: the earlier inline notes still apply (the two-colours note on every line of an answer, the bar's divider, the dead page-colour guard, the orphaned doc comment, the progress-bar test row, and two release-note wordings). CI has not run on this stacked head yet.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Checks release note, reworded in this push (
set … --on checkbox-indicatortakes the box sizes CheckboxInput names, such as--when size:sm, borrowed from another doc that lists the same part): verified against the compiler change and the CheckboxInput and Indicator docs; it now names its command. - Bar release note (a bar's height or vertical padding reaches its one row; the row's own value stays;
--onlysaved without it; a taller part is named): verified by the bar tests. - Corner positions, corners already-so, picture traits, plural looks and page colour release notes: verified by their tests and earlier probes; the plural note repeats a phrase.
- Saved-only release note: verified; it drops the later-entry sentence.
- Part 2, 3, 4, 5, 7, 8, 9, 10, 11 and 13 release-note edits: verified by probes and tests, each saying what ships.
- Every release note is an
[experimental]patch note that names its command: verified for all 18. - Description, six parts in one change, mostly the experimental editor plus the guide paragraph and test times, no Core change: verified.
- Description, the question reader's delta for the whole change (+386/−49): false; it is +627/−441 (blocking).
- Description, a saved
--onlyon a bar is saved without it and read as absent; a savedonlyon a family role gets the group rule: verified by the tests. - Description, the restored readings (state lists keep their state, a text colour for every button goes to every mode, family groups only with
--on, checkbox and radio size asks as onmain, and the others listed): verified by probes and tests. - Description, where
mainmisreads the ask: verified againstmainexcept "page #202020, cards #2D2D2D", which does not reproduce (blocking); the two GitHub dark theme prompts are not given, so not verified. - Description, known differences from
main: the page gradient, the button text colours, rounding and the hover card verified; "secondary button light blue tint with blue text" writes the same variant asmain(blocking); the card-look prompts are not given, so not verified. - Description, the side-list readings: verified by the side-list tests.
- Description, one corner ask "one line short of main": stale; it answers as
maindoes (blocking). - Description, the replays and the held-out answer key: not verifiable from the repository.
- Description, it replaces six part pull requests: not rechecked.
- Description, CI has not run on this head: verified.
Files:
.changeset/experimental-theme-how-checks-size.md: clear (fixed in this push)theme-edit/_how-question.mjs: non-blocking: the two-colours note on every line; a dead page-colour guardtheme-edit/theme-how-clause-subjects.test.mjs: non-blocking: the progress-bar row passes while the answer says the ask contradicts itselftheme-edit/_settings.mjs: non-blocking: the bar reach subtracts only the bar's paddingtheme-edit/_tables.mjs: non-blocking: theHeading weightsdoc comment is orphaned.changeset/experimental-theme-how-plural-numbered-looks.md: non-blocking: a repeated phrase.changeset/experimental-theme-saved-only-reads.md: non-blocking: drops the later-entry sentence- clear, unchanged since the last review: the other 15 release notes,
theme-edit/_check.mjs,_compiler.mjs,_css.mjs,_edit.mjs,_how.mjs,_part-pieces.mjs,_part-words.mjs,_parts.mjs,_picture-traits.mjs,how/how.mjs,themeEditHow.doc.mjs,themeEditSet.doc.mjs,assets/docs/use-a-theme.doc.mjs, both command docs,test-utils/long-ask-binding-rows.mjs,scripts/vitest-node-durations.json, and the other 34 changed test files
|
Landed in #13083. |
Summary: experimental theme editor: round 15 parts 20–25 as one change, so they review and merge together (a bar reaches only its row; checkboxes and radios sized by their box;
how <picture>measures a look's traits; family sizes; a meaningless saved--onlyreads as absent). Mostly the experimental theme editor inpackages/cli; it also rewrites the stable "Use a theme" guide paragraph (the page-colour note,use-a-theme.doc.mjs) and re-timesscripts/vitest-node-durations.json. No Core change.Replaces the six part PRs #12516, #12517, #12518, #12519, #12520 and #12521 (closed when this merges). Based on
theme-r15-p14-19; it retargets onto main once parts 1–19 land._how-question.mjsline delta for the whole change: +386/-49 (each part's own delta below counts the lines that part changes, so where a later part edits an earlier part's lines the part deltas overlap and do not sum to the whole).--onlyon a bar's height or vertical padding is meaningless under AST-050 DEC-11 (a bar spreads through no group):setsaves it without--onlyand says so, and a saved one reads as absent.Restored to main's reading (last commit, after review): every editor answer from rounds 2–25 was replayed against main on about 17,400 asks. Where round 15 read an ask worse than main, the last commit restores main's reading: state lists keep their state on every item; a text color asked for every button goes to every mode; family groups are named only with
--on(a look said of one member stays on that member); checkboxes and radios answer a size ask as main does; progress-bar pieces, shadow words, colour-word alerts, accents, links, badges and corners read as main reads them. The release notes name only what ships, so some part sections below describe readings this change no longer has (the checkbox and radio size step, the family-group reach fromhow, a gradient reaching the toasts).Where main misreads the ask, this change's answer stays:
These answers differ from main on purpose, because main's answer does not do what was asked:
Known differences from main:
These 19 asks answer worse than main here. Each is fixed in a follow-up pull request after this one merges:
The sections below are the six parts' own descriptions.
Ruling recorded: a saved
onlyon a family role (e.g.button-like) gets main's existing rule for anonlyon a group: the same refusal and an unchanged file as main gives forinputswithonly; only the wording differs, because main has no family roles. That is main's behaviour for anonlyon a group, so it needs no new AST-050 rule.Also in this change (it lands in the same batch as parts 2–19): a side list said as where a border goes ends before a comma, ", and" or " and" when another look follows ("cards with a border on top and bottom padding 8px" gives the top border and the bottom padding, as main does; "a border on top and bottom" is still both sides; the same holds for a side said right after its look word: "cards with border left and right padding 12px" gives the left border and the right padding, and "an outline top, bottom padding 8px" reads the outline as a look, never a part); and part 2's release note on per-mode text now covers text asked together with a fill only.
Side lists, replayed family: a side list said after its look word, or placed with on/at/along/across/around (with or without "the", "its" or "their"), ends before another look; replayed against main on 2,938 asks with no answer worse than main. Side-list readings beyond that family are tracked in #13044.
Known, one line short of main (6 asks, tracked in #13044): an ask that contradicts itself about corners, "rounded corners on the left, and 12px corners", offers
corners roundandborder-radius 12pxwithout main's extra theme-widecorners 12pxline.experimental theme set: a bar's height reaches the row inside it
Summary: experimental theme set: a bar's height reaches the row inside it. Editor-only (experimental theme editor in
packages/cli); no Core, spec record or official-theme change.What changes
Phrase rules
_how-question.mjsline delta: +0/-0.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).experimental theme: the page colour note leads with AppShell
Summary: experimental theme: the page colour note leads with AppShell. Mostly the experimental theme editor in
packages/cli; it also rewrites the stable "use a theme" guide's page-colour paragraph (assets/docs/use-a-theme.doc.mjs). No Core, spec record or official-theme change.What changes
Phrase rules
_how-question.mjsline delta: +2/-1.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).experimental theme how: a corner ask the part already answers says so
Summary: experimental theme how: a corner ask the part already answers says so. Editor-only (experimental theme editor in
packages/cli); no Core, spec record or official-theme change.What changes
Phrase rules
_how-question.mjsline delta: +168/-44.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).experimental theme how: display headings are every display size
Summary: experimental theme how: display headings are every display size. Editor-only (experimental theme editor in
packages/cli); no Core, spec record or official-theme change.What changes
Phrase rules
_how-question.mjsline delta: +95/-5.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).experimental theme how: checkboxes and radios are sized by their box
Summary: experimental theme how: checkboxes and radios are sized by their box. Editor-only (experimental theme editor in
packages/cli); no Core, spec record or official-theme change.What changes
Phrase rules
_how-question.mjsline delta: +115/-0.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).experimental theme how:
how <picture>measures the look's traits from its pixelsSummary: experimental theme how:
how <picture>measures the look's traits from its pixels. Editor-only (experimental theme editor inpackages/cli); no Core, spec record or official-theme change.What changes
Phrase rules
_how-question.mjsline delta: +56/-49.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).