Repository navigation
[CLI] Keep the doctor themes check beside the app-theme checks - #7179
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 Regression23 of 442 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 3 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Thanks — keeping the released themes check available by its stable id, instead of letting it disappear in the next patch, is the right compatibility call, and the restoration itself checks out: same package discovery, messages, statuses, and position after version alignment for projects without a generated theme module, with the spec-settled narrowing (ASTRYX_THEME and workspace-root wiring no longer count, astryx.theme read from the app's own package.json) clearly covered by the new release note.
One fix is needed in the new rollup for projects with a generated module: it can report pass saying every theme check passes while theme-stylesheet-imports is only info because imports in an unparseable file could not be proven paired with their stylesheets. Please pass the rollup only when every check it summarizes has passed, and name any non-passing check otherwise — I left the details inline at the pass condition.
[Automated review]
There was a problem hiding this comment.
Approving. Against published 0.6.6 on the same projects (no theme package, a package installed but not wired, one wired through astryx.theme, and a pnpm symlink install), doctor --json gives themes the same id, label, status, message and place, right after version-alignment, so a script that reads it by id keeps working. Only the fix text changes, to theme add --import.
The workspace and ASTRYX_THEME differences behave as the new Changeset says, and the #7154 note no longer claims a rename. Taking themes out of the report fails the new position test.
[Automated review]
There was a problem hiding this comment.
Thanks — this keeps the released themes check available by its stable id instead of letting it disappear in the next patch, which is the right compatibility call.
I verified the restored check against the pre-removal behavior: same package discovery, messages, statuses, and position after version alignment for projects without a generated theme module, with the spec-settled narrowing (ASTRYX_THEME and workspace-root wiring no longer count, and astryx.theme is read from the app's own package.json) clearly covered by the new release note. With a generated module, the summary now passes only when every check it summarizes has passed — an unproven check yields an info summary naming it instead of claiming every theme check passes — and the new tests pin that case along with the exact legacy objects and report position. The theme-checks and doctor suites pass.
No changes requested from me.
[Automated review]
User need
astryx doctor --jsonreports athemescheck on every project in 0.6.5 and 0.6.6, and doctor documents each check id as stable. Main dropped that check when the app-theme checks arrived, so a script that readsthemesby id would stop finding it in the next patch.What this does
Doctor reports
themesagain, in its released place right after version alignment, with the released id, label and fields.Without a generated theme module,
themesreports what it reported before:warnwhen no@astryxdesign/theme-*package is installed;warnwhen one is installed but the app's package.json names no theme inastryx.theme;passwhen it names one.The messages are the released ones. The fix text now names
theme add --import.With a generated theme module,
themesreports the overall result of the app-theme checks. It passes only when every one of them passed. Otherwise it reportsfailorwarnand names the checks that need attention, orinfoand names the checks that could not prove their result.theme-managementand thetheme-*checks are unchanged.The pending release note no longer says the check was renamed, and a new note describes the kept check.
Compatibility
Compared with published 0.6.6 on the same project, the
themesid, label, status, message and position are identical in each released state: no theme package, a package installed but not wired, and a package wired throughastryx.theme. The differences:theme add --import, not the environment variable or the config file.ASTRYX_THEMEvariable, which the CLI does not read, no longer counts as a wired theme. Athemekey in astryx.config.mjs never counted, in 0.6.6 either.astryx.themeis read from the app's own package.json, the same file the CLI reads when it resolves the theme, rather than the package.json beside the rootnode_modules. An app whose own package.json names a theme now passes with hoisted packages; an app that relied on a theme named only in the root package.json now warns.Testing
themes(id, label, fields and statuses) with and without a generated theme module, the rollup's handling of checks that could not prove their result, and its single place right after version alignment in the doctor report. Removingthemesfrom the report, or changing its label, fails them.