Skip to content

New Update - #8675

Open
thecodebasedot wants to merge 13 commits into
meta:mainfrom
thecodebasedot:main
Open

thecodebasedot wants to merge 13 commits into
meta:mainfrom
thecodebasedot:main

Conversation

@thecodebasedot

@thecodebasedot thecodebasedot commented Oct 27, 2026 •

Copy link
Copy Markdown

Primary intent

User or maintainer impact

Authority

Change

Evidence

Scope

  • This PR has one primary intent.
  • Independently removable API, visual, layout, behavior, cleanup, and policy changes were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

claude and others added 13 commits October 27, 2026 08:20
…mounts

Runtime style injection was owned by whichever Theme instance ran its
insertion effect first, and every later instance of the same theme
skipped with no cleanup. Unmounting that owner, typically a nested
Theme wrapping a dialog, removed the document-wide <style> tags while
other Theme instances still relied on them. Track a per-theme mount
count and release the CSS only when it reaches zero.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
ArrowUp/ArrowDown committed a stepped time and announced it, but never
cleared pendingInput, so the box kept showing the pre-step text. On
blur that stale draft was re-parsed and committed over the step,
undoing it. Clear the draft when the step commits.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
Controlled focus requires both focusDate and onFocusDateChange, and the
imperative navigateTo handle honored that. The Prev/Next buttons and
keyboard month crossing in Calendar, and navigateMonth in
useCalendarNavigation, branched on the callback alone, so a
listener-only calendar reported the new month but never moved. Always
fire the callback and update internal state unless focus is controlled.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
scheduleShow already returned early when isOpen === false, but
handleFocusIn opened the card unconditionally, so keyboard focus on
the trigger overrode a controlled closed state and fired
onOpenChange(true). Apply the same guard on the focus path.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
…he timer

Hover, focus-within, window blur and a held gesture all shared a single
isPausedRef boolean. pauseTimer was a no-op when already paused and
resumeTimer unconditionally restarted the countdown, so mouse-leave
while focus was still inside (or vice versa) resumed the timer and the
toast auto-dismissed under the focused user. Track a pause count and
restart only when it drops to zero; isTimerPaused reads the count.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
The explicit-domain branch in computeLayout ran before the numeric-x
check, so a categorical chart given xDomain got a linear scale over
string categories: bar.resolve returned nothing and line/area/dot
x positions were NaN. Apply xDomain only when x is numeric or data is
empty, matching the documented contract.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
An inline region literal is a new object every render, so the effect
re-ran, re-fetched and re-sampled the image, then set state and
rendered again, in an unbounded loop. Read the region's x, y, width
and height into the dependency array instead.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
satisfiesComparator ignored how many parts a caret target carried, so
^0 and ^0.0 fell through to the 0.0.x patch lock. A hyphen range was
tokenized into two exact comparators that could never both hold.
Widen a partial caret to the parts given and rewrite A - B as
>=A <=B before tokenizing.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
rewriteImports keeps the deep path for cross-directory .stylex
imports, but Layer/layerStructureReset.stylex and
DropdownMenu/menuBottomSheet.stylex were missing from the exports
map, so a swizzled Dialog, Drawer, BottomSheet, Lightbox, MobileNav,
Toast or ContextMenu could not resolve its imports. Add both to
STATIC_EXPORTS and regenerate; widen the swizzle resolution test from
Button to every component directory.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
listComponents excluded just hooks, theme and utils, so __tests__,
gestures, i18n and motion were advertised and accepted as swizzle
targets. Exclude the shared infrastructure directories and require a
capitalized component name.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
getByLabelText returns HTMLElement, so reading .value failed the
package typecheck; use the matcher the rest of the file uses.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
The copy read only the regular files directly in the component
directory and skipped every subdirectory, so Markdown, Table, Dialog
and others came out with dangling ./plugins, ./modules or ./hooks
imports. Walk the component recursively (skipping __tests__ and
__snapshots__), create nested output directories and roll them back on
a failed copy, and give rewriteImports the file's depth so imports that
stay inside the component remain relative while escaping ones are still
mapped to the owner package.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YEUUZbBab9KaX34tjjQ1Go
fix(Theme): keep shared injected CSS until the last Theme instance unmounts
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx (canary) Ready Ready Preview Oct 27, 2026 11:48am UTC
astryx Ready Ready Preview Oct 27, 2026 11:48am UTC

Request Review

@github-actions github-actions Bot added community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge labels Oct 27, 2026
@astracat-bot

astracat-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 27, 2026, 1:10 PM UTC

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request bundles eleven independent fixes across Core, Charts and the CLI, so it can't be approved as it stands. Please split it so each pull request carries one fix with its template filled in (see docs/contributing/pull-requests.md), and drop the Toast change, because main already has an equivalent fix (#9016) that it conflicts with. Separately, the two new @astryxdesign/core subpaths (./Layer/layerStructureReset.stylex and ./DropdownMenu/menuBottomSheet.stylex) need an engineering owner to decide whether Core publishes them or astryx swizzle copies those modules instead; an engineering owner records that decision by commenting /approve-spec <full head SHA> on the pull request, and the author may do so if they are an engineering owner.

  • satisfiesRange still reports a mismatch for a partial upper bound such as 1.0.0 - 2 with 2.1.0 or 18 - 22 with 22.5.0 (packages/cli/foundation/env/semver.mjs:168).
  • .changeset/cli-swizzle-list-components-only.md implies non-component names are now refused, but astryx swizzle motion, gestures and __tests__ still copy; refuse them or narrow the note.

[Automated review]

// can never both hold.
const normalized = union
.trim()
.replace(/^(\S+)\s+-\s+(\S+)$/, '>=$1 <=$2');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A partial upper bound is still misread here. 1.0.0 - 2 becomes >=1.0.0 <=2, and <=2 compares against 2.0.0, so 2.1.0 returns false. npm reads - 2 as <3.0.0-0 and - 2.3 as <2.4.0-0. When the upper version has fewer than three parts, emit < the next major or minor instead, and add a case to semver.test.mjs.

'@astryxdesign/cli': patch
---

[fix] `astryx swizzle --list` lists only component directories. It offered `__tests__`, `gestures`, `i18n` and `motion` as components, and `astryx swizzle` accepted them: copying `__tests__` produced an empty directory and copying `motion` or `gestures` produced files whose rewritten imports point at subpaths the core package does not export.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only swizzle --list changes in this pull request. astryx swizzle motion, swizzle gestures and swizzle __tests__ still succeed (20, 8 and 9 files at this head), because swizzleCopy never consults listComponents. Either refuse a Core directory the list does not return, or narrow this note to the list.

"types": "./dist/Indicator/indicator.markers.stylex.d.ts",
"default": "./dist/Indicator/indicator.markers.stylex.js"
},
"./DropdownMenu/menuBottomSheet.stylex": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These entries make ./DropdownMenu/menuBottomSheet.stylex and ./Layer/layerStructureReset.stylex public, compatibility-covered subpaths of @astryxdesign/core. No current spec record names them yet, so an engineering owner needs to decide whether Core publishes them and which record covers them.

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 1a54a4b

Storybook · Sandbox · built from this PR's head

Current run: The current CI run concluded failure. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

This branch was successfully deployed

2 active deployments
canary — 1a54a4b6 Deployed Oct 27, 2026 by vercel[bot]
Preview — 1a54a4b6 Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants