feat(ux): staggered screen entrance animations (home + detail)#133
Merged
Conversation
Home (AI card, recent items, dashboard cards) and detail-view sections now fade-and-rise into place with a short per-element stagger via reanimated's FadeInDown, matching the entrance polish top-tier apps use. Only ScrollView-backed surfaces get this — FlashList-recycled rows are left alone so recycling doesn't re-trigger the animation. Adds a self-contained react-native-reanimated jest mock: v4 pulls in react-native-worklets, whose native half throws under Node, and the package's own bundled mock re-imports the real entrypoint (so it throws too). The mock renders Animated.* as host components and makes the layout-animation builders chainable no-ops. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Second slice of the 动效与转场 (motion/transitions) UX track, after the merged KPI count-up (#132).
FadeInDownwith increasing delays).Only ScrollView-backed surfaces get entrance animations. FlashList-recycled rows are deliberately left untouched, since cell recycling would re-trigger the animation on scroll.
Reanimated jest mock
Mounting these screens in tests surfaced that reanimated v4 pulls in
react-native-worklets, whose native half throwsWorklets isn't initializedunder Node — and the package's own bundled mock re-imports the real entrypoint, so it throws too. Added a self-contained mock injest.setup.tsthat rendersAnimated.*as host components and turns the layout-animation builders (FadeInDown.delay().duration()…) into chainable no-ops.Verification
tsc --noEmitcleaneslintcleanAnimated.Viewsections now run again under the new mock)🤖 Generated with Claude Code