Repository navigation
experimental theme: thirteenth round of fixes (clause scope, family pictures, palette recipe v2) - #12011
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec c13bcce |
PR Analysis Report🔎 Preview ·
|
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | cli |
./api · Types · type TonalPaletteGenerationInput |
recipe?: "astryx-oklch-v1" | "astryx-oklch-v2" | undefined |
import type {TonalPaletteGenerationInput} from '@astryxdesign/cli/api'; const x: TonalPaletteGenerationInput = {recipe: …} |
| ~ | cli |
./api · Types · type ThemeBuildResponse |
data: { name: string; tokenCount: number; componentCount: number; sizeKB: number; outputs: { css: string; cssDts: string; js: string; dts: string; variantsDts?: strin … #6bfc32a4 → data: { name: string; tokenCount: number; componentCount: number; sizeKB: number; outputs: { css: string; cssDts: string; js: string; dts: string; variantsDts?: strin … #1a55d687 |
import type {ThemeBuildResponse} from '@astryxdesign/cli/api'; const x: ThemeBuildResponse = {data: …} |
| ~ | cli |
./api · Types · type ThemePaletteGenerateResponse |
data: { recipe: "astryx-oklch-v1"; status: "candidate"; familyCount: number; stopCount: number; modes: string[]; output: string | null; receipt: string | null; previe … #f5a77735 → data: { recipe: "astryx-oklch-v1" | "astryx-oklch-v2"; status: "candidate"; familyCount: number; stopCount: number; modes: string[]; output: string | null; receipt: s … #32b0e42c |
import type {ThemePaletteGenerateResponse} from '@astryxdesign/cli/api'; const x: ThemePaletteGenerateResponse = {data: …} |
| ~ | cli |
./api · Types · type TonalPaletteCandidate |
recipe: "astryx-oklch-v1" → recipe: "astryx-oklch-v1" | "astryx-oklch-v2" |
import type {TonalPaletteCandidate} from '@astryxdesign/cli/api'; const x: TonalPaletteCandidate = {recipe: …} |
| ~ | cli |
./api · Types · type TonalPaletteGenerationReceipt |
recipe: "astryx-oklch-v1" → recipe: "astryx-oklch-v1" | "astryx-oklch-v2" |
import type {TonalPaletteGenerationReceipt} from '@astryxdesign/cli/api'; const x: TonalPaletteGenerationReceipt = {recipe: …} |
| ~ | cli |
./api · Types · type TonalPaletteNormalizedRequest |
recipe: "astryx-oklch-v1" → recipe: "astryx-oklch-v1" | "astryx-oklch-v2" |
import type {TonalPaletteNormalizedRequest} from '@astryxdesign/cli/api'; const x: TonalPaletteNormalizedRequest = {recipe: …} |
| ~ | cli |
./api/experimental · Types · type ThemeEditUndoResponse |
data: { theme: string; action: "step"; undid: string; refusedBefore?: string; undone: string[]; next?: string; settings: number; stepsLeft: number; changedTokens: str … #1670011d → data: { theme: string; action: "step"; undid: string; refusedBefore?: string; undone: string[]; next?: string; settings: number; stepsLeft: number; changedTokens: str … #89204cd7 |
import type {ThemeEditUndoResponse} from '@astryxdesign/cli/api/experimental'; const x: ThemeEditUndoResponse = {data: …} |
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
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 theme build --family root base and the new palette recipe; one code fix and six text fixes remain.
Blocking:
- A family root whose base is defined in its own file (
const brand = defineTheme({extends: neutralTheme}); export default defineTheme({extends: brand})) builds, and its receipt reportsbaseasbrandfrom@astryxdesign/theme-neutralexportneutralTheme, becausebuildFamilyreads the firstextends:in the file (build.mjs:6827,:6844); FR1 says such a local base that supplies registries is refused, and FR2 says itspackageis null. .changeset/palette-recipe-v2.mdand.changeset/theme-build-family-root-base.mdare tagged[fix]but add capabilities (a second recipe, and a family root that may extend an unselected theme with a newbasereceipt field), which the release record files under[feat]..changeset/b-how-font-stack.mdis tagged[fix]for a change confined toastryx experimental theme editor how, which the release record requires to be[experimental].- The description lists as this round's changes things
mainalready has (the doc-module refusal, also in the Scope line; a number weight named as a type mismatch;newreading quoted and swapped pairs and--theme t2), so narrow those lines to what this round adds: signed weights, a setting typed inside its own quotes, and a built-in base beside another word. .changeset/experimental-theme-I-sheet-cells.mdsays a drawn hover "no longer" applies a forced-colors rule, butmainnever did (that copy was added and removed within this pull request), so drop that clause..changeset/experimental-theme-corners-english-rung.mdsayscorners squaredis now offeredsquare, whichmainalready does, so keep only theroundedchange.docs/specs/AST-034/spec.mdline 39 still lists "Add a new command, response field, error code …" as a non-goal while FR2 now adds thebasereceipt field, so amend that non-goal.
CI's test and typecheck jobs have not run on this head (CI was full), so they still need a run after these fixes. Optional: move the editor part of .changeset/b-picture-missing-font-kind.md into an [experimental] entry.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset
palette-recipe-v2: a second recipe runs only when named, v1 is unchanged, new editor palettes name v2. Behaviour verified (recipe test; all seven official themes regenerate their palettes identically); tag false ([fix]for a new capability). - Changeset
theme-build-family-root-base: the root may extend an unselected theme, the receipt names it, a missing or non-exporting package fails naming it. Behaviour verified for a package base (family root-base test fails on the base code, passes here); false for a base defined in the root's own file, which builds with a package named; tag false. - Changeset
b-how-font-stack: a font asked for on a part is offered as its preset's whole stack. Behaviour verified (its test fails on the base code, passes here); tag false ([fix]for an experimental-only change). - Changeset
experimental-theme-I-sheet-cells: cells grow to their content, wide parts take the row, loops drawn at rest, empty containers get sample text. Verified (its test). The forced-colors clause is false as a change:mainnever applied one. - Changeset
experimental-theme-corners-english-rung:roundedoffersround, then Tailwind's 4px. Verified.squaredofferedsquare: already onmain. - Changeset
b-picture-missing-font-kind: pictures name a font kind the machine lacks, an Apple face's generic is offered once,doctornames the install command. Verified (picture-fonts, font and doctor tests). - Changeset
b-typography-shapes: a scale with no base or ratio, a role or weights that is no block, a level written twice, boxed and signed values. Verified (typography build and editor tests). - Changesets
theme-build-L-final44,theme-build-k44-values: a plain base throughdefineTheme, misspelled fields in every form, stylesheet imports, a throwing getter as a load error,[light, dark]size pairs, unset pair halves, non-ASCII names. Verified (their build tests fail on the base code and pass here). - Changesets
experimental-theme-how-c-clause-scope,-how-c-final44,-how-c-final45,-how-c-final45b,-how-h-blind45,-how-h-final44,-how-h-final44b,-how-h-final46,-F-chaos46,-F-clone1,-F-final44,-F-final46,-F-tiles,-g2-wild46-vocabulary:howreadings. Verified (their tests fail on the base code and pass here; the part cases the clause-scope reader keeps pass on both). - Changesets
experimental-theme-F-banner,-F-inner-paint,-F-under-input,-F-multi-when,-F-range,-F-range-version,-F-census-key,-negated-state,-ie-hack-escape,-var-inner-spaces,-n-f44,-n-f46,-g2-final44b,-g2-final45-mode-wording,-g2-final45-show-theme,-g2-final46-help-lead,-g2-final46-mode-and-dial-words:set,undo,newandshowreadings and refusals. Verified (their tests fail on the base code and pass here). - Changesets
experimental-theme-a-blind45,-a-cut-short,-a-leaks,-a-media-lines,-a-role-tokens,-a-scoped-text,-a-wild45,emphasized-border-never-fainter,flat-pieces-stay-visible,palette-notes-say-what-they-do,surface-fills-keep-page,track-follows-named: results, contrast lines and the missed list. Verified (their tests pass here; the new ones fail on the base code). - Changesets
experimental-theme-I-family-pictures,-I-starter-home,-I-states-picture,-I-table-states: pictures and preview removal. Verified (their tests fail on the base code and pass here). - Description: the clause-scope reader, the light/dark rule, strict places, elements, readers, amounts, typed-fill text lines, checks and lines, pictures. Verified by the tests above.
- Description: the doc-module refusal, a number weight as a type mismatch,
newreading quoted and swapped pairs and--theme t2. False as this round's changes: already onmain. - Description: v1 stays the default and official palettes reproduce byte for byte; new editor themes use v2; the part data cache is keyed by a code fingerprint. Verified. The
--familyroot base and receipt field: verified for a package base, wrong for a base defined in the root's own file. - Description: the full CLI suite passes; structure, changesets, tsc, eslint and prettier are clean. Partly reproduced: the 81 changed and 70 related test files and the CLI typecheck pass here, and lint passes in CI.
- Description: the held-out
howscore. Not verifiable from the repository. Test times "come in one more push": already in. .changeset/(56 files): the five named above have findings; the rest are clear.docs/specs/AST-034/spec.md: non-goal contradicts FR2 (blocking).packages/cli/api/theme/build/build.mjs: family base read from the wrongextends:(blocking); the other 13 files underpackages/cli/api/theme/(family, font-warning, input-fields, typography-values, written-values, the generator,theme.type.mjs, two.doc.mjsfiles and four tests): clear.packages/cli/api/theme-edit/(20 source files, 76 test files): clear.packages/cli/api/doctor/(3 files),packages/cli/clients/cli/(8 files),packages/cli/foundation/(8 files),packages/cli/README.md: clear;picture-window.mjskeeps two identical tables (non-blocking).scripts/vitest-node-durations.json: clear (generated test timings).
c13bcce to
fe962ba
Compare
|
/approve-spec fe962ba |
fe962ba to
3053a88
Compare
|
/approve-spec 3053a88 |
There was a problem hiding this comment.
Changes requested: six fixes are needed. The family-build spec edit and the editor, build and recipe directions have an engineering owner's approval at this head.
Blocking:
- A bare
generateTonalPalette()request now runsastryx-oklch-v2, whileastryx theme palette generateruns v1 for the same request (generator.mjs:826-828). This contradicts the palette record, which says the API and the command use one v1 engine and agree on recipe semantics. It also makes callers edit source to keep their colours in a patch release. Fall back to v1, or amend that record in this pull request and file the default change as breaking. - Miss: for a font the editor's table does not know, such as a self-hosted
Acme Sans,astryx doctor's fix now says "Install the packages that load them (pnpm add @fontsource/acme-sans)". That is a guessed package, and the step that fixes it (add the font stylesheet export or a local<slug>.fonts.css) is gone (_adapter.mjs:943,theme-checks.mjs:1964-1966). Name only packages the font table knows, and keep the stylesheet step for the rest. - Miss:
palette-recipe-v2.mdand the comment atgenerator.mjs:316-317say v2 draws the middle of a ramp as v1 does at the default vibrancy. That holds only for vivid seeds: v2 caps every stop at the seed's own chroma (generator.mjs:224), so#c2603dstop 50 moves from#c34b1ato#b75733, and Tailwind's#16a34achanges all five middle stops. Qualify the note, or apply the cap only where v2 shares the gamut. - The release notes and help still describe the old
show --png.experimental-theme-family-pictures.mdsays every family is pictured andsheet.pngis still taken.experimental-theme-show-speed.mdsays it "is fast again", but the slowdown never shipped. The--pnghelp ofnew,setandundosaysshowaddssheet.png. Describe the net change againstmainin one note, and update those help strings and the description line. - Miss:
data-cs-groupon the theme sheet's sections (_catalog.mjs:605,:615) is a new public data attribute that no record names. Cut the family pages on anidor a class instead, or use a privatedata-astryx-*name. packages/core/src/BottomSheet/BottomSheetStacking.test.tsxrenames fivedescribetitles that have nothing to do with the theme editor. Drop that file from this pull request.
Fixed since the last review: the description states the decided recipe behaviour, the Node suite fits its CI leg budget again, and the family-build non-goal now excepts the receipt's base. Optional: document the options argument of generateTonalPalette(), which its doc signature omits.
Claims and files checked
Review mode: full; reason: history
- Changeset
palette-recipe-v2: a second recipe; configs keep their recipe, else v1; a bare API request runs v2. Matches the code, but the default conflicts with the palette record (blocking). That the middle of a ramp is unchanged at the default vibrancy is false for less vivid seeds (blocking). - Changeset
b-picture-missing-font-kind: the Apple-face note is verified; thatdoctornames the package that loads a missing family is false for families the font table does not know (blocking). - Changeset
theme-build-family-root-base: the root may extend an unselected theme, the receipt names its base, and a missing package fails by name. Verified (family root-base test). - Changeset
experimental-theme-family-pictures: every family is pictured andsheet.pngis still taken. False at this head (blocking). - Changeset
experimental-theme-show-speed:show --pngpictures only the families the theme sets and not the full sheet. Matches the code; "fast again" claims a fix for a slowdown that never shipped (blocking, with the note above). - Changeset
experimental-theme-property-letters-listed-twice(renamed and extended): settings fields the editor does not read are named. Matches the description. - 196 earlier changesets are renamed by behaviour with identical text, and each still exists on
main. No release note changes. - Description: the recipe behaviour, the family root base and receipt field, and the build warnings. Verified by the palette, family and build tests.
- Description:
show --pngtakes one picture per family. Too broad at this head (blocking, with the notes above). - Description: test times come in one more push. They are already in this push (non-blocking).
docs/specs/AST-034/spec.md: approved at this head; the non-goal is fixed.packages/cli/api/theme/palette/,theme.type.mjsand the palette docs: the default (blocking); the doc signature omitsoptions(non-blocking).packages/cli/api/theme/build/,theme-build.doc.mjs,response-types.doc.mjs,packages/cli/README.md: clear; the official themes build the same.packages/cli/api/doctor/: the guessed install line (blocking).packages/cli/foundation/render/: clear;picture-window.mjshas two identical tables (non-blocking).packages/cli/api/theme-edit/:data-cs-group(blocking); renamed tests clear.packages/cli/clients/cli/: the--pnghelp ofnew,setandundo(blocking); the rest clear.packages/core/src/BottomSheet/BottomSheetStacking.test.tsx: unrelated (blocking).scripts/vitest-node-durations*.json: recorded timing data; the plan fits.
…ads and the secondary text token; a reference in a look that draws none of that paint never gives the plain look's; a size named on a comparison's other part is read in that size or said; N times fainter; a part that draws no corners stays as it is under everything rounder except
…px\9, none\0) is refused as one a browser drops, with the value without it offered; css-tree's forgiveness of that ending is not trusted
…the cut-short test's fresh case is the theme the next case enlarges
…from one sheet section, and cases that change different parts share a theme
…he behavior they cover, and describe that behavior in their titles and comments
…stylesheet step for a self-hosted family
…, the new/set/undo help says the same, and the family pages are cut on the sheet's own classes
…rom the API and the command alike, and new palettes name v2; v2 draws every stop it does not share exactly as v1
3053a88 to
555ce6c
Compare
|
/approve-spec 555ce6c |
…ide is drawn exactly as v1, so role text and dark fills keep their strength
|
/approve-spec 8c197eb |
There was a problem hiding this comment.
Changes requested: three small fixes remain. An engineering owner approved the spec and direction changes at this head, and every blocker from the last review is fixed.
Blocking:
.changeset/doctor-font-step-self-hosted.mdsaysastryx doctornow names a font package "only for an open font it knows" and keeps the stylesheet step "instead of a guessed@fontsourcepackage", butdoctoronmainnever names any package, so drop this note and fold its scope intob-picture-missing-font-kind.md.- Miss: the new
basefield of thetheme build --familyreceipt (build.mjs:7093) is missing fromThemeBuildResponse.dataintheme.type.mjs, and the family build's text output never names the base package its outputs require, which the stable response contract says must stay aligned with the JSON, so add the typed field and a text line. - Miss:
.changeset/experimental-theme-help-lead-leads-examples.mdsays the remaining examples follow the options under "More examples:", butdefine-command.mjsrepeats every example under "Examples:", so reword the note or render only the rest under that heading, with a test.
Optional: the description says recorded Node test times "come in one more push", but this push already has them.
Claims and files checked
Review mode: full; reason: history
- Description, palette: a second recipe; a request or config that names no recipe runs v1 from the API and the command alike; new editor palettes record v2; a config keeps its recipe; the official palettes regenerate byte for byte. Verified by the palette tests and a base-against-head generation of all six shipped configs.
- Description and changeset, recipe v2 draws the dark side of every ramp and every pale stop whose gamut holds the default as v1 does. Verified (
generator.mjsgate above tone 50, and the recipe-v2 tests over the shipped and sample seeds). - Changeset and description, family root base: the root may extend an unselected theme, the receipt names it, a missing package fails by name, a local base that supplies icons is refused. Verified (family root-base tests); the response type is missing (blocking).
- Changeset, doctor names a package only for a known open font and keeps the stylesheet step otherwise. The behaviour is verified; the claim that it replaces a guessed package is false against
main(blocking). - Changeset, help lead: the first examples lead
--help. Verified; the "More examples:" heading is false (blocking). - Changeset,
show --pngfamily pictures replacesheet.png, and the help ofnew,set,undoandshowsays so. Verified (family-pictures test, command docs). - Changesets, theme build warnings (pair sizes, unset halves, typography shapes, misspelled fields, stylesheet imports, throwing getter, plain base through
defineTheme). Verified by their build tests. - The other added editor changesets were read; the 59 added or changed CLI test files pass, and no other false claim was found. 196 renamed changesets keep their text, and one is reworded.
- Description, test times come in a later push. Stale (non-blocking).
docs/specs/AST-034/spec.md: approved at this head; the non-goal exceptsbase.packages/cli/api/theme/palette/,theme.type.mjspalette types, palette docs: clear.packages/cli/api/theme/build/,theme-build.doc.mjs,response-types.doc.mjs,packages/cli/README.md:ThemeBuildResponselacksbase(blocking); the rest clear.packages/cli/api/doctor/: clear; its release note is blocking.packages/cli/clients/cli/lib/define-command.mjs: the help-lead note (blocking); the rest is formatting.packages/cli/clients/cli/commands/: clear.packages/cli/foundation/render/: clear;picture-window.mjshas two identical tables (non-blocking).packages/cli/api/theme-edit/sources and tests: clear; the family pages are now cut on the sheet's own classes.packages/cli/api/theme/themeTemplate.doc.mjs: formatting only.scripts/vitest-node-durations*.json: recorded timing data.
…e, since doctor on main names no package
…stays after the options
…uts require, and the response type has base
A family build whose root extends a theme the family does not select prints
which package that base comes from ("requires <package> (<export>) for
<root>'s base <theme>"), or that it is a local theme, as the receipt's base
field says. ThemeBuildResponse.data gains the optional base field.
|
/approve-spec 64c9e3b |
There was a problem hiding this comment.
Changes requested: two one-line text fixes remain. An engineering owner approved the spec and direction changes at this head, and the three blockers from the last review are fixed.
Blocking:
- Miss: the
theme.palette.generateentry inpackages/cli/foundation/response/response-types.doc.mjs(and the README table generated from it) still says the response'srecipeisastryx-oklch-v1, but a config that namesastryx-oklch-v2now gets v2 back (generate.test.mjs, "a config keeps the recipe it records"), so describe it as the recipe the config names, v1 when it names none, and regenerate the README. - Miss:
.changeset/experimental-theme-help-lead-leads-examples.mdsays "A theme command with more than three examples" opens its help with "Start here:", butaddDocHelpadds that lead only toexperimental themecommands, andastryx theme build --help(five examples) still opens with "Usage:", so say "An experimental theme command".
Optional: picture-window.mjs holds two identical display tables, so its display !== DISPLAY_OFF[name] check is always false.
Claims and files checked
Review mode: incremental; reason: none
- Description, palette: a second recipe; a request or config that names no recipe runs v1 from the API and the command alike; new editor palettes record v2; a config keeps the recipe it records; the official palettes regenerate byte for byte. Verified (palette generate and recipe-v2 tests, the editor's palette writer, and a base-against-head generation of the six shipped configs; the generator is unchanged since).
- Description and changeset, recipe v2 draws the dark side of every ramp as v1 does. Verified (the v2 branch runs only above tone 50; recipe-v2 tests).
- Description and changeset, family root base: the root may extend an unselected theme, the receipt names it as
base, the text output names the package it requires, a missing package fails by name, a local base that supplies icons is refused. Verified (family root-base tests, 8 pass). - Changeset,
doctornames the install command for an open font it knows and gives the stylesheet step for a self-hosted family. Verified (doctor check 9 and its tests). - Changeset, help lead: the first three examples lead the help and the full Examples section stays after the options. Verified for experimental theme commands; "a theme command" is broader than the code (blocking).
- Changeset,
show --pngfamily pictures replacesheet.png, and the editor commands' help says so. Verified. - Changesets,
theme buildwarnings (pair sizes, unset halves, typography shapes, misspelled fields, stylesheet imports, throwing getter, plain base throughdefineTheme). Verified by their build tests. - Description, the part data cache is keyed by a fingerprint of the code that builds it. Verified (
_parts.mjs). - The other editor changesets and description lines were read at the last reviewed head and are unchanged; no false claim found.
docs/specs/AST-034/spec.md: approved at this head; the non-goal exceptsbase.packages/cli/api/theme/palette/,theme.type.mjs, palette docs andgenerate-a-palette.doc.mjs: clear.packages/cli/foundation/response/response-types.doc.mjs,packages/cli/README.md: the palette response entry (blocking); thetheme.buildentry clear.packages/cli/api/theme/build/,theme-build.doc.mjs,themeTemplate.doc.mjs: clear.packages/cli/api/doctor/: clear.packages/cli/clients/cli/lib/define-command.mjs: clear; its release note is blocking.packages/cli/clients/cli/commands/: clear.packages/cli/foundation/render/: clear;picture-window.mjshas two identical tables (non-blocking).packages/cli/api/theme-edit/sources and tests: clear..changeset/: the help-lead note (blocking); the rest clear.scripts/vitest-node-durations*.json: recorded timing data.
…g names; the help-lead note says experimental theme commands; the picture window's display features read from one table
|
/approve-spec 9a1d66b |
There was a problem hiding this comment.
Approved pending CI: CI's Node test shards and one UI test leg are still running on this head, and the merge guard waits for them; typecheck, the build test and the docsite build have passed.
Both text fixes from the last review are in: the theme.palette.generate response reference now says the recipe is the one the request or config names, and the help-lead release note now says experimental theme commands. An engineering owner approved the spec and direction changes at this head, and this round found no new problem.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0)
- Description and release note, palette: a second recipe; a request or config that names no recipe runs v1 from the API and the command alike; new editor palettes record v2; a config keeps the recipe it records; the official palettes regenerate byte for byte. Verified (palette generate and recipe-v2 tests; the editor's palette writer; each shipped theme's config regenerates its committed palette file, copyright header aside).
- Release note, recipe v2 draws the dark side of every ramp and every pale stop the gamut holds as v1 does. Verified (recipe-v2 tests; a five-seed comparison changes only stops at 55 and above).
- Description and release note, family root base: the root may extend an unselected theme, the receipt names it as
base, the text output names the package it requires, a missing package fails by name, and a local base that supplies icons is refused. Verified (family root-base tests, on this head and on its merge withmain). - Release note,
doctornames the install command for an open font it knows and gives the stylesheet step for a self-hosted family; an Apple interface face's note offers its generic once. Verified (doctor check and its tests, on this head and merged withmain). - Description and release notes,
theme buildwarnings: typography shapes by what Core reads, signed weights read as written,[light, dark]size pairs and unset halves, non-ASCIIvar()names, a plain base throughdefineThemefirst, misspelled fields in every input form, stylesheet imports on every build, a throwing getter as a load error. Verified (the changed theme build tests). - Release note, help lead: an experimental theme command with more than three examples leads with three and keeps the full Examples section after the options. Verified (the help gate matches only experimental theme commands).
- Description and release notes,
show --pngtakes the sample page, the open states and one picture per family the theme sets, no longersheet.png;--sectiontakes any other family. Verified (show code;mainpictured the full sheet; family-pictures tests). - Description and release note, the part data cache is keyed by a fingerprint of the code that builds it, with no version number. Verified (the cache key replaces the hand-bumped version).
- Description and release notes, the editor round (clause scope, light and dark modes, strict places, elements, readers, amounts, contrast lines, media surfaces, missed list, refusals under native inputs, old IE escapes, spaced
var(), pictures, typed input, repeatable--when,show --theme). Verified by the editor tests the pull request adds and changes, all passing at this head, with spot checks in code. - Release notes renamed from numbered names: text unchanged, apart from one note that now also names unread settings fields. Verified (its test passes).
- Description, tests: lint, typecheck, the build test and the docsite build pass at this head; the full Node suite is still running in CI.
docs/specs/AST-034/spec.md: approved at this head; no approval line changes.packages/cli/api/theme/palette/,theme.type.mjs, the palette docs: clear.packages/cli/foundation/response/response-types.doc.mjs,packages/cli/README.md: clear (fixed in this round; the README check passes).packages/cli/api/theme/build/,theme-build.doc.mjs: clear.packages/cli/api/doctor/: clear.packages/cli/clients/cli/lib/define-command.mjs,packages/cli/clients/cli/commands/: clear.packages/cli/foundation/render/: clear (the picture window's display features now read from one table, with the same answers).packages/cli/api/theme-edit/sources and tests: clear (unchanged since the last reviewed revision; the added tests pass)..changeset/: clear.scripts/vitest-node-durations*.json: recorded test timing data.
Summary
The thirteenth round of fixes for
astryx experimental theme, from three more rounds of testing the editor with real requests. Each fix is at its cause, with tests.how
--brand-*variables by their role, value questions that read a token set on the part.Checks and lines
var( --x )is read as CSS reads it.Pictures
show --pngtakes the sample page, the open states, and a picture of each family of components the theme sets a part of (the buttons when it sets none) instead of the full sheet;show --section <family> --pngtakes any other family. The overlays page starts with each control's states; drawn hover applies Core's own state rules behind(hover: hover); tables and code blocks take a full row; cells grow to their content; a selected and sorted table is drawn; sample-card buttons wrap; a label still cut short is measured with a fix line; a serif or cursive stack drawn in another font is named.Reading what was typed
newreads a setting typed inside its own quotes and a built-in base typed beside another word;show --theme toffersshow t;--whentakes one condition per prop; settings fields the editor does not read are named; a color set with no--modein a one-mode theme is saved for that mode; experimental help leads with its first examples.Theme build and the palette
-100,+500) are read as written. A [light, dark] pair of sizes, or a half that reads no token, is warned; non-ASCII token names are read.defineThemefirst; misspelled fields are warned in every input form; stylesheet imports are warned on every build; a throwing getter gives a load error.--family: the root may extend a theme the family does not select; the receipt names that base in a newbasefield; a missing base package fails naming it.astryx-oklch-v2, whose pale stops follow vibrancy and keep a dusty seed dusty; the dark side of every ramp (role text and dark fills) is drawn exactly as v1 draws it. A request that names no recipe runs v1, from the API and the command alike, so existing callers keep their colors; new editor palettes record v2, and a config keeps the recipe it records (record"recipe": "astryx-oklch-v1"or-v2to pin it). The official palettes regenerate byte for byte.Scope
Components: experimental theme (editor, how, preview, pictures, compile), theme build (
--familyroot base and receipt field, typography and value warnings), palette generator (recipe v2), foundation render (pictures, media queries)Writing rubric results
AST-034 FR1 and FR2 edits, run against docs/contributing/spec-writing.md:
Tests
New editor, build and palette 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.