Repository navigation
experimental theme: twelfth round of fixes (FINAL-43/44 hunts, review follow-ups) - #11965
Conversation
…ed, reads a possessive owner's own element as that element, and a later "the shadows softer" as the theme's
…weight no browser reads and a number key that is no level; a heading level is read as Core reads it; a weight word after a known family start is a weight
…r a letter or a digit; text glued after it is its own token), so such a value is refused for its grammar, never written or blamed on the token; states joined by + with spaces are read piece by piece; a saved state is built as the part's own and left as saved, so compile's stamp matches the file after show
…pelled fields, and a BigInt typography value held in a const is named
…se and settings in key, swapped, quoted and after-value forms, settings in the name, two bases, like as base, --theme as an option, a theme with a setting pasted on, value lists, a pasted command, undo by value in the typed scope
…ing put in it is read as its string, and a query on any module a starter's theme imports is refused (FINAL-43 F43-01/02)
…the way, is that share less of a line or fill; a reference named with its status or variant is that look of it, never the part changed; a base theme's own look for a variant is what it shows, and a see-through fill gives the next paint it draws
… a twin in other letters is the setting listed twice; N6: a field written several ways is read once with a note; R02 N1: an unread field is named; N9: a pasted entry without a value is read by its thing)
… the surface's scheme, listed once, and fixed in that scheme; no line where the part lets the surface's ground through and the page needs the other color
…lor when thicker; possessives name the owner's own element (its state kept, by the owner's first word too), the parts themselves before a thing they have, and say an element the owner lacks; a height in a decimal unit is that height, a negative one refused
…, so pairs are light-dark() and Core's media-surface rules are written, and one with extends and no tokens builds over its base; a spread of a package theme is refused naming extends; a stylesheet the source imports is named as one the outputs do not carry; a theme module's changes to console, a built-in global or the file mode mask are put back)
… that place draws it as; two states said of one part are both at once; a menu's separator is a divider too; a variant's token refusal keeps the state and mode - One reader (elementOfPlace) for "<element> in|of <place>" and "<place>'s <element>", each place tried first first: the place itself by the last words of its name (the indicator in checkboxes), a part named after it by its rest or one word of it (the indicator in selects), a lexicon phrase said owner first (the knob of switches: the switch knob), a part the part data draws inside it by the last words of its name (the item in the context menu: dropdown-menu-item), a token group the place holds parts of (the buttons' icons), or the one inside whose own state the words name (today's date in the calendar). A plain part drawn everywhere (a toast's button) is noted; "of" names an element only by name or in a state; "on" stays a look of the part. A state read from the part, never said, is let go when the element has none. Replaces the earlier element-of-a-place block. - "The checked and disabled checkbox": the clause split and the list grammar keep two states said of one singular part together; how writes them in the part's own order. "highlighted" is a state word. - set: a doc state Core marks with an ARIA attribute (isPressed, aria-pressed) goes with an interaction (isPressed+hover); a typed ARIA prefix names a doc state (aria-pressed on a toggle button is isPressed). - Part data: what an untargeted element draws is each part its parent element carries, the line too (a dropdown menu's separator is a divider). PART_DATA_VERSION 24. - checkTokenOn: the variant refusal's lines keep the setting's state and mode. - Tests: parts71 writes the tab's states in its own order; new theme-F-elements.
…its fill, and a possessive paint is that paint; a word for a look with no fill names the variant drawn with none; a role the part lacks names which parts so set refuses it by name; see-through by a share on a part and fainter text theme-wide; a focus ring of one variant stays on it; two excepts joined by and keep each
…e it cannot be kept to (the dialog's buttons, the menu separators) and says why, answering on the place's own element when Core draws one; the controls N tall moves every control height together
… paint in "the color of the links"; a part's fainter or muted text, said with an owner's possessive or a place, is its secondary text, and a fainter word before the text beside another way says which text; a part in one state joined by and to a second state carrying the ask is in both at once
…ken the container holds for it, else nothing, saying why; a card's title is the heading in it
- One mechanism, C's placeStrict, now set by every place reader: the element reader (a plain part drawn in the place, "the close button of toasts"), the possessive and divider blocks, the generic place reader ("buttons inside cards", when the place draws the part), and a title Core draws as a heading inside a part ("the card title"). The answer keeps only options whose every step is a token the part reads, unscoped or on a part the container draws, never one the container's own element reads and never under a part's variant; those are set on the container. A part's own setting would reach every one: nothing is written, and the answer says why (for a title, that Core has no title part). The container's own element (the top nav's heading) is kept to it already.
- "headings in cards bigger", "the card title bigger", "sheet titles bigger": the heading size tokens on the card or sheet. "buttons inside cards red/smaller", "the button groups' dividers", "the tabs' divider", "the header in cards gray", "the toggle group's buttons": nothing written.
- A text role ("the muted text in cards") is never a whole-theme token family; a part named after the place's own word (the menu item of the dropdown) is the place's.
- Tests: theme-F-elements (toast close button text), theme-parts64 (sheet titles answered), c-final43b (toggle group's buttons write nothing, agreed with C); new theme-F-scoped.
…fault export shaped as a doc) is refused as a doc, naming the theme source beside it, and nothing is written
…ine and names the every-calendar line; a CSS property with no --on and a part label in its value offers it on that part
- how: an element whose state only another component's part takes, drawn in the layer the place opens ("the today date in the date picker"), is refused as "DateInput's calendar is the plain Calendar, drawn in the layer DateInput opens: calendar-day there is every Calendar's, so a change there reaches every calendar; nothing is written", naming --on calendar-day --state today as what changes every calendar's today day (said, never offered as a step).
- set: background-color 'card: #eeeeee' with no --on offers set <theme> background-color '#eeeeee' --on card first, for a label naming a part or group.
- Tests in theme-F-elements.
… as a type mismatch
…t itself before the theme's own - tokenSetOn(part, token, mode): the last setting of that token on the part or a group it is in, with no variant or state, for that mode (or both). partPropNow and the value-question readers (census values, any read, focus ring, surfaces) resolve tokens through it before the theme's value, so "how thick are dividers" after --border-width 3px --on divider is 3px, and "how round are the cards now?" after --radius-container 20px --on card is 20px; another part keeps the theme's own. - New theme-F-values.
…p in cards) and writes nothing
…ted twice; a top-level base is the base (FINAL-44 R01 N1, N5)
…d the base word as the base; the name typed as an option is that name
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 9859606 |
…ild test files; format a changeset
|
/approve-spec 58b49d7 |
There was a problem hiding this comment.
Changes requested. An engineering owner's /approve-spec for this head settles the direction of the editor round and the theme build changes; four fixes remain.
Blocking:
build-stable-L-final43.test.mjsF43-08 and F43-09 import@astryxdesign/theme-neutral, whosedist/CI'stest-nodenever builds (it builds only Core), so both fail there with "Cannot find module …/theme-neutral/dist/source.cjs"; give the fixture its own small base-theme package, or skip when the theme is unbuilt.- The shared
writtenStringreader also makes stabletheme build --watch, the built module's carried imports,doctor's shipped-import check andtemplatecopy follow template-literal imports, but its only release note is[experimental]and names the starter app, which the release record (FR22) does not allow for stable commands; add a[fix]changeset that names them, or keep that reading to the starter app. .changeset/experimental-theme-how-c-places.mdsays "the menu separators thicker" now writes nothing, but this head writes--border-width 2px --on dropdown-menu-divider; drop that example or say where it writes.- The description lists as this round's fixes readings that
mainalready has ("3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning); narrow those lines to what this round adds.
Also worth taking: _edit.mjs:5480-5483 leaves meant's comment and type above scopeAsRead, which repeats meant's parsing, and three menu-separator tests now accept either answer.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim:
theme buildwarns typography values wherever written, weights no browser reads and number keys that are no level, and both tools read a level as Core does. Verified: the typography build and editor tests pass. - Claim: a number weight is named a type mismatch. Verified: the typography build test and the updated editor test pass.
- Claim: the date picker's today refusal names the every-calendar line, and a labelled value offers that part. Verified: the elements test passes.
- Claim: an element named in, of or after a part is the part that place draws; menu separators take the menu's own divider. Verified: the elements test passes, and a probe writes on the menu's divider.
- Claim: a part kept to its container writes a container token or nothing. Verified: the scoped test passes.
- Claim: a value question reads a token set on the part first. Verified: the values test passes.
- Claim: the starter refuses template-literal and query imports. Verified by the starter test; the same reader also reaches stable commands (second blocking point).
- Claim: media-surface contrast is measured in the surface's scheme, listed once, with no cycling line. Verified: the media-scheme test passes.
- Claims:
newreads keys, swapped and quoted pairs, settings in the name and the name as an option; a pasted command is read; an undo by value leads with the typed scope. Verified: both input-reading tests pass. - Claims: possessives, size-named heights, decimal and negative heights, later shadows and corners, radio and checkbox borders. Verified: both FINAL-43
howtests pass. - Claim: "the menu separators thicker" now writes nothing. False: it writes
--border-width 2pxon the menu's divider (third blocking point). - Claims: unknown word held by a place; leftovers; shares, references, base looks; text parts like filled parts, transparent variants, missing roles, see-through shares, focus rings, two excepts. Verified: their tests pass.
- Claims: saved twins in other letters, fields written twice, unread fields, value-less saved entries, typed property case, top-level
base,+states, saved state spellings aftershow, gluedvar(). Verified: their tests pass. - Claims: plain-object themes resolve,
extendswith no tokens builds, a package spread is refused namingextends, an imported stylesheet is warned, globals and umask are restored. Verified once the neutral theme is built; two of these tests fail in CI's setup (first blocking point). - Claim: a doc module is refused with
ERR_THEME_LOAD, naming the source beside it. Verified: the doc-module test passes. - Claim: a theme imported and then exported is read for misspelled fields, and a BigInt in a const is named. Verified: the updated values test passes.
- Description: "3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning. False as this round's fixes: they already ship on
main(fourth blocking point). - Description: the full CLI suite passes. Not reproduced: two new build tests fail without the neutral theme built, as in CI.
- Description: structure, changesets and lint are clean. The lint check passes at this head; the typecheck was not run here.
- Description: the held-out
howscore. Not verifiable from the repository. - Description: test times come in a later push. Already in: every new test file has a recorded time.
.changeset/:experimental-theme-I-starter-query-literal.md: labelled [experimental] for a change that reaches stable commands (blocking);experimental-theme-how-c-places.md: false example (blocking);b-typography-values-reach.md,b-typography-weight-type.md,experimental-theme-F-datepicker-reason.md,experimental-theme-F-elements.md,experimental-theme-F-scoped.md,experimental-theme-F-values.md,experimental-theme-a-media-scheme.md,experimental-theme-g2-final43.md,experimental-theme-g2-final44.md,experimental-theme-how-c-final43.md,experimental-theme-how-c-final43b.md,experimental-theme-how-c-unknown-place.md,experimental-theme-how-h-leftovers44.md,experimental-theme-how-round43-readers.md,experimental-theme-how-round43b-readers.md,experimental-theme-n-f43.md,experimental-theme-n-f44.md,experimental-theme-state-pieces.md,experimental-theme-var-glued.md,theme-build-L-final43.md,theme-build-doc-not-theme.md,theme-build-k43-values.md: clearpackages/cli/api/theme-edit/:_edit.mjs: stray comment and repeated scope parsing;_settings.mjs: savedStateRead doc sentence;theme-how-c-chaos43.test.mjs: accepts either answer;theme-how-c-final42.test.mjs: accepts either answer;theme-how-c-places.test.mjs: accepts either answer;_check.mjs,_compiler.mjs,_css.mjs,_how-question.mjs,_normal.mjs,_parts.mjs,_preview-app.mjs,theme-F-elements.test.mjs,theme-F-scoped.test.mjs,theme-F-values.test.mjs,theme-I-starter-types.test.mjs,theme-a-media-scheme.test.mjs,theme-g2-final43.test.mjs,theme-g2-final44.test.mjs,theme-how-c-final43.test.mjs,theme-how-c-final43b.test.mjs,theme-how-c-unknown-place.test.mjs,theme-hunt-h-leftovers44.test.mjs,theme-hunt-h-round42.test.mjs,theme-hunt-h-round43.test.mjs,theme-hunt-h-round43b.test.mjs,theme-hunt111.test.mjs,theme-hunt241.test.mjs,theme-k43-values.test.mjs,theme-n-f43.test.mjs,theme-n-f44.test.mjs,theme-parts64.test.mjs,theme-parts71.test.mjs,theme-saved-name-spellings.test.mjs,theme-state-pieces.test.mjs,theme-typography-family.test.mjs,theme-var-glued.test.mjs: clearpackages/cli/api/theme/build/:build-stable-L-doc-not-theme.test.mjs: unused exists, THEME, NEUTRAL;build-stable-L-final43.test.mjs: F43-08 and F43-09 fail in CI setup (blocking); unused exists;build-stable-typography-values.test.mjs,build.mjs,icon-imports.mjs,input-fields.mjs,null-values.mjs,typography-values.mjs: clearpackages/cli/clients/cli/commands/experimental/:theme.mjs: clearpackages/cli/clients/cli/lib/:json-shim.mjs: clearpackages/cli/foundation/discovery/:template-needs.mjs: reaches stable commands without a release note (blocking);template-needs.test.mjs: clearpackages/cli/foundation/fs/:module-loader.mjs: clearpackages/cli/foundation/render/:embedded-imports.mjs: reaches stable commands without a release note (blocking);embedded-imports.test.mjs: clearpackages/cli/foundation/text/:written-string.mjs: reaches stable commands without a release note (blocking)scripts/:vitest-node-durations.json: clear
PR Analysis Report🔎 Preview ·
|
|
/approve-spec 6f58d1b |
There was a problem hiding this comment.
Changes requested. The latest push merges main and leaves this pull request's own changes as they were, so the four fixes from the last review remain; an engineering owner's /approve-spec for this head settles the direction of the editor round and the theme build changes.
Blocking:
build-stable-L-final43.test.mjsF43-08 and F43-09 import@astryxdesign/theme-neutral, whosedist/CI'stest-nodenever builds (it builds only Core), so both fail there with "Cannot find module …/theme-neutral/dist/source.cjs"; give the fixture its own small base-theme package, or skip when the theme is unbuilt.- The shared
writtenStringreader also makes stabletheme build --watch, the built module's carried imports,doctor's shipped-import check andtemplatecopy follow template-literal imports, but its only release note is[experimental]and names the starter app, which the release record (FR22) does not allow for stable commands; add a[fix]changeset that names them, or keep that reading to the starter app. .changeset/experimental-theme-how-c-places.mdsays "the menu separators thicker" now writes nothing, but this head writes--border-width 2px --on dropdown-menu-divider; drop that example or say where it writes.- The description lists as this round's fixes readings that
mainalready has ("3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning); narrow those lines to what this round adds.
Also worth taking: _edit.mjs:5480-5483 leaves meant's comment and type above scopeAsRead, which repeats meant's parsing, and three menu-separator tests accept either answer.
Claims and files checked
Review mode: incremental; reason: none
- Since the last review: one merge of
mainwith no conflict resolution; this pull request's own diff is unchanged, and the testsmainadded beside its files pass on the merged head. - Claim:
theme buildwarns typography values wherever written, weights no browser reads and number keys that are no level, and both tools read a level as Core does. Verified: the typography build and editor tests pass. - Claim: a number weight is named a type mismatch. Verified: the typography build test and the updated editor test pass.
- Claim: the date picker's today refusal names the every-calendar line, and a labelled value offers that part. Verified: the elements test passes.
- Claim: an element named in, of or after a part is the part that place draws; menu separators take the menu's own divider. Verified: the elements test passes, and a probe writes on the menu's divider.
- Claim: a part kept to its container writes a container token or nothing. Verified: the scoped test passes.
- Claim: a value question reads a token set on the part first. Verified: the values test passes.
- Claim: the starter refuses template-literal and query imports. Verified by the starter test; the same reader also reaches stable commands (second blocking point).
- Claim: media-surface contrast is measured in the surface's scheme, listed once, with no cycling line. Verified: the media-scheme test passes.
- Claims:
newreads keys, swapped and quoted pairs, settings in the name and the name as an option; a pasted command is read; an undo by value leads with the typed scope. Verified: both input-reading tests pass. - Claims: possessives, size-named heights, decimal and negative heights, later shadows and corners, radio and checkbox borders. Verified: both FINAL-43
howtests pass. - Claim: "the menu separators thicker" now writes nothing. False: it writes
--border-width 2pxon the menu's divider (third blocking point). - Claims: unknown word held by a place; leftovers; shares, references, base looks; text parts like filled parts, transparent variants, missing roles, see-through shares, focus rings, two excepts. Verified: their tests pass.
- Claims: saved twins in other letters, fields written twice, unread fields, value-less saved entries, typed property case, top-level
base,+states, saved state spellings aftershow, gluedvar(). Verified: their tests pass. - Claims: plain-object themes resolve,
extendswith no tokens builds, a package spread is refused namingextends, an imported stylesheet is warned, globals and umask are restored. Verified once the neutral theme is built; two of these tests fail in CI's setup (first blocking point). - Claim: a doc module is refused with
ERR_THEME_LOAD, naming the source beside it. Verified: the doc-module test passes. - Claim: a theme imported and then exported is read for misspelled fields, and a BigInt in a const is named. Verified: the updated values test passes.
- Description: "3 times as soft", "half as small", "exactly 36px", the two keep and except examples, an unknown word between a part and the change, and the light-dark pair warning. False as this round's fixes: they already ship on
main(fourth blocking point). - Description: the full CLI suite passes. Not reproduced: two new build tests fail without the neutral theme built, as in CI.
- Description: structure, changesets and lint are clean. The lint check passes at this head; the typecheck was not run here.
- Description: the held-out
howscore. Not verifiable from the repository. - Description: test times come in a later push. Already in: every new test file has a recorded time.
.changeset/:experimental-theme-I-starter-query-literal.md: labelled [experimental] for a change that reaches stable commands (blocking);experimental-theme-how-c-places.md: false example (blocking);b-typography-values-reach.md,b-typography-weight-type.md,experimental-theme-F-datepicker-reason.md,experimental-theme-F-elements.md,experimental-theme-F-scoped.md,experimental-theme-F-values.md,experimental-theme-a-media-scheme.md,experimental-theme-g2-final43.md,experimental-theme-g2-final44.md,experimental-theme-how-c-final43.md,experimental-theme-how-c-final43b.md,experimental-theme-how-c-unknown-place.md,experimental-theme-how-h-leftovers44.md,experimental-theme-how-round43-readers.md,experimental-theme-how-round43b-readers.md,experimental-theme-n-f43.md,experimental-theme-n-f44.md,experimental-theme-state-pieces.md,experimental-theme-var-glued.md,theme-build-L-final43.md,theme-build-doc-not-theme.md,theme-build-k43-values.md: clearpackages/cli/api/theme-edit/:_edit.mjs: stray comment and repeated scope parsing;_settings.mjs: savedStateRead doc sentence;theme-how-c-chaos43.test.mjs: accepts either answer;theme-how-c-final42.test.mjs: accepts either answer;theme-how-c-places.test.mjs: accepts either answer;_preview-app.mjs: clear, and its merge withmain's page-ranking change is clean;_check.mjs,_compiler.mjs,_css.mjs,_how-question.mjs,_normal.mjs,_parts.mjs,theme-F-elements.test.mjs,theme-F-scoped.test.mjs,theme-F-values.test.mjs,theme-I-starter-types.test.mjs,theme-a-media-scheme.test.mjs,theme-g2-final43.test.mjs,theme-g2-final44.test.mjs,theme-how-c-final43.test.mjs,theme-how-c-final43b.test.mjs,theme-how-c-unknown-place.test.mjs,theme-hunt-h-leftovers44.test.mjs,theme-hunt-h-round42.test.mjs,theme-hunt-h-round43.test.mjs,theme-hunt-h-round43b.test.mjs,theme-hunt111.test.mjs,theme-hunt241.test.mjs,theme-k43-values.test.mjs,theme-n-f43.test.mjs,theme-n-f44.test.mjs,theme-parts64.test.mjs,theme-parts71.test.mjs,theme-saved-name-spellings.test.mjs,theme-state-pieces.test.mjs,theme-typography-family.test.mjs,theme-var-glued.test.mjs: clearpackages/cli/api/theme/build/:build-stable-L-doc-not-theme.test.mjs: unusedexists,THEME,NEUTRAL;build-stable-L-final43.test.mjs: F43-08 and F43-09 fail in CI setup (blocking); unusedexists;build-stable-typography-values.test.mjs,build.mjs,icon-imports.mjs,input-fields.mjs,null-values.mjs,typography-values.mjs: clearpackages/cli/clients/cli/commands/experimental/:theme.mjs: clearpackages/cli/clients/cli/lib/:json-shim.mjs: clearpackages/cli/foundation/discovery/:template-needs.mjs: reaches stable commands without a release note (blocking);template-needs.test.mjs: clearpackages/cli/foundation/fs/:module-loader.mjs: clearpackages/cli/foundation/render/:embedded-imports.mjs: reaches stable commands without a release note (blocking);embedded-imports.test.mjs: clearpackages/cli/foundation/text/:written-string.mjs: reaches stable commands without a release note (blocking)scripts/:vitest-node-durations.json: clear, and its merge withmain's entries is clean
…nds that read them; the places note drops the menu-separator example
…ckage of its own F43-08/F43-09 imported @astryxdesign/theme-neutral, whose dist CI's node tests never build. The fixture now installs its own small base-theme package (a defineTheme() result with tokens and an icon registry, needing only Core) in the temp project, so both keep their coverage and run anywhere.
…der, with its comment and type back on meant
… own divider (--on dropdown-menu-divider), and nothing for a plain part a place cannot hold
|
/approve-spec d44b2b5 |
…ith such an import (its install line)
|
/approve-spec f4b8251 |
There was a problem hiding this comment.
Changes requested. This push fixes every point from the last review, and an engineering owner's /approve-spec for this head settles the direction; two text fixes remain.
Blocking:
.changeset/theme-build-template-literal-imports.mdsays a template-literal import is read "wherever the CLI reads a module's imports", butintegration add-theme's package list,doctor's theme and built-module checks andswizzle's module graph still read quoted strings only, so replace that phrase with "by these commands:" and keep the four commands it lists.- The description lists "selector border red" turning every variant while keeping the error, warning and focus colors as this round's fix, but
mainalready answers it with the same lines (itstheme-how-c-final42b.test.mjsasserts it, andtheme-how-c-final43.test.mjs's selector case passes againstmain), so drop that sentence or name this round's keep fixes instead (two excepts joined by "and", one variant's focus ring).
Also worth taking: Miss: the "shadows softer" case in theme-how-c-final43.test.mjs passes on main, which drops the shadows, because every over an empty slice is true; and the theme-how-c-places.test.mjs header still says the menu separators write nothing.
Claims and files checked
Review mode: incremental; reason: none
- Since the last review: five commits that add the
[fix]note, fix the places note, give the two build tests their own base-theme package, merge the undo refusal's two scope readers, and pin the menu-separator tests; they pass with only Core built. - Changeset: template-literal imports are a fix for stable commands. False in its scope ("wherever"; first blocking point); the four commands it names (
theme build --watch, the built module's carried imports,doctor's shipped-import check,template's install line) are verified at their call sites. - Changeset: the starter refuses template-literal and query imports. Verified: the starter test fails on
mainand passes here. - Changeset: an element in a place it cannot be kept to writes nothing, a place's own element is answered, and "the controls N tall" moves every height. Verified by its tests and by asking
howonmainand here. - Changeset: one size named moves only that height, a possessive owner's element, a later "shadows softer" or "corners rounder" is theme-wide. Verified by asking
howonmainand here; the shadows test itself also passes onmain(non-blocking). - Changesets: radio and checkbox borders, possessives, decimal and negative heights; elements of a part, parts kept to a container, value questions, the date picker's today; an unknown word before a place; shares, references and base looks; text parts like filled parts, transparent variants, missing roles, focus rings, two excepts; leftovers. Verified: their tests fail on
mainand pass here. - Changesets:
new,set,showandundoread typed input; saved twins, fields written twice, unread fields, value-less entries, a property in other letters, a top-levelbase;+states with spaces; gluedvar(). Verified: their tests fail onmainand pass here. - Changeset: media-surface contrast in the surface's scheme. Verified: its test fails on
mainand passes here. - Changesets: plain-object themes through
defineTheme,extendswith no tokens, a refused package spread, an imported stylesheet warned, globals and umask restored; a doc module refused; misspelled fields through an imported-then-exported theme and a BigInt in a const; typography values wherever written, unreadable weights, number keys, a number weight as a type mismatch. Verified: their build tests fail onmainand pass here with only Core built. - Description: elements of a place (the highlighted option, the knob, the tabs' indicator, the header cells, the dialog's close button, the menu's items, the menu's separators). Verified:
mainanswers each on the wrong part or every part. - Description: an element with no part of its own, or one a place cannot keep, writes nothing and says why; headings and titles in a container go on the container. Verified; a title's color writes nothing and says why.
- Description: an unknown word held by a place; shares in words or figures, decimal heights, one size's height, the controls N tall. Verified:
mainread the two shares the other way round and "2.5rem" as 5rem. - Description: references by the color they show, by look, a base's own look first; a value question reads the part's token first. Verified.
- Description: "selector border red" keeps the status and focus colors as this round's fix. False:
mainalready does it (second blocking point). - Description: reading what was typed, settings saved in other letters or twice,
baseas the base, gluedvar(), saved state spellings. Verified. - Description: build warnings for misspelled fields, typography values, weights and heading levels; doc modules; plain-object themes, spreads, stylesheets, globals; starter refusals; media-surface contrast. Verified; misspelled fields in a const or a spread were already warned on
main, the import and re-export forms are new. - Description: the full CLI suite passes. Not reproduced here: the 33 changed test files pass with only Core built.
- Description: structure, changesets and lint are clean. Verified for lint and typecheck, which pass at this head.
- Description: the held-out
howscore. Not verifiable from the repository. - Description: test times come in a later push. Already in: every new test file has a recorded time.
.changeset/:theme-build-template-literal-imports.md: overclaims its scope (blocking);b-typography-values-reach.md,b-typography-weight-type.md,experimental-theme-F-datepicker-reason.md,experimental-theme-F-elements.md,experimental-theme-F-scoped.md,experimental-theme-F-values.md,experimental-theme-I-starter-query-literal.md,experimental-theme-a-media-scheme.md,experimental-theme-g2-final43.md,experimental-theme-g2-final44.md,experimental-theme-how-c-final43.md,experimental-theme-how-c-final43b.md,experimental-theme-how-c-places.md,experimental-theme-how-c-unknown-place.md,experimental-theme-how-h-leftovers44.md,experimental-theme-how-round43-readers.md,experimental-theme-how-round43b-readers.md,experimental-theme-n-f43.md,experimental-theme-n-f44.md,experimental-theme-state-pieces.md,experimental-theme-var-glued.md,theme-build-L-final43.md,theme-build-doc-not-theme.md,theme-build-k43-values.md: clearpackages/cli/api/theme-edit/:_settings.mjs:savedStateReaddoc sentence;theme-how-c-final43.test.mjs: shadows case passes onmain;theme-how-c-places.test.mjs: stale header;_edit.mjs: clear (the refactor keeps behavior);_check.mjs,_compiler.mjs,_css.mjs,_how-question.mjs,_normal.mjs,_parts.mjs,_preview-app.mjs,theme-F-elements.test.mjs,theme-F-scoped.test.mjs,theme-F-values.test.mjs,theme-I-starter-types.test.mjs,theme-a-media-scheme.test.mjs,theme-g2-final43.test.mjs,theme-g2-final44.test.mjs,theme-how-c-chaos43.test.mjs,theme-how-c-final42.test.mjs,theme-how-c-final43b.test.mjs,theme-how-c-unknown-place.test.mjs,theme-hunt-h-leftovers44.test.mjs,theme-hunt-h-round42.test.mjs,theme-hunt-h-round43.test.mjs,theme-hunt-h-round43b.test.mjs,theme-hunt111.test.mjs,theme-hunt241.test.mjs,theme-k43-values.test.mjs,theme-n-f43.test.mjs,theme-n-f44.test.mjs,theme-parts64.test.mjs,theme-parts71.test.mjs,theme-saved-name-spellings.test.mjs,theme-state-pieces.test.mjs,theme-typography-family.test.mjs,theme-var-glued.test.mjs: clearpackages/cli/api/theme/build/:build-stable-L-doc-not-theme.test.mjs: unusedexists,THEME;build-stable-L-final43.test.mjs: unusedexists;build-stable-typography-values.test.mjs,build.mjs,icon-imports.mjs,input-fields.mjs,null-values.mjs,typography-values.mjs: clearpackages/cli/clients/cli/:commands/experimental/theme.mjs,lib/json-shim.mjs: clearpackages/cli/foundation/:discovery/template-needs.mjs,discovery/template-needs.test.mjs,fs/module-loader.mjs,render/embedded-imports.mjs,render/embedded-imports.test.mjs,text/written-string.mjs: clearscripts/:vitest-node-durations.json: clear
…laces header names the separators' divider; the template-literal note names its commands
|
/approve-spec 6125886 |
There was a problem hiding this comment.
Approved pending CI. This push fixes both points from the last review: the [fix] note for template-literal imports now names only the commands that read them, and the description no longer lists the selector-border keep that main already had; the softer-shadows test now fails without the fix, and the places test header matches its assertions. CI's test jobs have not run on this head yet, so the approval waits on them, and two optional tidy-ups are in the inline comments.
Claims and files checked
Review mode: incremental; reason: none
- Since the last review: one commit rewords the
[fix]note to "by these commands:", makes the softer-shadows test require at least one shadow line, and corrects the places test header. Verified: the shadows test now fails againstmain's code and passes here; prettier and eslint pass on the three files. - Changeset: template-literal imports are read by
theme build --watch, the built theme module,doctor's shipped-import check andtemplate's install line. Verified: each of those readers calls the shared string rule, and the import-reader tests fail onmainand pass here. - Changeset: the starter app refuses template-literal and query imports it cannot type-check. Verified: the starter test fails on
mainand passes here. - Changesets:
theme buildbuilds a plain-object theme throughdefineTheme, buildsextendswith no tokens, refuses a package spread, warns an imported stylesheet, puts backconsole, built-in globals and the umask, and refuses a doc module. Verified: the build tests fail onmainand pass here; building a plain-object pair writeslight-dark()here wheremainwrites a value the browser drops, and a doc module is refused here wheremainbuilds it. - Changesets: typography values warned wherever written, unreadable weights, number keys that are no level, heading levels read as Core reads them, a number weight named as a type mismatch; misspelled fields through an imported-then-exported theme, a BigInt in a const, boxed primitives. Verified: their tests fail on
mainand pass here. - Changesets:
howreads elements of a place, parts kept to a container, value questions on the part first, the date picker's today, an unknown word before a place, one size's height, possessives, decimal heights, shares, references by look, base looks, text parts like filled parts, transparent variants, missing roles, one variant's focus ring, two excepts, and the leftovers. Verified: their tests fail onmainand pass here, and askinghowonmainand here gives the answers they describe. - Changesets:
new,set,showandundoread typed input; saved twins, fields written twice, unread fields, value-less entries, a property in other letters, a top-levelbase;+states with spaces; gluedvar(). Verified: their tests fail onmainand pass here. - Changeset: contrast of a part on Core's media surface is measured in that surface's scheme. Verified: its test fails on
mainand passes here. - Description: elements of a place, elements with no part or no way to keep them, headings in a container, unknown words, amounts, references, keeps and value questions. Verified by the tests above and by asking
howonmainand here. - Description: reading what was typed, settings saved in other letters or twice,
baseas the base, gluedvar(), saved state spellings. Verified by the tests above. - Description: build warnings, doc modules, plain-object themes, spreads, stylesheets, built-ins and umask, starter refusals, media-surface contrast. Verified; misspelled fields in a const or a spread were already warned on
main, and the import and re-export forms are new. - Description: the full CLI suite passes. Not reproduced here: the 33 changed test files pass.
- Description: structure, changesets, tsc, eslint and prettier are clean. Lint passes in CI at this head; typecheck has not run there yet.
- Description: the held-out
howscore. Not verifiable from the repository. - Description: recorded test times come in a later push. Already in: every new test file has a recorded time.
.changeset/:theme-build-template-literal-imports.md: clear (now names its four commands);b-typography-values-reach.md,b-typography-weight-type.md,experimental-theme-F-datepicker-reason.md,experimental-theme-F-elements.md,experimental-theme-F-scoped.md,experimental-theme-F-values.md,experimental-theme-I-starter-query-literal.md,experimental-theme-a-media-scheme.md,experimental-theme-g2-final43.md,experimental-theme-g2-final44.md,experimental-theme-how-c-final43.md,experimental-theme-how-c-final43b.md,experimental-theme-how-c-places.md,experimental-theme-how-c-unknown-place.md,experimental-theme-how-h-leftovers44.md,experimental-theme-how-round43-readers.md,experimental-theme-how-round43b-readers.md,experimental-theme-n-f43.md,experimental-theme-n-f44.md,experimental-theme-state-pieces.md,experimental-theme-var-glued.md,theme-build-L-final43.md,theme-build-doc-not-theme.md,theme-build-k43-values.md: clearpackages/cli/api/theme-edit/:_settings.mjs:savedStateReadJSDoc says null for a state that reads "as itself" (non-blocking);theme-how-c-final43.test.mjs: clear (the shadows case now needs shadow lines);theme-how-c-places.test.mjs: clear (header fixed);_check.mjs,_compiler.mjs,_css.mjs,_edit.mjs,_how-question.mjs,_normal.mjs,_parts.mjs,_preview-app.mjs,theme-F-elements.test.mjs,theme-F-scoped.test.mjs,theme-F-values.test.mjs,theme-I-starter-types.test.mjs,theme-a-media-scheme.test.mjs,theme-g2-final43.test.mjs,theme-g2-final44.test.mjs,theme-how-c-chaos43.test.mjs,theme-how-c-final42.test.mjs,theme-how-c-final43b.test.mjs,theme-how-c-unknown-place.test.mjs,theme-hunt-h-leftovers44.test.mjs,theme-hunt-h-round42.test.mjs,theme-hunt-h-round43.test.mjs,theme-hunt-h-round43b.test.mjs,theme-hunt111.test.mjs,theme-hunt241.test.mjs,theme-k43-values.test.mjs,theme-n-f43.test.mjs,theme-n-f44.test.mjs,theme-parts64.test.mjs,theme-parts71.test.mjs,theme-saved-name-spellings.test.mjs,theme-state-pieces.test.mjs,theme-typography-family.test.mjs,theme-var-glued.test.mjs: clearpackages/cli/api/theme/build/:build-stable-L-doc-not-theme.test.mjs: unusedexists,THEME(non-blocking);build-stable-L-final43.test.mjs: unusedexists(non-blocking);build-stable-typography-values.test.mjs,build.mjs,icon-imports.mjs,input-fields.mjs,null-values.mjs,typography-values.mjs: clearpackages/cli/clients/cli/:commands/experimental/theme.mjs,lib/json-shim.mjs: clearpackages/cli/foundation/:discovery/template-needs.mjs,discovery/template-needs.test.mjs,fs/module-loader.mjs,render/embedded-imports.mjs,render/embedded-imports.test.mjs,text/written-string.mjs: clearscripts/:vitest-node-durations.json: clear
| * `ispressed` is its isPressed), or null when it reads as no state of the | ||
| * part or as itself. The census half of the one state reader (the loader |
There was a problem hiding this comment.
Non-blocking: savedStateRead returns read whenever every piece is one of the part's states, including when it equals the saved state, so "or as itself" is not what it does (readSavedStates skips that case itself). Drop "or as itself".
| const exists = rel => fs.existsSync(path.join(dir, rel)); | ||
|
|
||
| const THEME = `export default {name: 'p', tokens: {'--color-accent': '#123456'}};\n`; |
There was a problem hiding this comment.
Non-blocking: exists and THEME are declared here and never used; build-stable-L-final43.test.mjs:64 declares the same unused exists.
|
/approve-spec ee73928 |
There was a problem hiding this comment.
Approved pending CI. This push adds only an empty commit that re-runs CI, so the code is the code of the last review, and every blocking point raised in earlier reviews is fixed; the changed tests also pass when this branch is merged with today's main. CI's first run on this head stopped with "CI is full" before any test job ran, so the approval waits on the re-run and the required checks it gives. Two optional tidy-ups remain in the earlier inline comments.
Claims and files checked
Review mode: incremental; reason: none
- Since the last review: one empty commit that re-runs CI after
mainfixed its own search golden. Verified: its tree is identical to the last reviewed head. - Changeset: template-literal imports are read by
theme build --watch, the built theme module,doctor's shipped-import check andtemplate's install line. Verified: each of those readers calls the shared string rule, and the import-reader tests pass on a merge withmainand fail on the base's code. - Changeset: the starter app refuses template-literal and query imports it cannot type-check. Verified: the starter test passes on the merge and fails on the base's code.
- Changesets:
theme buildbuilds a plain-object theme throughdefineTheme, buildsextendswith no tokens, refuses a package spread, warns an imported stylesheet, puts backconsole, built-in globals and the umask, and refuses a doc module. Verified: the build tests pass on the merge, wheremain'sdefineThemenow refuses a plain-object base, and fail on the base's code. - Changesets: typography values warned wherever written, unreadable weights, number keys that are no level, heading levels read as Core reads them, a number weight named as a type mismatch; misspelled fields through an imported-then-exported theme, a BigInt in a const, boxed primitives. Verified: their tests pass on the merge and fail on the base's code.
- Changesets:
howreads elements of a place, parts kept to a container, value questions on the part first, the date picker's today, an unknown word before a place, one size's height, possessives, decimal heights, shares, references by look, base looks, text parts like filled parts, transparent variants, missing roles, one variant's focus ring, two excepts, and the leftovers. Verified: their tests pass on the merge and fail on the base's code, and askinghowon the base and on this code gives the answers they describe. - Changesets:
new,set,showandundoread typed input; saved twins, fields written twice, unread fields, value-less entries, a property in other letters, a top-levelbase;+states with spaces; gluedvar(). Verified: their tests pass on the merge and fail on the base's code. - Changeset: contrast of a part on Core's media surface is measured in that surface's scheme. Verified: its test passes on the merge and fails on the base's code.
- Description: elements of a place, elements with no part or no way to keep them, headings in a container, unknown words, amounts, references, keeps and value questions. Verified by the tests above and by asking
howon the base and on this code. - Description: reading what was typed, settings saved in other letters or twice,
baseas the base, gluedvar(), saved state spellings. Verified by the tests above. - Description: build warnings, doc modules, plain-object themes, spreads, stylesheets, built-ins and umask, starter refusals, media-surface contrast. Verified; misspelled fields in a const or a spread were already warned on the base, and the import and re-export forms are new.
- Description: the full CLI suite passes on a
main-based tree. Not reproduced: the changed suites andmain's changed theme-build suites pass on a merge withmain. - Description: structure, changesets, tsc, eslint and prettier are clean. Typecheck and lint passed in CI on the identical tree of the previous push; CI's typecheck has not run on this head.
- Description: the held-out
howscore. Not verifiable from the repository. - Description: recorded test times come in a later push. Already in: every new test file has a recorded time.
.changeset/:b-typography-values-reach.md,b-typography-weight-type.md,experimental-theme-F-datepicker-reason.md,experimental-theme-F-elements.md,experimental-theme-F-scoped.md,experimental-theme-F-values.md,experimental-theme-I-starter-query-literal.md,experimental-theme-a-media-scheme.md,experimental-theme-g2-final43.md,experimental-theme-g2-final44.md,experimental-theme-how-c-final43.md,experimental-theme-how-c-final43b.md,experimental-theme-how-c-places.md,experimental-theme-how-c-unknown-place.md,experimental-theme-how-h-leftovers44.md,experimental-theme-how-round43-readers.md,experimental-theme-how-round43b-readers.md,experimental-theme-n-f43.md,experimental-theme-n-f44.md,experimental-theme-state-pieces.md,experimental-theme-var-glued.md,theme-build-L-final43.md,theme-build-doc-not-theme.md,theme-build-k43-values.md,theme-build-template-literal-imports.md: clearpackages/cli/api/theme-edit/:_settings.mjs:savedStateReadJSDoc says null for a state that reads "as itself" (non-blocking);_check.mjs,_compiler.mjs,_css.mjs,_edit.mjs,_how-question.mjs,_normal.mjs,_parts.mjs,_preview-app.mjs,theme-F-elements.test.mjs,theme-F-scoped.test.mjs,theme-F-values.test.mjs,theme-I-starter-types.test.mjs,theme-a-media-scheme.test.mjs,theme-g2-final43.test.mjs,theme-g2-final44.test.mjs,theme-how-c-chaos43.test.mjs,theme-how-c-final42.test.mjs,theme-how-c-final43.test.mjs,theme-how-c-final43b.test.mjs,theme-how-c-places.test.mjs,theme-how-c-unknown-place.test.mjs,theme-hunt-h-leftovers44.test.mjs,theme-hunt-h-round42.test.mjs,theme-hunt-h-round43.test.mjs,theme-hunt-h-round43b.test.mjs,theme-hunt111.test.mjs,theme-hunt241.test.mjs,theme-k43-values.test.mjs,theme-n-f43.test.mjs,theme-n-f44.test.mjs,theme-parts64.test.mjs,theme-parts71.test.mjs,theme-saved-name-spellings.test.mjs,theme-state-pieces.test.mjs,theme-typography-family.test.mjs,theme-var-glued.test.mjs: clearpackages/cli/api/theme/build/:build-stable-L-doc-not-theme.test.mjs: unusedexists,THEME(non-blocking);build-stable-L-final43.test.mjs: unusedexists(non-blocking);build-stable-typography-values.test.mjs,build.mjs,icon-imports.mjs,input-fields.mjs,null-values.mjs,typography-values.mjs: clearpackages/cli/clients/cli/:commands/experimental/theme.mjs,lib/json-shim.mjs: clearpackages/cli/foundation/:discovery/template-needs.mjs,discovery/template-needs.test.mjs,fs/module-loader.mjs,render/embedded-imports.mjs,render/embedded-imports.test.mjs,text/written-string.mjs: clearscripts/:vitest-node-durations.json: clear
Summary
The twelfth round of fixes for
astryx experimental theme: the FINAL-43 and FINAL-44 hunt rounds with their seeded chaos rounds, plus the review follow-ups from the previous round. Each fix is at its cause, with tests.how
highlightedstate; "the knob of switches", "the tabs' indicator", "the header cells in the table", "the close button in the dialog", "the dropdown menu's items" each reach that element. "Menu separators" change only the menu's own divider.Reading what was typed
newreadslike/baseas keys, quoted and swapped pairs, a value before its dial, settings pasted in its name, and--theme t2as the name. A whole command pasted as one word is read.basefor the base, are read once, with a note. Asetof a property typed in other letters fixes it listed twice. A typo of a saved field is named.var()glued to other text is refused for its grammar. Saved states in any spelling, and combined states with spaces, load.Own theme file, build and compile
*.doc.*) given as the theme is refused before it runs, naming the theme source beside it.defineTheme; spreading a package theme is refused with theextendsline; an imported stylesheet the outputs do not carry is warned; the process's built-ins and umask are restored after a load.Contrast and pictures
Scope
Components: experimental theme (editor, how, preview, compile), theme build (doc-module refusal, new warnings), foundation module loader
Tests
New editor and build test files for each item, plus the updated expectations each fix names. The full CLI suite passes on a main-based tree (only this box's known environment failures). Structure, changesets, tsc, eslint and prettier are clean. The held-out
howkey scores the same as the previous round on the same tree (236 right, 14 wrong writes, 14 held back, 36 other writes, measured with main's committed Core). Recorded Node test times for the new editor files come in one more push if the plan needs them.