Repository navigation
Share theme palette reference generation - #7678
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression46 of 494 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 26 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
No blocking issues found; this review recommends approval. The shared generator is a mechanical extraction: Neutral's selected palette references regenerate byte-for-byte identically, with the same check behavior and error messages. The new receipt assertion keeps every non-diagnostic receipt field exact and tolerates only negligible floating-point drift in diagnostic measurements, consistent with the palette-recipe contract. Nothing further is needed from you.
[Automated review]
af9b81e to
37c2274
Compare
There was a problem hiding this comment.
No blocking issues found; this review recommends approval. The shared generator reproduces Neutral's selected palette references, check results and error messages exactly, and the new generatorVersion and candidateFormatVersion receipt fields leave candidate bytes and digests unchanged while supplying the implementation and format versions the palette-generation spec asks receipts to name. Before merging, please update the description to mention those receipt fields and the @astryxdesign/cli changeset that arrived with #7679, since it currently describes only the script extraction and the receipt assertion.
[Automated review]
Summary: Palette generation receipts now name the generator implementation (`generatorVersion: palette-generator-v1`) and the format of the candidate bytes they hash (`candidateFormatVersion`: `palette-typescript-v1` for a TypeScript output, `palette-json-v1` for a JSON output or a printed candidate), as AST-008 FR6 requires. The serializer returns the format together with the exact bytes it produced, so the recorded format always matches the hashed output. `candidateSha256` and every existing receipt field keep their values and order. The version constants are module exports beside `PALETTE_PREVIEW_VERSION`; the public API barrel is unchanged. Test Plan: pnpm exec vitest run packages/cli/api/theme/palette/generate scripts/palette-receipt-test-utils.test.mjs scripts/generate-neutral-palette-refs.test.mjs scripts/check-theme-template.test.mjs; tsc --project packages/cli/tsconfig.strict.json; eslint and prettier --check on changed files; pnpm check:changesets. Reviewers: Subscribers: Tasks: Tags:
19d98bf to
2b5f108
Compare
Summary
@astryxdesign/cliTest plan
pnpm vitest run scripts/generate-neutral-palette-refs.test.mjs scripts/palette-receipt-test-utils.test.mjs packages/cli/api/theme/palette/generate/generate.test.mjs packages/cli/foundation/response/response-types.doc.test.mjsnode scripts/generate-neutral-palette-refs.mjs --checkpnpm -F @astryxdesign/cli readme:checkpnpm -F @astryxdesign/cli typecheck:json-apipnpm check:repoThis maintenance prerequisite contains no theme color or token changes.