Repository navigation
set: a text size said of a title piece goes on its holder's main text - #13251
josephfarina merged 2 commits into
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's decision at this head, and one wording fix is needed whatever that decision is.
No current spec record says where astryx experimental theme editor set <theme> font-size <size> --on <part>-title (or -heading) sends the size, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) or names the record that governs it. What needs settling: with no --state, the size is saved on the holding part into its main text's token (at this head, the top nav and side nav headings), undo by the same name removes it, and other piece names stay refused.
Blocking findings:
- The changeset and both
setdocs say a size said of a part's title piece goes on that part wherever its main text can be told, butfont-size 23px --on top-nav-mega-menu-item-titleis still refused as "not a part you can style" although the item's title is the text--on top-nav-mega-menu-itemsizes, so please name the parts it reaches (the top nav and side nav headings) or extend the branch to the mega menu item with a test row.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
--on top-nav-heading-titlesizes the heading's title, saved on the heading into--text-large-size: verified (new test; built rule).- A title piece's size goes on its part wherever the part's main text can be told: false; only the top nav and side nav headings are reached, and the mega menu item's title is refused.
- Another piece's name (
-subtitle) is refused as before: verified (the subtitle row passes on the base and the head). - The base refused the title line, offering two tokens without saying which line each sets: verified (the new title row fails on the base with that refusal).
- The answer is the same as
font-size 20px --on top-nav-heading: verified (same saved entry and built rule). - Only a font size with no state moves, and everything else falls through to the existing refusal: verified (a state,
line-height,font-weightand a value naming the token stay refused). - Undo by the title's name removes the setting: verified (new test).
--onlyis dropped with a note, as when the holder is named directly: verified (new test; the same shared check).- The set docs describe the reading: verified, with the wording finding above.
- The regression test fails before the change and keeps the subtitle refusal: verified (head test file run on the base).
- One defect is restored, with nothing new under the fix label: not established, since no current spec defines the expected answer (decision above).
- Separable tag-alongs were removed: verified (none).
- Public text has no internal context: verified.
- The whole theme-edit test directory passes: partly checked; the changed file and seven related files pass at this head, and the full directory was not rerun.
Files:
.changeset/experimental-theme-text-size-title-piece.md: finding (the reach claim).packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear; covers the top nav heading only.packages/cli/api/theme-edit/themeEditSet.doc.mjs: finding (the same sentence).packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: finding (the same sentence).
|
Covers the theme-editor reading this pull request records (the owner's ruling): font-size set on a holder's title or heading goes to the holder's main text, with set and undo matching and --only dropped. |
|
/approve-spec eb80432 |
There was a problem hiding this comment.
Approval still waits on an engineering owner's decision at this head; the wording fix from the earlier review is done, and nothing else needs to change.
No current spec record says where astryx experimental theme editor set <theme> font-size <size> --on <part>-title (or -heading) sends the size. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) or names the record that governs it. What needs settling: with no --state, a font size said of top-nav-heading-title or side-nav-heading-title (or -heading) is saved on that heading into its main text's token, undo by the same name removes it, --only is dropped with a note, and other piece names stay refused.
Claims and files checked
Review mode: incremental; reason: none
Changed rules (0): none
Claims:
- Changeset: a font size said of
top-nav-heading-titleorside-nav-heading-title(also-heading) goes on that heading, into its main text's token: verified (test row; both headings and both names checked at this head). - Changeset: another piece's name (
-subtitle) is refused as before: verified (subtitle test row; the side nav subtitle is refused too). - The base refused the title name, and its refusal offered two tokens without saying which line each sets: verified (the title row fails on the base with that refusal).
- A main-piece name (
-title,-heading) means the holder's main text, which today reaches the top nav and side nav headings: verified (the mega menu item's title stays refused and is not claimed). - The answer is the same as
font-size 20px --on top-nav-heading: verified (same saved entry and built rule). - Only a font size with no state moves, and everything else falls through to the existing refusal: verified (a state and
line-heightstay refused). - Undo by the title's name removes the setting: verified (test row; the side nav heading through
-headingtoo). --onlyis dropped with a note, as when the holder is named directly: verified (test row; the same shared check).- The set docs say so: verified (both docs name the two headings and
-heading). - The result after the change is
--text-large-size: 20pxon the top nav heading: verified (test row). - The regression test fails before the change and keeps the subtitle refusal: verified (the test file run against the base).
- One defect is restored, with nothing new under the fix label: not established, since no current spec defines the expected answer (decision above).
- Separable tag-alongs were removed: verified (none).
- Public text has no internal context: verified.
- The whole theme-edit test directory passes: verified (every file passes at this head).
Files:
.changeset/experimental-theme-text-size-title-piece.md: clear.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.
b4e127d to
f30d61f
Compare
There was a problem hiding this comment.
Changes requested: the title-piece reading is owner-approved and the change itself needs no edits, but this branch has to be replayed onto the current feature/theme-editor before it can merge.
- Regression:
feature/theme-editorwas rebuilt after this branch was cut, so the pull request now also carries 24 of that branch's older commits (58 files) and conflicts with it in five files, including bothsetdocs this change edits; replay only this pull request's two commits onto the current base (for examplegit rebase --onto origin/feature/theme-editor HEAD~2), where they apply cleanly with the same five-file change.
A new head clears this head's /approve-spec, so an engineering owner (the author may, as one) records it again at the new head.
Claims and files checked
Review mode: same-head; reason: none
Changed rules (0): none
Claims:
- Changeset: a font size said of the top nav or side nav heading's title (also
-heading) goes on that heading, into its main text's token: verified (test row; both headings and both names). - Changeset and description: another piece's name (
-subtitle) is refused as before: verified (subtitle test row). - Description: the base refused the title name and its refusal offered two tokens without saying which line each sets: verified (the title row fails on the base with that refusal).
- Description: the answer is the same as naming the heading itself, and
--onlyis dropped with a note: verified (same saved entry and built rule;--onlytest row). - Description: undo by the title's name removes the setting: verified (test row).
- Description: the set docs say so: verified (both docs name the two headings and
-heading). - Description: separable tagalongs were removed or split: false at this base (the pull request now carries the base branch's older history; see the finding).
- Description: public text has no internal context: verified.
- Description: the theme-edit test directory passes: verified at this head.
Files:
packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear..changeset/experimental-theme-text-size-title-piece.md: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: conflicts with the base.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: conflicts with the base.- The other 53 files come from the base branch's older history: not this pull request's change; dropped by the rebase.
eb80432 to
a15c10f
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner recording the spec decision again at this head; the change itself needs no edits.
No current spec record says where astryx experimental theme editor set <theme> font-size <size> --on <heading>-title (or -heading) sends the size, and the /approve-spec that decided it names the head before the branch was replayed onto the rebuilt feature/theme-editor, so it does not carry to this head. An engineering owner records it for this head by commenting /approve-spec <full head SHA> on this pull request, or names the record that governs it; the author may do so as an engineering owner. The replay resolves the earlier change request: the pull request is now only its own two commits, with the same patch.
Claims and files checked
Review mode: full; reason: rebase
- Changeset: a font size said of the top or side nav heading's title, or
-heading, goes on that heading's main text, and another piece name is refused: verified (theme-set-takes-text-a-part-reads.test.mjs:259-319; across every part only those four names are accepted). - Description: before,
font-size 20px --on top-nav-heading-titlewas refused, offering two tokens without saying which line each sets: verified (the title row fails on the base with that refusal). - Description: after, it builds
.astryx-top-nav-heading { --text-large-size: 20px; }, the same answer as--on top-nav-heading: verified (test lines 291-296; both names write the same rule). - Description: the move is noted, undo by the title's name removes it, and
--onlyis dropped with a note as when the heading is named: verified (_check.mjs:5805-5814; test lines 289 and 298-319). - Description:
-subtitlestays refused with both tokens: verified (test lines 259-276 pass on the base and the head). - Description: today it reaches the top nav and side nav headings only: verified.
- Description: no new public API, visual representation, default or interaction model: verified (only the accepted
--onvalues and one doc sentence change). - Description: the whole theme-edit test directory passes: verified (558 of 559 test files pass and 1 is skipped; 6,134 tests pass, 4 skipped, 1 todo).
.changeset/experimental-theme-text-size-title-piece.md: clear.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.
|
/approve-spec a15c10f |
There was a problem hiding this comment.
Changes requested: the title-piece reading is decided for this head and the code needs no edits, but the branch has to be replayed onto the current feature/theme-editor before it can merge.
- Regression: both
setdocs (packages/cli/api/theme-edit/themeEditSet.doc.mjs:16andpackages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs:15) now conflict withfeature/theme-editor, where #13243 added its own sentence to the same description, so replay the two commits onto the current base and keep both sentences in each doc.
The code and the test file merge cleanly, and the test file passes on the merged code with both sentences kept. The new head needs the spec decision recorded again: an engineering owner comments /approve-spec <full head SHA> on it, and the author may do so as an engineering owner.
Claims and files checked
Review mode: same-head; reason: none
- Changeset: a font size said of the top or side nav heading's title, or
-heading, goes on that heading's main text: verified (theme-set-takes-text-a-part-reads.test.mjs:278-322; across every part, only those four names are accepted). - Changeset: another piece's name,
-subtitle, is refused as before: verified (test lines 259-276). - Description: before,
font-size 20px --on top-nav-heading-titlewas refused, offering two tokens without saying which line each sets: verified (the title row fails on the base with that refusal). - Description: where the holder's main text can be told,
-titleor-headingmeans that text, which today reaches the top nav and side nav headings, and other piece names are refused as before: verified (_check.mjs:5799-5805; every part checked on base and head). - Description: the line is set on the holder as if said of it, the move is noted, and the answer matches
--on top-nav-headingunder the earlier main-text rule: verified (test lines 288-296; both names write only--text-large-size: 20px). - Description: one branch serves set and undo, drops
--onlywith a note as the holder named directly does, and leaves everything else to the existing refusal: verified (_check.mjs:5805-5827,:5836-5853; test lines 297-319). - Description: the set docs say so: verified (one sentence in each
setdoc naming the two headings). - Description: after the change,
.astryx-top-nav-headinggets--text-large-size: 20px: verified (test lines 291-296). - Description: the regression test fails before and checks the note, the saved part, undo by the title's name and
--only, and the subtitle row keeps the refusal: verified (14 of 15 rows pass on the base, the title row failing). - Description: one defect restored, with no new public API, default or interaction model: verified (no command, option or export changes).
- Description: the whole theme-edit test directory passes: verified at this head (558 of 559 test files pass, 1 skipped).
- Description: public text carries no internal context: verified.
packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear..changeset/experimental-theme-text-size-title-piece.md: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: conflicts with the current base (finding above).packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: conflicts with the current base (finding above).
a15c10f to
56510e4
Compare
|
/approve-spec 56510e4 |
There was a problem hiding this comment.
Approved: the title-piece reading is decided for this head, and the replay onto the current feature/theme-editor resolves the docs conflict from the last review.
No changes are needed. The whole theme-edit test directory passes on this head, and the new title row fails on the base as expected.
Claims and files checked
Review mode: full; reason: rebase
- Changeset: a font size said of the top or side nav heading's title, or
-heading, goes on that heading's main text: verified (theme-set-takes-text-a-part-reads.test.mjs:313-357; across every part, only those four names are accepted). - Changeset: another piece's name,
-subtitle, is refused as before: verified (test lines 294-311). - Description: before,
font-size 20px --on top-nav-heading-titlewas refused, offering two tokens without saying which line each sets: verified (the title row fails on the base with that refusal). - Description: where the holder's main text can be told,
-titleor-headingmeans that text, which today reaches the top nav and side nav headings, and other piece names are refused as before: verified (_check.mjs:5800-5805; every part checked on base and head). - Description: the line is set on the holder as if said of it, the move is noted, and the answer matches
--on top-nav-headingunder the earlier main-text rule: verified (test lines 323-331; both names save the same entry and write only--text-large-size: 20px). - Description: one branch serves set and undo, drops
--onlywith a note as the holder named directly does, and leaves everything else to the existing refusal: verified (_check.mjs:5806-5828,:5837-5854; test lines 332-354). - Description: the set docs say so: verified (one sentence in each
setdoc naming the two headings, beside the existing sentences). - Description: after the change,
.astryx-top-nav-headinggets--text-large-size: 20px: verified (test lines 326-331). - Description: the subtitle line is still refused with both tokens: verified (test lines 294-311).
- Description: the regression test fails before and checks the note, the saved part, undo by the title's name and
--only, and the subtitle row keeps the refusal: verified (16 of 17 rows pass on the base, the title row failing). - Description: one defect restored, with no new public API, default or interaction model: verified (no command, option or export changes).
- Description: the whole theme-edit test directory passes: verified at this head (561 of 562 test files pass, 1 skipped).
- Description: public text carries no internal context: verified.
.changeset/experimental-theme-text-size-title-piece.md: clear.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear (keeps the base branch's newer sentence).packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear (keeps the base branch's newer sentence).
- #13196 how: every part named before a colon is a subject of the list - #13283 experimental theme how: a file named in url() is a value, written as typed - #13297 experimental theme how: a file in a follow-up ask is written as typed - #13298 experimental theme how: a second url() layer left unwritten is named as not used - #13317 experimental theme how: a file's path changes no other ask inside the question reader - #13251 set: a text size said of a title piece goes on its holder's main text - #13374 experimental theme how: a label after an earlier part's sentence still sets its setting - #13396 experimental theme how: a heading's label run reads two-word and hyphenated labels; a short sentence is no heading - #13263 how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item - #13378 fix(cli): a radius named for one corner writes that corner only - #13389 experimental theme how: the url() note no longer lists the follow-up ask as uncovered - #13435 experimental theme how: the url() layer note names only the phrasing still left out - #13449 how: a colon-list item is read in the sentence that holds it as typed
|
Landed on main in #13412. |
User impact
set <theme> font-size 20px --on top-nav-heading-titlewas refused: the title is drawn inside the top nav heading, not a part of its own. The refusal offered two tokens without saying which line each sets.Problem and solution fit
Where the holder's main text can be told (its pieces each read a text size token, and one is the largest), a name for its main piece (
-title,-heading) means that text. Today that reaches the top nav and side nav headings (top-nav-heading-title,side-nav-heading-title); other pieces' names are refused as before. The fix sets the line on the holder, as if said of it, and notes the move; any other piece name (-subtitle) is refused as before, since which line it is cannot be told apart.Expected behavior and authority
Builds on the main-text rule for a part with several text pieces (#13234): the same answer as
font-size 20px --on top-nav-heading.Smallest restoration
One branch in set's unknown-part check: a
font-sizesaid of<holder>-titleor<holder>-headingwith no state, wheremainTextSizeTokennames the holder's main text, moves onto the holder, for set and for undo;--only, which changes nothing on the holder, is dropped with a note, as it is when the holder is named directly. Everything else falls through to the existing refusal. The set docs say so.Evidence
.astryx-top-nav-heading { --text-large-size: 20px; }.font-size 11px --on top-nav-heading-subtitleis refused with both tokens, as before.--only; the subtitle row keeps the refusal).Scope
Components: cli/api/theme-edit (set)
Testing
vitest run packages/cli/api/theme-edit(the whole theme-edit directory) passes.replay: worse 0 at 56510e4
preflight: pass 56510e4