Repository navigation
chore: land 6 reviewed pull requests together (batch 166) - #13542
Conversation
The JSDoc of the icon response types and the icon rows of the response type docs say "icon meaning" and "variant". Names and members do not change. [skip ci]
…enamed The `icon map` help names its first argument `definition`, so printed commands keep `<definition>` until that rename lands. [skip ci]
…ow on a phone when they fit [skip ci]
…s its hover and keyboard focus visible Folds in the fixes from review: Core's own hover, press and focus come back under a resting background or outline, under Core's disabled and touch conditions; a state the theme sets for that scope, a wider one, or one mode stays; a wider focus outline is copied per property under a resting look for a variant and a size, keeping what that scope sets itself.
…finition file [skip ci]
…te icons' icon component [skip ci]
…o a phone's text size also falls back to one per row [skip ci]
… the release note names the three settings Review findings on #13464: image-set() joins gradient and url() as a background with its own image, which keeps it in every state; the release note and title name the resting settings handled (background color shorthand, outline, a shadow on a ringed part).
…nt gets no overlay back Review finding on #13464: a resting background on AvatarGroup's overflow got revert-layer in its hover and press rules, so Core's neutral tint came back under the pointer. A part whose plain resting background-image (not under an attribute state) is not none now gets no overlay restore.
…alue's type size [skip ci]
Review finding on #13464: the release note now says a part whose resting image is Core's own tint (AvatarGroup's overflow) gets no overlay back, as the code and description do. Text only.
…ow on a phone when they fit [skip ci]
… loads them theme build --family checked each member's registry by importing its source with Node, so a family stopped on a local .tsx or .jsx registry, on a .ts one before Node 22.18, or on a local import without its extension, while a single build of the same member compiles it. A family build now writes the modules it compiles to a folder beside the modules folder, at the same depth, imports each compiled registry from there with Node, as the family module will, and only then writes its outputs; the folder is always removed. The check runs after the output checks, so a build refused for writing outside cwd writes nothing, and --check writes nothing: it reads a compiled registry, and the comparison of the committed modules reports any stale or missing one. A registry whose imports plain Node cannot load still stops the build, naming the file. Tests build families through the CLI in its own process: .ts, .tsx and .jsx registries that import a helper without its extension build, and the family module loads in plain Node (all three fail on main); a .tsx entry of a linked workspace package stops the build, naming the package file and writing nothing, whether the member imports the package or a local registry re-exports it; --check on a read-only folder and a build refused outside cwd make no write. Author a theme's family section says a member's TypeScript or JSX registry or slot module is compiled as for a single build; the icon and icon set search counts each rise by one.
Astracat's first review found that --check, by only reading a compiled registry, no longer caught a registry whose installed dependency drops an export. --check now checks each registry from its source, exactly as on main, and writes nothing; checking the committed compiled copies under --check follows as its own change. [skip ci]
…s on main The family section's sentence named an icon registry, which added one match to the icon and icon set searches; main has since moved those snapshots, so the counts no longer lined up. It now says a member's registry or slot module, and no search golden changes.
A family whose member has a local TypeScript or JSX registry builds, but --check checked that registry from its source, so it failed right after a successful build. When every module the build compiles matches its committed copy in <family-key>.modules/, --check now imports each compiled registry from that committed copy, as the family module does, and writes nothing; when a copy is stale or missing, the comparison of the outputs reports it. Tests run the CLI in its own process: a .tsx family is up to date right after its build; a changed registry is reported stale, not as a registry it cannot import (both fail on the parent); a dependency that drops an export the registry imports still fails --check.
…as plain Node loads them
…or shadow keeps a part's hover and keyboard focus visible
…numbers per row on a phone when they fit
…cons say icon component
|
/approve-spec 5efe574 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: the heavy CI jobs (build and tests) run after review passes and have not run on this head yet.
All six changes check out together at this head, and #13358's earlier --check problem is fixed by #13388's change in this batch. There are no blocking findings.
- Optional: in editor themes with a resting background, a touch press still cuts off instead of fading on release, because only
:hoverand:activegetrevert-layerand Core's[data-astryx-press="fading"]arm stays masked (see the inline note).
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the six pull requests merge in the listed order and each merge is clean: verified (each merge's tree equals a clean merge of its two parents).
- Claim: five were reviewed and approved on their own heads and #13358 is reviewed here: verified; #13358's open request,
--checkimporting registry sources, is fixed by #13388's change atbuild.mjs:2717-2722. - Claim: the listed files are shared by #13358 and #13388, and no records change: verified.
- Release note (family build): local
.ts,.tsxand.jsxregistries and extensionless local imports build in a family and compile into<family-key>.modules/; each compiled copy is imported with Node before anything is written; a registry plain Node cannot load still stops the build, naming it, with nothing written: verified (CLI-process tests inbuild.self-contained.test.mjs). The.tsbefore Node 22.18 case was not run. - Release note (family check):
--checkreports such a family up to date right after its build, imports the committed copies, writes nothing, and leaves a stale or missing copy to the output comparison: verified (read-only folder, up-to-date, stale and dependency tests). - Release note (editor): a resting background color gives hover and press back under Core's conditions, an own image is kept, AvatarGroup's overflow gets no overlay, a resting outline brings the focus outline back, rings draw over a resting shadow, and theme-set states and a variant-and-size scope's own properties stay: verified (24 new and 5 updated test cases pass); the touch release fade is the optional note.
- Release note (icon types): the icon response types say "icon meaning" and "variant", with names, members and JSON keys unchanged: verified (only description text changes).
- Release note (icon guides): relatives show on every match in JSON and, in text, under the first match only, at most four; template icons say "icon component": verified (
icon.mjs:118,:299-305). - Release note (scorecard): two per row below 768px only where they fit, one per row on a narrow phone or with larger text, the change figure moves under the value, 768px and up unchanged: verified at 360, 390, 390 with 20px text and 600px; the 768px and up tiers are unchanged in code.
- File
.changeset/experimental-theme-rest-look-keeps-hover-focus.md: clear. - File
.changeset/family-build-compiled-registry-check.md: clear. - File
.changeset/family-check-committed-modules.md: clear. - File
.changeset/icon-guide-rewordings.md: clear. - File
.changeset/icon-words-response-types.md: clear. - File
.changeset/scorecard-two-up-phone.md: clear. - File
packages/cli/api/icon/icon.type.mjs: clear. - File
packages/cli/api/theme-edit/_settings.mjs: optional note at line 7748. - File
packages/cli/api/theme-edit/theme-part-state-wins-build.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-part-text-sits-core.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-rest-look-keeps-hover-and-focus.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-resting-shadow-part-rings.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-state-part-states-changed.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-titles-shadows-alpha-state.test.mjs: clear. - File
packages/cli/api/theme/build/build.mjs: clear. - File
packages/cli/api/theme/build/build.self-contained.test.mjs: clear. - File
packages/cli/assets/docs/author-a-theme.doc.mjs: clear. - File
packages/cli/assets/docs/tree/icon-sets.doc.mjs: clear. - File
packages/cli/assets/docs/tree/template-icons.doc.mjs: clear. - File
packages/cli/assets/templates/pages/dashboard-scorecard/page.tsx: clear. - File
packages/cli/foundation/response/response-types.doc.mjs: clear. - File
packages/cli/test/__golden__/no-icon-set/docs-tree.json: clear; it follows the template icons wording.
| ); | ||
| }); | ||
| if (restingImage) return; | ||
| for (const state of ['hover', 'active']) { |
There was a problem hiding this comment.
Optional: on a coarse pointer Core paints the press release through [data-astryx-press="fading"] (packages/core/src/utils/interactionOverlay.stylex.ts:240), not :active, so under a resting background shorthand the press still cuts off on release instead of fading. Writing background-image: revert-layer for that attribute arm too (with a test) would hand the fade back to Core.
…three doc spans match 0.7.17 Restores the response-type rename that main carries from #13542 (#13433) in icon.type.mjs to its 0.7.17 wording, and returns "with `variant`," and "the set's default variant" in the icon docs to the released text. The response-types changeset names only what still changes.
This pull request lands 6 pull requests in one CI run. 5 of them were reviewed and approved on their own heads; #13358 is reviewed as part of this pull request.
Some of them change the same files. They were merged in the order listed below, each merge was clean, and the combined result at this head is what is reviewed and tested here. Shared files:
.changeset/family-build-compiled-registry-check.md(fix(cli): a theme family checks its compiled registries as plain Node loads them #13358, fix(cli): --check reads a theme family's committed compiled registries #13388)packages/cli/api/theme/build/build.mjs(fix(cli): a theme family checks its compiled registries as plain Node loads them #13358, fix(cli): --check reads a theme family's committed compiled registries #13388)packages/cli/api/theme/build/build.self-contained.test.mjs(fix(cli): a theme family checks its compiled registries as plain Node loads them #13358, fix(cli): --check reads a theme family's committed compiled registries #13388)They change no records.
Scope
When this merges, each pull request above is closed with a note that names this one.