Repository navigation
experimental theme: eleventh round of fixes (FINAL-40/41 hunts, era and brand coherence) - #11937
Conversation
…ider's own paint; thinner and thicker step from the thickness it shows - _parts walkMarkup: an empty element with no theming target inside a part that paints no background of its own at rest (a divider's line) records what it paints (a fill or a border color read from a token, a border width or style, and a size read from the border width) as the part's own, under the conditions of the part's element (each element on the stack carries them), so every reader finds the line's color per variant and its thickness. Its declarations still go to what the part holds. PART_DATA_VERSION 20. - how: a divider's thinner or thicker steps from the border width its line reads now (half of a width at or below 1px, else 1px less; 1px more), as a border's width does. - New theme-parts67: the census record per variant, less visible (the general fainter reader, per variant), thinner and thicker, darker.
…ed lines for it (one missed reader, shared); a color named like another part's is that part's color, never a change to it; hard, unblurred and flat shadows have no blur
…'s dark inverted surface once the theme's surfaces changed, a soft shadow beside square corners or a border, and a status fill only where its dial builds a color of its own; each line changes the built theme, in the modes the theme draws; how's answer for such a part, asked about its look, leads with its line
…t has a family for it (grey: the theme's grays; another hue: the palette family of that name), at the stop nearest its usual color, in each mode
…er at a zero border width; the starter's font note names only weight sheets that can exist; a theme importing a Sass, Less or Stylus file is refused before writing; a node_modules or version-control entry is left out as such whatever its kind)
…po; a misspelled style word is answered as the exact words; any weight number after a known family is a weight; NaN and undefined are refused at set
… own seed; a see-through wash or a gray seed gives a true reason, never a write that changes nothing (chaos42 N28)
…by the editor; a surface token judged against what that surface sets; theme build reads var() in any letter case, follows a loop through Core's root token definitions and warns a misspelled pseudo-class; a null token's warning says a property reading it acts as if it were not set)
…ped; undo reads a value of several words and the scope's spellings; new reads a Settings list; a token is never a theme to make
…ubcommand is moved after it, never read as an unknown subcommand
…-button's isPressed) is read back as saved, so the theme keeps loading; a saved state the part does not have gets its undo and a set line that writes it in place
…rever it reads, moving only where it fails and saying so; the on-accent note names the normal-text rule and how to keep the other text exactly)
… a status except on each input that draws a border, reads a part's fainter text as its text color's alpha (a toast's from its surface's on-dark and on-light colors), and keeps a role, a keep, a ground and a corner shape where they are said
…the toast alone; text on a gradient is measured where it sits; missed names shape and ring: corners left at the base's size beside one the theme changed, and a focus ring drawn outside a square part)
… variant, by amount, removed, and guarded; token families follow light-dark(); variant contrast listed once; status rings kept under state shadows; pieces named after a part's catalog name
- how: a border in one mode on a part that draws none is an inset ring in its box-shadow, see-through in the other mode, before the one shadow it draws at rest (a dialog's), on its flat renders where it rises with an elevation prop; with several resting shadows it says why it cannot. The every-word gate reads an inset ring as a border; the answer's intent includes the shadow.
- how: a one-mode option may keep a dial step (the buttons dial's outline) beside its colors, said to be the same in both modes; the width/style reason never fires for a border color.
- census: an empty untargeted element's paint is recorded as the part's own only for a part that holds no other parts (a divider), marked as the line's (line), and undone for a layout, outline or slider control; what targeted parts inside a part draw with at rest is recorded (held). PART_DATA_VERSION 21.
- set: a property the line draws, set on the part's own element, is refused with the token lines that reach it; a token set under a variant that only other variants read is refused naming the variant's own token.
- how: a divider's color, lighter/darker and removal go to each variant's line token (the strong divider's --color-border-emphasized), scoped by a variant said; thickness takes the amount said (three times, 50%); a removal with no aspect on a line part is its line taken away.
- how: a part with no border made thicker takes its own fixed height or width (a slider's track), per render; a border colored through parts inside counts only parts that draw with that color there.
- build: a token family follows a source written as one light-dark() value or a var() of another token; a state shadow for the whole part that keeps Core's plain ring keeps each status's own ring in that state.
- contrast: a census pair the census already draws per variant is measured only as the scoped variant copy (one problem, a fix for that variant).
- how: every catalog part named after a part is a piece of it by the rest of its name ("checkbox check"), unless that rest names a part of its own; a select's arrow is its indicator icon.
- preview: a part whose paint is a line suggests the line's token.
- Tests updated with the reason (divider answers per variant, the one-mode ring, a card for the gradient split, the all-borders ring); new theme-parts68.
…e-argument undo of a typo or an unheld setting, held values in bare undo words, a setting's name where the theme goes, several pasted lines, {,}, part-typo and state labels; a damaged entry beside a clean one gets only its undo)
… it (a part-less one the parts they name, one inside another ask leaving it whole, a size bound each size written); a color bound holds by the step's own ink and a dial seed by the modes within it; a ratio's ground names its variant or a background token; typed amounts, see-through fills and text opacity read as written; status, focus ring and line thickness questions answered; typed tokens move the way asked; the page's dials are the whole theme's; a token named before border or text is that token; motion words are never an unknown part
… says why: the cells draw the row line at a width Core sets per render, and the only width that reaches it would thicken every control's border inside the row too
…tight as half of now in that way, keeping what the words change (a divider's line, the room inside)
…e in how labels, set labels and --mode, by one reader
…roup spreads only where its members are alike; the part data reads list rows, row icons and every part an element carries; a fill drawn inside a part - set/how/build: aria-current, aria-pressed and aria-expanded conditions in the part data are the states current, pressed and expanded (less one a part's doc names as its own, a toggle button's isPressed), built as the attribute (:is([aria-current]:not([aria-current="false"])) and so on). how names them as --state, and drops an attribute a part has no prop for that every render draws alike (a toggle button's variant). - Several states at once, --state checked+disabled, are taken where a condition of Core's names each; built as the style key for Core's own states and one joined pseudo key for the rest (stateSlot, used by every block). how writes such a condition as one --state with +. - A group styled alike (checks, inputs) spreads a CSS property only to members Core draws alike at rest: a checkbox's corners stay off the round radios. - Part data: a group of many values (a checkbox list's string[]) gets its value as a list, so its rows render; the first item takes the icon its doc lets it take; every part an element carries holds what is inside it (a checkbox list's root is a field too). PART_DATA_VERSION 22. - how: a part whose own element paints no background while an element inside it does from one color token (a slider's filled range in its control) takes that token on the part, naming the parts inside that read it too; 'fill' is a piece of a part, never one its own name says. - Tests updated with the reason: a button's pressed is a state now (refusal tests use checked and down), the current page's fill is --state current.
… nothing behind: family --json warns of the replace; a module's process.exitCode is put back; .postcss/.stylus/.sss load empty; deferred prints go to stderr; an unsettled top-level await is ERR_THEME_LOAD; a source may import its own built stylesheet; every handle it opens is let go; an unhandled rejection is a warning; a value two parents up is named in its file)
…nt of that part and its state; the page those words seem to name is the part inside it that takes the state (the current page in pagination is its current button), and "current" is the state Core paints from aria-current
…e draws a context menu, a submenu's flyout, a form in a popover, a time list, a command palette's items and a navigation drawer; a states section shows hover, keyboard focus and a press; a nav icon and an icon-only button draw their icon; a border on the inputs lands on a date and time field's boxes - A part whose server render keeps content inert until the browser runs (a calendar's month waits for today) is drawn as the browser mounts it; so is an overlay shown open with no layer (a command palette loads its items). - The layer drawing answers media queries as a desktop window with a mouse, presses the controls an opened overlay holds, closes an open auto popover when it presses outside it, focuses what it presses, and right-clicks a part that holds a layer and opened nothing. - The sheet's overlays section adds editor-owned scenes for deeper open states, and a states section that marks each control of the sample page with its state; the render's stylesheet applies each state's rules to what a page marks. - Sample props: a required prop takes the first element its doc suggests; a look flag gets the prop its name reads; a search source its defaults leave out is the page's sample one. - A border spread over a group lands on the parts that draw each member's edges.
…sured with the text that surface gives it, and fixed by a color on the button; a label on its own fill is measured on its variant's fill)
…'s own element, by the rest of its catalog name and the state said; the last place said is the place
- "the selected option row in the selector" is selector-option-row, "the hovered option in the selector" selector-option: a catalog part named after the place, its rest said before the place (the longest), never another component the words seem to name (a table's rows) or the place itself. When the one named lacks the state said, the one element of that name in the place that takes it ("the checked item in the dropdown menu": dropdown-menu-radio).
- The place is the last one said ("the text in the hovered menu item of the dropdown" is in the dropdown), and an element of it in a state after "of" leaves the place unwritten.
- New theme-parts70.
…typed (is-pressed, ispressed) is read as that state, by the census half of the one state reader the saved-setting check and the build both run
…t theme with multi-word values, no new from undo, held values and typos, comma values, settings after new's name, options before nested groups or with no subcommand
…on text lighter) from each variant's own color, scoped to the variant and the state, never one variant's color on all
…ponent (toggle-button's isPressed) is built on the value Core writes, [data-is-pressed="true"]
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, and the fixes below are needed. No current record decides this round's experimental editor behavior or the new stable theme build loading guards, warnings and accepted inputs. An engineering owner records the decision by commenting /approve-spec 7e867482fb4571a0d2ef8b9adde010bc08ec87a0 on this pull request (the author may do so as an engineering owner).
Blocking:
- Stable
theme build --outnow exits 1 for a name ending in.d.tsor.css.map(build.mjs:5505), where the released CLI builds with a warning, as the app-themes record (FR8) and the command's own--outdoc still say; keep the warning on stabletheme build, or ship the refusal as a declared incompatible change with its doc. - Every stable
themesubcommand run with a missing argument now printsUsage:andRun:lines and returns two JSON suggestions (json-shim.mjs:607), but the only release note is an[experimental]one namingtheme buildalone; add a[fix]changeset or confine the branch toexperimental theme. - The editor's pictures answer every width media query as matching (
layers.mjs:160), so the open-states page draws AlertDialog in its phone layout, Delete stacked over Cancel, in a 1280 px window; answer width and height queries for the picture's window. - All eight
test-nodelegs stop because the Node suite plans 11,944 s against the 11,096 s eight legs hold, with 47 new test files unrecorded inscripts/vitest-node-durations.json; record measured times and speed up the slowest new editor tests until the plan fits. ThemeEditChangeData.alsoRemovedandThemeEditChangeData.missedParts, and thetheme build --outchange, are public API rows outside this pull request's scope (the title and body name no component scope); name them in a## Scopeline for the owner decision, or split them out.
Also worth taking: the response-types doc still calls missed a count of parts and leaves out alsoRemoved.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim:
--outnaming a declaration file or a source map is refused. True on the head; the released CLI builds with a warning (both run), so this is the first blocking point. - Claim:
experimental theme compileandtheme buildwith no file name their usage and help. True; the same branch also changestheme ejectand other stablethemesubcommands (second blocking point). - Claim: the new
theme buildwarnings leave the output as before. Verified: the seven official themes build byte-identical files on both trees, with no warnings. - Claim: a theme module's later exits, exit codes, listeners, handles, rejections, unsettled top-level await and changes to the working folder and built-ins no longer decide the command. Verified by the new stable build tests, which pass.
- Claim: a plain-object theme with no tokens builds, and typography values are warned at their line. Verified by their tests; a numeric weight is warned as not text, though Core builds it.
- Claim: the open-states page draws a calendar's days, a context menu, a submenu flyout, a popover with a form, a time list, the command palette's items, the mobile drawer and a states strip. Verified on pictures taken on both trees (1,586 px to 3,039 px tall); the AlertDialog layout is the third blocking point.
- Claim: what agents see matches the app. False for AlertDialog at desktop width (third blocking point).
- Claims about
how,undo,new, the option readers, fonts,missed, media-surface contrast and the accent link color: covered by the new editor tests, which all pass here; not traced line by line. - Claim: the full CLI suite passes and structure, changesets, tsc, eslint and prettier are clean. Lint passed at this head; CI's Node legs did not run (fourth blocking point); the 81 changed and related test files pass here.
- Claim: the held-out
howkey score. Not checkable from the repository. - Changed lines read in full: stable
theme buildsources (build.mjs,input-fields.mjs,typography-values.mjs,written-values.mjs,style-keys.mjs,null-values.mjs,source-syntax.mjs), the module loader and its rejection module,stylesheet-file.mjs,run.mjs,json-shim.mjs, the render stand-in (layers.mjs,page-worker.mjs,render-page.mjs,css-cut.mjs,charts.mjs),experimental/theme.mjs, the undo command doc,theme-edit.type.mjs, the test-time record and all 58 release notes; findings as above. - Editor sources (
_how-question.mjs,_edit.mjs,_settings.mjs,_missed.mjs,_check.mjs,_parts.mjs,_catalog.mjs,_palette.mjs,_how.mjs,_preview-app.mjs,_compiler.mjs,_project.mjs,_how-commands.mjs,_preview.mjs,_normal.mjs,_part-words.mjs): checked through their tests and pictures, read only in part. - Tests: all 80 changed test files run and pass.
| export function typographyValueProblem(key, value) { | ||
| const field = key.split('.').pop(); | ||
| // A weight is a CSS value Core writes as it is: text, never a number. | ||
| if ( |
There was a problem hiding this comment.
Non-blocking: stable theme build now warns heading: {weight: 600} as "not text", but Core builds --text-heading-1-weight: 600, which browsers use. The warning matches Core's string FontWeight type. Consider wording it as a type mismatch rather than a value no browser uses.
PR Analysis Report🔎 Preview ·
|
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | cli |
./api/experimental · Types · type ThemeEditChangeData |
alsoRemoved?: ThemeEditSetting[] | undefined |
import type {ThemeEditChangeData} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditChangeData = {alsoRemoved: …} |
| + | cli |
./api/experimental · Types · type ThemeEditChangeData |
missedParts?: number | undefined |
import type {ThemeEditChangeData} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditChangeData = {missedParts: …} |
Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
… input's inherited weight), keeps a variant that draws no line with nothing written back, and says an unknown word between a part and what changes, writing nothing
…[light, dark] pair with an empty or a number half is warned; a boxed primitive in a part is written as its primitive
… folder to fixtures through provide/inject, never an ASTRYX_ variable; the warm-up uses the editor public command, so no editor helper gains a test importer
|
/approve-spec 9c27df1 |
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 stable theme build changes; the fixes below are still needed.
Blocking:
theme build --outnow refuses.d.tsand.css.mapnames (build.mjs:5509), but the command's--outdoc (theme-build.doc.mjs:56) and the app-themes record (FR8) still say another name builds with a warning; update both in this pull request.json-shim.mjs:611gives every stablethemesubcommand run with a missing argument newUsage:andRun:lines and two JSON suggestions, but the only release note is[experimental], which the release record (FR22) does not allow for stable commands; add a[fix]changeset or limit the branch toexperimental theme.- The editor's pictures answer every width media query as matching (
layers.mjs:170), sosheet-overlays.pngdraws AlertDialog in its phone layout, Delete stacked over Cancel, at 1280 px where the base drew them side by side; answer width and height queries for the picture's window. ThemeEditChangeData.alsoRemovedandThemeEditChangeData.missedPartsare public API rows outside this pull request's scope (the title has no conventional-commit scope and the body no## Scopeline); nameThemeEditChangeDatain a## ScopeComponents:line, or split the rows out.- The narrowed
theme build --outoption is also outside that scope; nametheme buildin the same line, or split the change out. writtenPrimitives(build.mjs:338) copies the boxed-primitive test and the BigInt replacer thatwritten-values.mjsalready has (boxed,partJsonText), so the value the build writes and the value its warning judges can drift apart; export them fromwritten-values.mjsand call them.- The description says recorded Node test times are added for every new editor file, but
theme-how-c-final42b,theme-how-c-final42candtheme-k43-valueshave no entry inscripts/vitest-node-durations.json; record them, or narrow the sentence.
Also worth taking: the response-types doc still calls missed a count of parts and names neither missedParts nor alsoRemoved. The Node suite now fits CI's eight legs.
Claims and files checked
Review mode: full; reason: over-500-lines
- Claim:
--outnaming a declaration file or a source map is refused. Verified on both trees: the released CLI wrote CSS intop.css.d.tsandp.css.map; this head exits 1 and namesp.css(first blocking point is the stale doc and record). - Claim: a theme source may import the stylesheet its own build writes. Verified: it builds here and fails on the base.
- Claim: a plain-object theme with no tokens builds. Verified (
export default {name: 'q'}). - Claim: the build warns a field
defineTheme()drops, with the near field. Verified (tokenzwarns "did you mean tokens?"). - Claim: the new warnings leave the output as before. Verified: the seven official themes build byte-identical files on both trees.
- Claim: a theme module's late exits, exit codes, listeners, handles, rejections and changes to the working folder and built-ins no longer decide the command. Verified by the new stable build tests, which pass.
- Claim:
experimental theme compileandtheme buildwith no file name their usage and help. True; the same branch changestheme ejectand the other stablethemesubcommands (second blocking point). - Claim: the open-states page draws more parts open and a states strip. Verified on pictures from both trees (1,586 px to 3,039 px).
- Claim: what agents see matches the app. False for AlertDialog at desktop width (third blocking point).
- Claim: recorded Node test times are added for every new editor file. False for three files (seventh blocking point).
- Claim: the full CLI suite passes and structure, changesets, tsc, eslint and prettier are clean. Lint and typecheck pass at this head; the 21 changed and related test files run here pass; two of CI's eight Node legs had passed and the rest were still running.
- Claim: the held-out
howscore. Not checkable from the repository. - Claims about
how,undo,new, the option readers, fonts,missed, media-surface contrast and the accent link color: covered by the changed editor tests; not traced line by line. - Release notes (62): read against the code paths above; the stable missing-argument change sits under an experimental note (second blocking point).
- Files read in full: the stable
theme buildsources (build.mjs,input-fields.mjs,typography-values.mjs,written-values.mjs,style-keys.mjs,null-values.mjs,source-syntax.mjs), the module loader with its rejection and stylesheet modules,run.mjs,json-shim.mjs, the render stand-in (layers.mjs,page-worker.mjs,render-page.mjs,css-cut.mjs,charts.mjs),cache-eviction.mjs,jiti-cache.mjs, the test support and global setup, the test-time record, the undo doc and the type file; findings as above, the rest clear. - Editor sources (
_how-question.mjs,_settings.mjs,_edit.mjs,_missed.mjs,_check.mjs,_catalog.mjs,_compiler.mjs,_how.mjs,_how-commands.mjs,_palette.mjs,_parts.mjs,_preview-app.mjs,_preview.mjs,_project.mjs,_normal.mjs,_part-words.mjs) andexperimental/theme.mjs: the changes since the last review read in full, the rest read in part and checked through tests and pictures. - Test files (89): read by title; 21 run here.
…d by one set of rules in written-values.mjs
… as it is: missed counts misses, missedParts the parts, and an undo names alsoRemoved
…ource-map names The --out docs (theme build, theme compile, the themeBuild API) and the app-themes record FR8 say a .d.ts or .css.map name is refused with the .css path to give, and any other name builds with a warning naming the .css path meant.
…e commands only; stable theme build keeps its released output
…ht media queries for the window the pictures are taken in, one shared size, so AlertDialog draws its desktop row of buttons
|
/approve-spec ece06cd |
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, the stable theme build changes and the amended app-themes --out requirement; the earlier blocking points are fixed, and four text fixes remain.
Blocking:
- Miss:
.changeset/theme-build-k42-values.mdsays a boxed string in a part is warned and written as JSON text, but the head writes its text with no warning andtheme-build-k43-values.mdsays so, so drop that clause. - Miss: the description says the build warns a symbol value, but a symbol stops the build with
ERR_THEME_INVALIDat its line, as the k42 note says, so reword that sentence. - Miss: the description lists "a family built twice in one process reads each member as it is then", which
build.family-reload.test.mjsalready proves on the base and this pull request does not change, so drop that line. - The description says recorded Node test times are added for the new editor files, but
theme-I-media-width.test.mjs, added in the last commit, has no entry inscripts/vitest-node-durations.json, so record it or narrow the sentence.
Also worth taking: the typography warning for weight: 600 could say it is a type mismatch rather than a value no browser uses, and the description has no ## Writing rubric results for the app-themes record edit.
Claims and files checked
Review mode: full; reason: spec-record
- Claim:
theme build --outnaming a declaration file or a source map is refused and nothing is written. Verified on both trees: the released CLI wrote CSS intop.css.d.tsandp.css.map; this head exits 1 withERR_INVALID_ARGUMENTand namesp.css; the command docs and the app-themes record now say so. - Claim: a slip after
.css(p.css.bak) is told the name meant. Verified: the warning namesp.css, where the base namedp.css.css. - Claim:
experimental theme compilewith no file names its usage and help, and stabletheme buildkeeps its released output. Verified on both trees and by the updated test. - Claim: a theme module read in the CLI's process leaves nothing behind (handles let go, late exits and exit codes ignored, rejections and late throws warned, working folder and built-ins restored). Verified by reading the loader and by the five new stable build test files, which pass.
- Claim: the build warns a misspelled
defineTheme()field, a BigInt, function or Date value, a misspelled pseudo-class and a loop through Core's root and surface tokens. Verified by the code and the stable build tests; the seven official themes build byte-identical files. - Claim: the build warns a symbol value. False: a symbol stops the build at its line (second blocking point).
- Claim: paths with
#,?or%20load, a source may import the stylesheet its build writes, and a plain-object theme with no tokens builds. Verified by the stable build tests (empty theme: exit 1 on the base). - Claim: a family built twice in one process reads each member as it is then. Already true on the base (third blocking point).
- Claim: the open-states page draws more parts open and a states strip, and AlertDialog keeps its desktop row. Verified on pictures from both trees (1,586 px to 3,039 px; Cancel beside Delete).
- Claim:
missedcounts misses on parts,undoreportsalsoRemoved, and the response-types doc says so. Verified in the type file, the text output and the doc test. - Claims about
how,undo,new, the option readers, fonts, saved spellings, toasts, media-surface contrast and the accent link color: covered by the changed editor tests, which pass; not traced line by line. - Claim: recorded Node test times are added for the new editor files. False for
theme-I-media-width.test.mjs(fourth blocking point). - Claim: the full CLI suite passes and lint, typecheck and formatting are clean. All 87 changed test files pass here (1,501 tests, 1 skipped); CI lint, typecheck and the build jobs pass at this head, and four Node legs were still running.
- Claim: the held-out
howscore. Not checkable from the repository. - Release notes, stable (
b-typography-values-one-judge,theme-build-L-final42,theme-build-empty-theme,theme-build-hunt230,theme-build-hunt236,theme-build-hunt241L,theme-build-k41-values,theme-build-k43-values): verified against the code, runs and tests.theme-build-k42-values: false on boxed part values (first blocking point). - Release notes, experimental (55, including the response-types
[docs]note): each matched to its named test file, all passing, and to the editor code paths read. - Files read in full: the stable
theme buildsources, the module loader with its rejection and stylesheet modules,run.mjs,json-shim.mjschanges, the render stand-in and picture scripts, the cache modules, test support and global setup, the test-time record, the type, response-types and command docs, the app-themes record change; findings as above, the rest clear. - Editor sources (
_how-question.mjs,_settings.mjs,_edit.mjs,_missed.mjs,_check.mjs,_catalog.mjs,_compiler.mjs,_how.mjs,_how-commands.mjs,_palette.mjs,_parts.mjs,_preview-app.mjs,_preview.mjs,_project.mjs,_normal.mjs,_part-words.mjs) andexperimental/theme.mjs: read in part and checked through their tests and pictures; clear. - Test files (87): read by title; all run here and pass.
…string; theme-I-media-width's Node time is recorded
|
/approve-spec dc4b848 |
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, the stable theme build changes and the amended app-themes --out requirement, and the four text fixes from the last review are in; two claims still describe changes that already ship on main.
Blocking:
- Miss:
.changeset/theme-build-hunt230.mdsays a null token's warning now says what a property reading it does, butmainalready prints that warning word for word and this pull request does not change it, so drop that sentence. - Miss: the description lists "A token family follows the token it is made from" (a set surface carries cards, popovers and code blocks, an opaque border its emphasized border, the neutral dial the page) as a fix in this round, but that already ships on
main, and this pull request only adds reading a source written as onelight-dark()value or a token reference, so narrow the line to that.
Also worth taking: the typography warning for weight: 600 could say it is a type mismatch rather than a value no browser uses.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Claim:
theme build --outnaming a declaration file or a source map is refused and nothing is written. Verified on both trees: the released CLI wrote CSS intop.css.d.tsandp.css.map; this head exits 1 withERR_INVALID_ARGUMENTand namesp.css; the command docs and the app-themes record say so. - Claim: a theme module read in the CLI's process leaves nothing behind (handles, late exits and exit codes, rejections, the working folder, built-ins). Verified by reading the loader and by the stable build tests; a module that sets
process.exitCodemakes the released CLI exit 3 and this head exit 0. - Claim: the build warns a misspelled
defineTheme()field, a BigInt, function or Date value, a misspelled pseudo-class and a loop through Core's root and surface tokens, and a symbol stops the build at its line. Verified on both trees fortokenz,10n,:hovrand a symbol, and by the stable tests. - Claim: paths with
#,?or%20load, a source may import the stylesheet its build writes, and a starter refuses every stylesheet language the build loads. Covered by the new build and starter tests, which pass. - Claim:
missedcovers more and counts misses on parts, withmissedPartsandalsoRemovedin the result. Verified in the type file, the response-types doc and the missed tests. - Claim: toasts, buttons on the media surface and a typed accent read as the app draws them. Covered by their new tests, which pass.
- Claim: the open-states page draws more parts open and a states section. Verified on pictures from both trees (1,586 px to 3,039 px tall).
- Claim: a token family follows the token it is made from. Already on
main(second blocking point); the new part is alight-dark()or token-reference source. - Claims about
how(bounds, places, amounts, references, states, guards, dividers) and reading typed input (undo, options, mode typos, fonts, saved spellings): covered by the changed editor tests, which pass; not traced line by line. - Claim: recorded Node test times are added for the new editor files. Verified: every added test file has an entry.
- Claim: editor test fixtures share part data built once per run. Verified in the global setup and the test support it seeds.
- Claim: the full CLI suite passes and lint, typecheck and formatting are clean. The 87 changed test files pass here (1,501 tests, 1 skipped); CI lint, typecheck and build pass at this head, and the Node test legs were still running.
- Claim: the held-out
howscore. Not checkable from the repository. - Claim: the writing rubric for the app-themes edit. Present, and the added text states present behavior only.
- Release notes, stable:
b-typography-values-one-judge(family stack, quoted family and role weight without a scale warned on this head, silent onmain),theme-build-L-final42,theme-build-empty-theme(plain theme with no tokens: exit 1 onmain, builds here),theme-build-hunt236,theme-build-hunt241L,theme-build-k41-values,theme-build-k42-values,theme-build-k43-values: verified against the code, runs and tests.theme-build-hunt230:var()letter case, the root-token loop and the pseudo-class warning verified; the null-token sentence is false (first blocking point). - Release notes, experimental (55, including the response-types
[docs]note): each matched to its named test file, all passing, and to the code paths read. - Files read in full: the stable
theme buildsources, the module loader with its rejection and stylesheet modules,run.mjs, thejson-shim.mjschanges, the render stand-in and picture scripts, the cache modules, test support and global setup, the type, response-types and command docs, and the app-themes record; findings as above, the rest clear. - Editor sources (16) and
experimental/theme.mjs: read in part and checked through their tests and pictures; clear. - Test files (87): all run here and pass.
scripts/vitest-node-durations.json: an entry for every added test file; clear. - The seven official themes build byte-identical on both trees.
|
/approve-spec 8f4de83 |
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet. An engineering owner's /approve-spec for this head settles the direction of the editor round, the stable theme build changes and the amended app-themes --out requirement, and both claim corrections from the last review are in: the null-token sentence is gone from the theme build release note, and the description's token-family line names only the new light-dark() and token-reference sources.
No blocking findings remain.
Also worth taking: the typography warning for weight: 600 could say it is a type mismatch rather than a value no browser uses.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Claim:
theme build --outnaming a declaration file or a source map is refused and nothing is written. Verified on both trees: the released CLI wrote CSS intop.css.d.tsandp.css.map; this head exits 1 withERR_INVALID_ARGUMENTand namesp.css; the command docs and the amended app-themes record say so. - Claim: a theme module read in the CLI's process leaves nothing behind (handles, late callbacks, exit codes, rejections, the working folder, built-ins). Verified in the loader and by the stable build tests; a module that sets
process.exitCodemakes the released CLI exit 3 and this head exit 0. - Claim: the build warns a misspelled
defineTheme()field, a BigInt, function or Date value, a misspelled pseudo-class and a loop through Core's root and surface tokens, and a symbol stops the build at its line. Verified on both trees fortokenz,10nand a symbol; the pseudo-class near-name check is new instyle-keys.mjsand covered by its test; the token loops by the stable tests. - Claim: the editor refuses own tokens that read each other. Covered by its new test, which passes.
- Claim: paths with
#,?or%20load, a source may import the stylesheet its build writes, and a starter refuses every stylesheet language the build loads. Covered by the new build and starter tests, which pass. - Claim:
missedcovers more and counts misses on parts, withmissedPartsandalsoRemovedin the result. Verified in the type file, the response-types doc and the missed tests. - Claim: toasts, buttons on the media surface and a typed accent read as the app draws them. Covered by their new tests, which pass.
- Claim: the open-states page draws more parts open and a states section. Verified on pictures from both trees (1,586 px to 3,039 px tall).
- Claim: a token family follows a source written as one
light-dark()value or a token reference. Verified in the editor's settings code and its test. - Claims about
how(bounds, places, amounts, references, states, guards, dividers) and reading typed input (undo, options, mode typos, fonts, saved spellings): covered by the changed editor tests, which pass. - Claim: recorded Node test times are added for the new editor files. Verified: every added test file has an entry.
- Claim: editor test fixtures share part data built once per run. Verified in the global setup and the test support it seeds.
- Claim: the full CLI suite passes and lint, typecheck and formatting are clean. The 87 changed test files pass on code identical to this head; CI's lint, typecheck, build and Node legs 1–3 pass here, and the other Node legs were still running.
- Claim: the held-out
howscore. Not checkable from the repository. - Claim: the writing rubric for the app-themes edit. Present, and the added text states present behavior only.
- Release notes, stable:
b-typography-values-one-judge,theme-build-L-final42,theme-build-empty-theme,theme-build-hunt230(now only thevar()letter case, the root-token loop and the pseudo-class warning),theme-build-hunt236,theme-build-hunt241L,theme-build-k41-values,theme-build-k42-values,theme-build-k43-values: verified against the code, runs and tests. - Release notes, experimental (55, including the response-types
[docs]note): each matched to its named test file, all passing, and to the code paths it names. - Files: the stable
theme buildsources, the module loader with its rejection and stylesheet modules,run.mjs, thejson-shim.mjschanges, the cache modules, the render stand-in and picture scripts, test support and global setup, the type, response-types and command docs, and the app-themes record: clear apart from the typography wording note. - Files: editor sources (16) and
experimental/theme.mjs: checked through their tests, pictures and targeted reads; clear. - Files: test files (87) pass;
scripts/vitest-node-durations.jsonhas an entry for every added test file; release notes (64) as above; clear. - The seven official themes build byte-identical on both trees.
Summary
The eleventh round of fixes for
astryx experimental theme: two more row-group hunt rounds with their seeded chaos rounds, and the fixes from coherence passes on a period look and a brand look (build a theme, open every input, menu, tooltip, dialog and toast, and check that it matches). Each fix is at its cause, with tests.Coherence: what agents see matches the app
missedcovers more: a tooltip or toast still on the base's dark surface, soft shadows under square corners, a corner token the theme left behind, a focus ring offset that no longer fits, and status fills only when the vibrancy dial is set. Its count reads "misses on parts", and every line it offers is onesetaccepts.colorreaches its text on the toast alone, and the pictures draw a toast's text on the side the app's own measurement picks, per mode and per toast type.light-dark()value or as a reference to another token.how
checked+disabled,hover+selected) are settable where Core paints them. Disabled or hovered text steps each variant from its own color.Reading what was typed
setreads them. Undo never offers a straynew.new's name become its dial options.drak,ligth) are that mode. Labels naming a part are that part. Several pasted lines in one argument each get a checked line.Inter 650,Inter 450.5), words the editor knows (Inter Tight), and the body role in capitals are read; a number that is no weight is refused as a number.is-pressed) loads, and a toggle button's pressed state builds the selector it renders.Own theme file, build and compile
defineTheme()drops (with the near field), a BigInt, function or Date value, a misspelled pseudo-class, and a loop through Core's own root and surface tokens; a symbol value stops the build at its line. The editor refuses own tokens that read each other.#,?or%20load, a stylesheet the build writes may be imported by its own source,--outnaming a.d.tsis refused, and a starter refuses every stylesheet language the build loads.Scope
Components: experimental theme (editor, how, preview, compile), ThemeEditChangeData (adds
missedPartsandalsoRemoved), theme build (--outrefuses a.d.tsor.css.mapname; new warnings), foundation render and module loaderWriting rubric results
The app-themes record (AST-050) FR8 edit, run against docs/contributing/spec-writing.md:
--outbehavior in the present tense.Tests
New editor, build and render 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 or better than 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 are added for the new editor files; editor test fixtures now share part data built once per run, and the slowest new files render through the stand-in.