Repository navigation
New Update - #8675
New Update#8675thecodebasedot wants to merge 13 commits into
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
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.
satisfiesRangestill reports a mismatch for a partial upper bound such as1.0.0 - 2with 2.1.0 or18 - 22with 22.5.0 (packages/cli/foundation/env/semver.mjs:168)..changeset/cli-swizzle-list-components-only.mdimplies non-component names are now refused, butastryx swizzle motion,gesturesand__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'); |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
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.
PR Analysis Report🔎 Preview ·
|
Primary intent
User or maintainer impact
Authority
Change
Evidence
Scope
Testing