Repository navigation
experimental theme: a fifth round of edge-case fixes, and in-process tests - #11765
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
1c486df to
eda341c
Compare
7b5607d to
f05b2ab
Compare
eda341c to
7c9e710
Compare
6f57317 to
44145e9
Compare
7c9e710 to
059129d
Compare
44145e9 to
4fb9b4e
Compare
a3a03f4 to
a09ff80
Compare
There was a problem hiding this comment.
This review cannot approve until an engineering owner decides on the spec, and it asks for three changes.
Owner decision needed: no current spec record covers three parts of this pull request: the experimental theme editor behaviour it changes (the input and new repair readers, how's one-mode answers, one-mode themes applying the other mode's settings, top-bar contrast, part conditions, the stray-option answer, and the undo headline with its two new ThemeEditUndoResponse members), whether a theme may read Core's private --_card-ring/--_card-elevation layers, and the stable astryx theme build reading of escaped and var()-held font names and let/var bindings. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, or names the record that governs these changes; the author may do so as an engineering owner.
Changes needed:
newputs the word typed after the theme name into the option typed before it, sonew --font Open Sans my-themeoffersnew sans --font 'Open my-theme'; reset the open option when the name is read (commands/experimental/theme.mjs:1261-1271) and add a test with the option before the name.ThemeEditUndoResponse.data.undidandrefusedBeforeare public type members outside this pull request's declared scope; name them in a## Scope/Components:line for the owner decision, or split them out.- The description lists new test files
theme-hunt124totheme-hunt135, but hunt129, hunt131, hunt132 and hunt135 do not exist and the new hunt123 is not listed; correct the list.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Escaped font family names are read as CSS reads them, and a family held in the theme's own property counts as built (editor): verified,
theme-hunt125. - compile gives show's phone type note with a working rule, and the editor theme's full report wires the app copy: verified,
theme-hunt125. - Top-bar text is checked over the header's background, including see-through parts: verified,
theme-hunt130. - One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in
how(changeset list): verified,theme-how.test.mjsandtheme-hunt123. - One keep grammar, one density table, a fill color after "with", and vibrancy counting by changed shades: verified,
theme-hunt134. - The own-value check covers every block (adaptation rules, localTokens, part property text and names, extended themes, typography scale): verified,
theme-hunt124. - Preview fixes (removed pictures named, part-way picture runs, two-React advice, --section/--top/--template suggestions, remote base fonts, template and re-exported cells): verified,
theme-hunt126. - Input readers keep what was typed (quoted near-miss family, 16,9 ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified,
theme-hunt127. newrepairs as set does, and unquoted words of a flag value belong to that value: false when the option comes before the theme name (the word after the name joins the option).- One mode, base, state and family-list reader (black/white/dim/bright no longer modes): verified in code (
modeWord,baseWord,stateWord,fontFileReason). - One stray-option answer for every editor and preview command, and a part's color-prop token suggestion: verified,
theme-hunt133. - In-process runs read installs and writable folders fresh, compile releases locks however it ends, and new refuses a valued option first: verified in code (
packageInstalled,copyFailure,buildActionfinally). - One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified,
theme-parts55. - Part conditions come from what the theming target declares: verified,
theme-part-conditions. - The undo headline names what it took back and says when the last command was refused: verified,
theme-undo-headline. theme buildreads escaped names, names theme-heldvar()families, and builds a never-reassigned let/var theme: verified,theme-hunt125andfont-warning.test.mjs.- The description's list of new test files from hunt124 to hunt135: false (hunt129, hunt131, hunt132 and hunt135 do not exist; hunt123 is new and not listed).
- 19 test files run in process, cutting test time from about 950 s to 130 s: not verified (this diff converts 16 existing files and adds 5 new ones; timings were not measured).
- The preview code carries no test-only hooks: verified (the stop and scan-limit test hooks are removed, and the limit is a parameter).
- CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: the 40 changed test files pass at this head (1,306 tests); the other checks were not run.
Files (all 85 visited):
packages/cli/clients/cli/commands/experimental/theme.mjs: finding:newreads the word after the theme name into the option before it (blocking)packages/cli/api/theme-edit/theme-edit.type.mjs: finding: two undo type members outside the declared scope (blocking)packages/cli/api/theme-edit/_edit.mjs: finding:themeEditNewpasses an undeclaredcheckoption (non-blocking)packages/cli/api/theme-edit/_settings.mjs: clear (reading Core's private card layers waits on the owner decision).changeset/:experimental-theme-css-family-names.md,experimental-theme-header-contrast.md,experimental-theme-how-modes-and-blocks.md,experimental-theme-how-one-keep-grammar.md,experimental-theme-hunt124.md,experimental-theme-hunt126.md,experimental-theme-hunt127.md,experimental-theme-hunt128.md,experimental-theme-hunt132.md,experimental-theme-hunt133.md,experimental-theme-in-process-runs.md,experimental-theme-parts55.md,experimental-theme-parts56.md,experimental-theme-undo-headline.md,theme-build-css-family-names.md— clearpackages/cli/api/theme-edit/:_adapter.mjs,_catalog.mjs,_check.mjs,_color.mjs,_compiler.mjs,_context.mjs,_how-commands.mjs,_how-question.mjs,_importers.mjs,_normal.mjs,_palette.mjs,_parts.mjs,_preview-app.mjs,_preview.mjs,_project.mjs,_tables.mjs,_vet.mjs,theme-how-families.test.mjs,theme-how.test.mjs,theme-hunt102.test.mjs,theme-hunt107.test.mjs,theme-hunt109.test.mjs,theme-hunt112.test.mjs,theme-hunt115.test.mjs,theme-hunt119.test.mjs,theme-hunt120.test.mjs,theme-hunt123.test.mjs,theme-hunt124.test.mjs,theme-hunt125.test.mjs,theme-hunt126.test.mjs,theme-hunt127.test.mjs,theme-hunt128.test.mjs,theme-hunt130.test.mjs,theme-hunt133.test.mjs,theme-hunt134.test.mjs,theme-hunt14.test.mjs,theme-hunt26.test.mjs,theme-hunt27.test.mjs,theme-hunt3.test.mjs,theme-hunt62.test.mjs,theme-hunt68.test.mjs,theme-hunt70.test.mjs,theme-hunt75.test.mjs,theme-hunt78.test.mjs,theme-hunt81.test.mjs,theme-hunt82.test.mjs,theme-hunt93.test.mjs,theme-new-suggestions.test.mjs,theme-part-conditions.test.mjs,theme-parts45.test.mjs,theme-parts51.test.mjs,theme-parts55.test.mjs,theme-preview-importers.test.mjs,theme-preview-safety.test.mjs,theme-stress.test.mjs,theme-undo-headline.test.mjs— clearpackages/cli/api/theme/build/:build.mjs,font-warning.mjs,icon-imports.mjs— clearpackages/cli/clients/cli/commands/:experimental-theme-editor-show.doc.mjs,theme.mjs— clearpackages/cli/clients/cli/lib/:json-shim.mjs— clearpackages/cli/foundation/fonts/:font-stylesheet.mjs— clearpackages/cli/foundation/text/:css-escape.mjs— clearpackages/cli/test-utils/:stop-at-step.mjs,stopped-run.mjs— clear
…amilies count as built; let/var themes build; compile gives the phone note with a fix that works; the full report wires the app copy
…adaptation rules, localTokens a var() reads, part property text and names, a theme the export extends; a token of the wrong kind in a property is refused in set and the file; typography weights need a scale, scale fields are named as written)
…r what was typed, a ratio's comma separates its numbers, saved entries set repairs get that repair, one base reader for set/new/settings, a list item of weight/style/size words is no family, a JSON string's quotes are JSON's
…d; a part-way picture run says which pictures it took; two-React renders point at the package manager's listing; --section/--top/--template suggestions from what was typed; remote base fonts noted; template pages and re-exported parts bind their real export)
…new repairs values through the one gate (no untyped flag, whole-value did-you-means, the repaired value kept), unquoted words of a new flag value belong to it, show and preview read options with the one reader, an uninstalled base leads with its install, case fixes of one line fold together, and a corners size saved in rem reads as set saves it
…e theme keeps the other mode's settings for Core's other-mode regions A token set for one mode keeps its other half as what that mode shows: Core's own reference when the base theme's value follows it, so a focus ring keeps following the accent. A one-mode page background makes the main area see-through, and a gradient fixed, in its mode's block only. A one-mode shorthand replaces longhands of its mode only, never a both-mode longhand. A light-only or dark-only theme keeps the other mode's settings applied for the regions Core draws in that mode (a toast, a lightbox), says so, and takes --mode for that mode; its own mode needs no --mode. A color on a link is refused for the token its color prop reads, set on the link; the cached component docs carry each prop's documented default.
…r the header's background (see-through part backgrounds show the header), including the preview's own mode switch
…, keeping Core's shadow layers; how reads mode words, role words, keeps and except lists through shared readers
…cess with renders stood in (no spawn per call); compile's run locks release however the run ends, new refuses a valued option before run, and an API process reads removed packages and writable copy folders as they are now
…family list, top-level split, free theme name), test-only gate aliases moved into their test, and new's uninstalled-base lines through the one install helper
…mand (options it takes, its help, a line without the stray words only where safe), and the color-prop tokens a part offers come from its doc and part data
…rget declares The part data reads as conditions the data attributes the element's own theming targets declare (each visual prop and runtime state), not a fixed list, and the aria context conditions are named as such. The readers keep every condition except the part's own size-like visual props: a runtime state, another target's prop on the same element (a selectable card's selection on its card), and an aria context stay, so a state Core adds needs no change to the editor. PART_DATA_VERSION 12.
…e is a real child process stopped at a file step; the importer scan limit is reached by a real 50001-file project); undo's headline names what it took back and says when the last command was refused
…ity through one table; vibrancy counts a color by whether its shades change
…mmand line (after --), not an ASTRYX_* variable
a09ff80 to
7795d8a
Compare
|
/approve-spec 7795d8a |
There was a problem hiding this comment.
Changes requested: the spec question is settled for this head, and three fixes remain.
The engineering-owner approval for this head covers the experimental editor behaviour, the card-shadow layers, the undo type members and the theme build font and binding readings, so no spec decision is pending.
Changes needed:
newputs the word typed after the theme name into the option typed before it, sonew --font Open Sans my-themeoffersnew sans --font 'Open my-theme'; reset the open option when the name is read (commands/experimental/theme.mjs:1261-1271) and add a test with the option before the name.ThemeEditUndoResponse.data.undidandrefusedBeforeare public type members outside this pull request's declared scope; add a## Scopesection withComponents: ThemeEditUndoResponse, or split them out.- The description lists new test files
theme-hunt124totheme-hunt135, but hunt129, hunt131, hunt132 and hunt135 do not exist and the new hunt123 is not listed; correct the list.
Non-blocking: themeEditNew passes an undeclared check option straight to newTheme (api/theme-edit/_edit.mjs:312), so check: true returns null and writes nothing.
Claims and files checked
Review mode: carry-forward; reason: none
Claims:
- Escaped font family names are read as CSS reads them, and a family held in the theme's own property counts as built (editor): verified,
theme-hunt125. - compile gives show's phone type note with a working rule, and the editor theme's full report wires the app copy: verified,
theme-hunt125. - Top-bar text is checked over the header's background, including see-through parts: verified,
theme-hunt130. - One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in
how(changeset list): verified,theme-how.test.mjsandtheme-hunt123. - One keep grammar, one density table, a fill color after "with", and vibrancy counting by changed shades: verified,
theme-hunt134. - The own-value check covers every block (adaptation rules, localTokens, part property text and names, extended themes, typography scale): verified,
theme-hunt124. - Preview fixes (removed pictures named, part-way picture runs, two-React advice, --section/--top/--template suggestions, remote base fonts, template and re-exported cells): verified,
theme-hunt126. - Input readers keep what was typed (quoted near-miss family, 16,9 ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified,
theme-hunt127. newrepairs as set does, and unquoted words of a flag value belong to that value: false when the option comes before the theme name (the word after the name joins the option).- One mode, base, state and family-list reader (black/white/dim/bright no longer modes): verified in code (
modeWord,baseWord,stateWord,fontFileReason). - One stray-option answer for every editor and preview command, and a part's color-prop token suggestion: verified,
theme-hunt133. - In-process runs read installs and writable folders fresh, compile releases locks however it ends, and new refuses a valued option first: verified in code (
packageInstalled,copyFailure,buildActionfinally). - One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified,
theme-parts55. - Part conditions come from what the theming target declares: verified,
theme-part-conditions. - The undo headline names what it took back and says when the last command was refused: verified,
theme-undo-headline. theme buildreads escaped names, names theme-heldvar()families, and builds a never-reassigned let/var theme: verified,theme-hunt125andfont-warning.test.mjs.- The description's list of new test files from hunt124 to hunt135: false (hunt129, hunt131, hunt132 and hunt135 do not exist; hunt123 is new and not listed).
- 19 test files run in process, cutting test time from about 950 s to 130 s: not verified (this diff converts 16 existing files and adds 5 new ones; timings were not measured).
- The preview code carries no test-only hooks: verified (the stop and scan-limit test hooks are removed, and the limit is a parameter).
- CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: the 40 changed test files (1,306 tests) passed on this same patch before its rebase onto
main; the other checks were not run.
Files (all 85 visited):
packages/cli/clients/cli/commands/experimental/theme.mjs: finding:newreads the word after the theme name into the option before it (blocking)packages/cli/api/theme-edit/theme-edit.type.mjs: finding: two undo type members outside the declared scope (blocking)packages/cli/api/theme-edit/_edit.mjs: finding:themeEditNewpasses an undeclaredcheckoption (non-blocking)packages/cli/api/theme-edit/_settings.mjs: clear (reading Core's private card layers is owner-approved for this head).changeset/:experimental-theme-css-family-names.md,experimental-theme-header-contrast.md,experimental-theme-how-modes-and-blocks.md,experimental-theme-how-one-keep-grammar.md,experimental-theme-hunt124.md,experimental-theme-hunt126.md,experimental-theme-hunt127.md,experimental-theme-hunt128.md,experimental-theme-hunt132.md,experimental-theme-hunt133.md,experimental-theme-in-process-runs.md,experimental-theme-parts55.md,experimental-theme-parts56.md,experimental-theme-undo-headline.md,theme-build-css-family-names.md: clearpackages/cli/api/theme-edit/:_adapter.mjs,_catalog.mjs,_check.mjs,_color.mjs,_compiler.mjs,_context.mjs,_how-commands.mjs,_how-question.mjs,_importers.mjs,_normal.mjs,_palette.mjs,_parts.mjs,_preview-app.mjs,_preview.mjs,_project.mjs,_tables.mjs,_vet.mjs,theme-how-families.test.mjs,theme-how.test.mjs,theme-hunt102.test.mjs,theme-hunt107.test.mjs,theme-hunt109.test.mjs,theme-hunt112.test.mjs,theme-hunt115.test.mjs,theme-hunt119.test.mjs,theme-hunt120.test.mjs,theme-hunt123.test.mjs,theme-hunt124.test.mjs,theme-hunt125.test.mjs,theme-hunt126.test.mjs,theme-hunt127.test.mjs,theme-hunt128.test.mjs,theme-hunt130.test.mjs,theme-hunt133.test.mjs,theme-hunt134.test.mjs,theme-hunt14.test.mjs,theme-hunt26.test.mjs,theme-hunt27.test.mjs,theme-hunt3.test.mjs,theme-hunt62.test.mjs,theme-hunt68.test.mjs,theme-hunt70.test.mjs,theme-hunt75.test.mjs,theme-hunt78.test.mjs,theme-hunt81.test.mjs,theme-hunt82.test.mjs,theme-hunt93.test.mjs,theme-new-suggestions.test.mjs,theme-part-conditions.test.mjs,theme-parts45.test.mjs,theme-parts51.test.mjs,theme-parts55.test.mjs,theme-preview-importers.test.mjs,theme-preview-safety.test.mjs,theme-stress.test.mjs,theme-undo-headline.test.mjs: clearpackages/cli/api/theme/build/:build.mjs,font-warning.mjs,icon-imports.mjs: clearpackages/cli/clients/cli/commands/:experimental-theme-editor-show.doc.mjs,theme.mjs: clearpackages/cli/clients/cli/lib/:json-shim.mjs: clearpackages/cli/foundation/fonts/:font-stylesheet.mjs: clearpackages/cli/foundation/text/:css-escape.mjs: clearpackages/cli/test-utils/:stop-at-step.mjs,stopped-run.mjs: clear
…re it; checking new without writing is an argument of the internal newTheme, never a public option
|
/approve-spec 1d25a7c |
There was a problem hiding this comment.
Changes requested: one wording fix remains.
This push fixes the new word-order regression, closes the undeclared check path in themeEditNew, scopes the undo type members and corrects the test-file list; the spec direction is approved for this head.
Changes needed:
- The hunt128 changeset and the description say unquoted words of a flag value on
newbelong to that value, but with the option typed firstnew --font Open Sans my-themeis offerednew sans-my-theme --font Open(pinned bytheme-hunt128.test.mjs:240), so qualify both to words typed after the theme name, or read the words straight after the value into it when a later word is left for the name.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Escaped font family names are read as CSS reads them, and a family held in the theme's own property counts as built (editor): verified,
theme-hunt125. - compile gives show's phone type note with a working rule: verified,
theme-hunt125. - Top-bar text is checked over the header's background, including see-through parts: verified,
theme-hunt130. - One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in
how: verified,theme-how.test.mjsandtheme-hunt123. - One keep grammar, one density table, a fill color after "with", and vibrancy's gray rule: verified,
theme-hunt134. - The own-value check covers every block (adaptation rules, local tokens, part property text and names, extended themes, typography scale): verified,
theme-hunt124. - Preview fixes (removed pictures named, part-way picture runs, two-React advice, option suggestions, remote base fonts, template cells): verified,
theme-hunt126. - Input readers keep what was typed (quoted near-miss family, 16,9 ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified,
theme-hunt127. newrepairs a value as set does and offers only lines it would accept: verified,theme-hunt128.- Unquoted words of a flag value on
newbelong to that value (changeset and description): verified when typed after the theme name; false when the option is typed before it, where the next word becomes the name (theme-hunt128.test.mjs:240). - One mode, base, state and family-list reader (black, white, dim and bright are no longer modes): verified in code.
- One stray-option answer for every editor and preview command: verified,
theme-hunt133. - Several commands in one process read installs and writable folders fresh, compile releases its locks however it ends, and new refuses a valued option first: verified in code.
- One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified,
theme-parts55. - Part conditions come from what the theming target declares: verified,
theme-part-conditions. - The undo headline and the
undidandrefusedBeforemembers name what an undo took back and whether the command before it was refused: verified,theme-undo-headlineandtheme-edit.type.mjs:175. theme buildreads escaped names, names theme-heldvar()families, and builds a never-reassigned let/var theme: verified,theme-hunt125andfont-warning.test.mjs.- The description's list of new test files: verified, it names the 13 test files the pull request adds.
- 19 test files run the CLI in process and four keep a real process: four verified (four editor suites still start the CLI); 19 not reproduced (16 existing suites move to the in-process runner and 5 new ones use it); the timings were not measured.
- The preview code carries no test-only hooks: verified (the stop and scan-limit hooks are gone, and the limit is a parameter).
- CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: CI's lint and typecheck jobs passed on this head and the changed suites passed on the previous push; CI's node tests were still running at the last read.
Files (all 85; five changed or rechecked in this push, the rest unchanged since the last review):
.changeset/experimental-theme-hunt128.md: finding: the flag-value claim overstates for an option typed before the name (blocking)packages/cli/clients/cli/commands/experimental/theme.mjs: clear (the name now closes an option typed before it)packages/cli/api/theme-edit/_edit.mjs: clear (check-only mode is an internal argument)packages/cli/api/theme-edit/theme-hunt128.test.mjs: clear (pins both readings)packages/cli/api/theme-edit/theme-edit.type.mjs: clear (the two members are now in the declared scope).changeset/:experimental-theme-css-family-names.md,experimental-theme-header-contrast.md,experimental-theme-how-modes-and-blocks.md,experimental-theme-how-one-keep-grammar.md,experimental-theme-hunt124.md,experimental-theme-hunt126.md,experimental-theme-hunt127.md,experimental-theme-hunt132.md,experimental-theme-hunt133.md,experimental-theme-in-process-runs.md,experimental-theme-parts55.md,experimental-theme-parts56.md,experimental-theme-undo-headline.md,theme-build-css-family-names.md: clearpackages/cli/api/theme-edit/:_adapter.mjs,_catalog.mjs,_check.mjs,_color.mjs,_compiler.mjs,_context.mjs,_how-commands.mjs,_how-question.mjs,_importers.mjs,_normal.mjs,_palette.mjs,_parts.mjs,_preview-app.mjs,_preview.mjs,_project.mjs,_settings.mjs,_tables.mjs,_vet.mjs: clearpackages/cli/api/theme-edit/tests:theme-how-families,theme-how,theme-hunt102,theme-hunt107,theme-hunt109,theme-hunt112,theme-hunt115,theme-hunt119,theme-hunt120,theme-hunt123,theme-hunt124,theme-hunt125,theme-hunt126,theme-hunt127,theme-hunt130,theme-hunt133,theme-hunt134,theme-hunt14,theme-hunt26,theme-hunt27,theme-hunt3,theme-hunt62,theme-hunt68,theme-hunt70,theme-hunt75,theme-hunt78,theme-hunt81,theme-hunt82,theme-hunt93,theme-new-suggestions,theme-part-conditions,theme-parts45,theme-parts51,theme-parts55,theme-preview-importers,theme-preview-safety,theme-stress,theme-undo-headline(.test.mjs): clearpackages/cli/api/theme/build/:build.mjs,font-warning.mjs,icon-imports.mjs: clearpackages/cli/clients/cli/commands/:experimental-theme-editor-show.doc.mjs,theme.mjs: clearpackages/cli/clients/cli/lib/json-shim.mjs,packages/cli/foundation/fonts/font-stylesheet.mjs,packages/cli/foundation/text/css-escape.mjs: clearpackages/cli/test-utils/:stop-at-step.mjs,stopped-run.mjs: clear
|
/approve-spec fd84fc5 |
There was a problem hiding this comment.
Approved pending CI: some of CI's test jobs are still running on this head.
The new release note and the description now scope the flag-value reading to words typed after the theme name, which is what the code and its test do; that was the last open point. The spec direction for the editor changes, the undo type members and the theme build fix is approved for this head.
Claims and files checked
Review mode: incremental; reason: none
Claims:
newreads unquoted words of a flag value typed after the theme name into that value (release note and description): verified,theme-hunt128.test.mjs:216-240and the word walk incommands/experimental/theme.mjs:1241-1276.- Refusals offer
newonly for a settings filenewremakes, a setting listed twice gets keep and remove lines, a malformedliftedis dropped,newrepairs values throughset's gate, a saved corners size in rem reads as px: verified,theme-hunt128and_settings.mjs(settingsRemade,cornersPlain). - The own-value check judges every block (adaptation rules, local tokens, part property text and names, extended themes, typography scale and weights): verified,
theme-hunt124andjudgeBlockin_edit.mjs. - Font family names are read as CSS reads them, a
var()-held family counts,let/varthemes build, compile gives the phone type note with a working rule, the full report wires the app copy: verified,theme-hunt125,font-warning.test.mjs. - Preview fixes (removed pictures named by every build, part-way picture runs, two-React advice, typo-based suggestions, remote base fonts, template and re-exported cells): verified,
theme-hunt126. - Input readers keep what was typed (quoted near-miss family,
16,9ratio, saved-entry repair, base names, weight-only list items, JSON quotes): verified,theme-hunt127. - One reader each for mode, base, state and family lists; black, white, dim and bright are no longer modes;
newon an uninstalled base leads with the install: verified in code (modeWordandbaseWordin_normal.mjs,onBuiltInStepsinnewTheme), base names also intheme-hunt127. - One stray-option answer for every editor and preview command, and a part's color-prop token offered from its doc: verified,
theme-hunt133. - One keep grammar, one density table, a fill color after "with", and vibrancy counting warm or cool grays: verified,
theme-hunt134. - One-mode shadows, borders, swaps, keeps, excepts, headings, role words and corner steps in
how; card shadows keep Core's layers: verified,theme-how.test.mjsandtheme-hunt123. - One-mode writes change only their mode, and one-mode themes apply the other mode's settings where Core draws it: verified,
theme-parts55. - Part conditions come from what the theming target declares: verified,
theme-part-conditions. - Top-bar text is checked over the header's background, including see-through parts: verified,
theme-hunt130. - The undo headline names what was taken back and when the last command was refused (
undid,refusedBefore): verified,theme-undo-headlineandtheme-edit.type.mjs:175. - Several commands in one process read installs and writable folders fresh, compile releases its locks however it ends, and
newrefuses a valued option first: verified in code (packageInstalled,copyFailure, the build action'sfinally). theme buildreads escaped names, names theme-heldvar()families, and builds a never-reassignedlet/vartheme: verified,theme-hunt125andfont-warning.test.mjs; the seven shipped themes build to identical CSS.- 19 theme test files run the CLI in process and four keep a real process: verified (19 changed suites use the in-process runner, 16 of them newly; four suites still start the CLI); the timings were not measured.
- The preview code carries no test-only hooks, and the importer scan takes its limit as a parameter: verified (
_importers.mjs, the stop hooks are gone). - The description's list of new test files and its scope line: verified against the 13 added test files and
ThemeEditUndoResponse. - CLI suites pass; structure, changesets, tsc, eslint and prettier are clean: the 48 affected test files pass on this head; CI's lint and typecheck passed; some CI test jobs were still running.
Files (all 85):
.changeset/experimental-theme-hunt128.md: clear (the flag-value sentence is fixed in this push).changeset/:experimental-theme-css-family-names.md,experimental-theme-header-contrast.md,experimental-theme-how-modes-and-blocks.md,experimental-theme-how-one-keep-grammar.md,experimental-theme-hunt124.md,experimental-theme-hunt126.md,experimental-theme-hunt127.md,experimental-theme-hunt132.md,experimental-theme-hunt133.md,experimental-theme-in-process-runs.md,experimental-theme-parts55.md,experimental-theme-parts56.md,experimental-theme-undo-headline.md,theme-build-css-family-names.md: clearpackages/cli/api/theme-edit/:_adapter.mjs,_catalog.mjs,_check.mjs,_color.mjs,_compiler.mjs,_context.mjs,_edit.mjs,_how-commands.mjs,_how-question.mjs,_importers.mjs,_normal.mjs,_palette.mjs,_parts.mjs,_preview-app.mjs,_preview.mjs,_project.mjs,_settings.mjs,_tables.mjs,_vet.mjs,theme-edit.type.mjs: clearpackages/cli/api/theme-edit/tests:theme-how-families,theme-how,theme-hunt102,theme-hunt107,theme-hunt109,theme-hunt112,theme-hunt115,theme-hunt119,theme-hunt120,theme-hunt123,theme-hunt124,theme-hunt125,theme-hunt126,theme-hunt127,theme-hunt128,theme-hunt130,theme-hunt133,theme-hunt134,theme-hunt14,theme-hunt26,theme-hunt27,theme-hunt3,theme-hunt62,theme-hunt68,theme-hunt70,theme-hunt75,theme-hunt78,theme-hunt81,theme-hunt82,theme-hunt93,theme-new-suggestions,theme-part-conditions,theme-parts45,theme-parts51,theme-parts55,theme-preview-importers,theme-preview-safety,theme-stress,theme-undo-headline(.test.mjs): clear (all pass)packages/cli/api/theme/build/:build.mjs,font-warning.mjs,icon-imports.mjs: clearpackages/cli/clients/cli/commands/:experimental/theme.mjs,experimental-theme-editor-show.doc.mjs,theme.mjs: clearpackages/cli/clients/cli/lib/json-shim.mjs,packages/cli/foundation/fonts/font-stylesheet.mjs,packages/cli/foundation/text/css-escape.mjs: clearpackages/cli/test-utils/:stop-at-step.mjs,stopped-run.mjs: clear
PR Analysis Report🔎 Preview ·
|
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| ~ | cli |
./api/experimental · Types · type ThemeEditUndoResponse |
data: { theme: string; action: "step"; undone: string[]; settings: number; stepsLeft: number; changedTokens: string[]; problems: string[] } & ThemeEditPreviewFields → data: { theme: string; action: "step"; undid: string; refusedBefore?: string; undone: string[]; settings: number; stepsLeft: number; changedTokens: string[]; problems: string[] } & ThemeEditPreviewFields |
import type {ThemeEditUndoResponse} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditUndoResponse = {data: …} |
Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.
Generated by PR Enrichment workflow | View full report
Summary
The fifth round of edge-case fixes for
astryx experimental theme, plus faster, sturdier tests. Stacked on the previous follow-up; each fix is at its cause, with tests.Your own theme file
background-color: var(--radius-element)), weights without a type scale, non-number scale fields and the tokens of a theme the export extends are named with their line.export let/export varthemes build. Phone-only type notes reachcompile, with a rule that works.Reading what was typed
aspect-ratio '16,9'means16 / 9; a saved entry thatsetcan repair gets that repair; one base reader (neutral-theme,neutralTheme); weight words in a family list are no family; a JSON entry's quotes belong to JSON.newrepairs values through the same gate asset, reads unquoted words of a flag value typed after the theme name as that value, and never offers a line it would refuse. An uninstalled base leads with its install. Case fixes of one line fold together. A saved0.5remcorner reads assetsaves it.how
set --modestays colors-only): each mode keeps exactly what it showed, and a card shadow keeps Core's selection ring.Parts and modes
Preview
--section,--topand--templatesuggestions come from what was typed; base fonts loaded only from a remote stylesheet are named; template cells and ContextMenuItem render in the sheet; preview subcommands name mistyped options.One reader per kind of input
undonames what it took back in its first line, and says when the last command was refused and changed nothing. "Selected table rows tinted with the accent" answers the selected-row state line. A warm or cool gray takes the vibrancy dial; a pure gray is refused with the measured reason.Tests and in-process runs
Scope
Components: ThemeEditUndoResponse
Its
data.undidanddata.refusedBeforemembers name what an undo took back and whether the command before it was refused.Tests
New
theme-hunt123,theme-hunt124–theme-hunt128,theme-hunt130,theme-hunt133,theme-hunt134,theme-parts55,theme-part-conditions,theme-undo-headlineandtheme-preview-importersfiles, each with a topdescribethat says what it checks, plus the updated expectations each fix names. The CLI suites pass on a main-based tree; structure, changesets, tsc, eslint and prettier are clean.@josephfarina