Repository navigation
Phone motion: sheet spring and drag, UI-thread press, rows that leave, booking confirmation - #183
Merged
Merged
Conversation
…, booking confirmation The phone's motion now follows the approved review. src/motion.ts holds the tokens and their Reduce Motion forms (Reanimated's useReducedMotion). Sheets open with animationType none: the panel rises on a critically damped spring while its scrim fades on its own, a drag past 30% of the height or a flick over 800 pt/s closes it (a selection tick at the point), Reduce Motion fades both, and VoiceOver starts at the sheet's title (SheetTitle). Buttons, rows, More's tiles and the AI button press on the UI thread (scale 0.98, opacity 0.85), and an unavailable one is dimmed and still, never what a press looks like. Marking a reminder done on Home or Attention removes the row at once (react-query onMutate, rolled back on error) with a light haptic and an announcement; rows enter, leave and settle with the list tokens. Booking an entry is the one success haptic, its confirmation rises in and takes VoiceOver's focus, and a reversal booked is a warning. The app runs at 120 Hz (CADisableMinimumFrameDurationOnPhone). docs/design/mobile.md's Motion section has the principles, tokens with their fallbacks, the haptics rules and what is deferred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
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.
The approved motion review for the phone (packages/mobile), built.
src/motion.ts(press, list, sheet, success) with their Reduce Motion forms, from Reanimated'suseReducedMotion; the hand-rolled hook insheet.tsxis gone. Adds react-native-reanimated, react-native-worklets, react-native-gesture-handler and expo-haptics at the SDK 58 versions;GestureHandlerRootViewat the root.animationType="none"; the panel rises on the sheet spring while the scrim fades on its own; drag down past 30% of its height or faster than 800 pt/s closes it (a selection tick at the threshold); Reduce Motion fades both; VoiceOver focus goes to the title (SheetTitle, used by every sheet).ButtonandRow, More's tiles and the AI button usePress(UI thread, scale 0.98 + opacity 0.85); unavailable is 0.45 and still.onMutate, rolled back on error) with a light haptic and an announcement (src/reminders.ts).CADisableMinimumFrameDurationOnPhone.Verified on the iOS Simulator (dev build) with Reduce Motion off and on: the sheet rises, snaps back on a short drag and closes on a long one (fading with Reduce Motion); presses dim and scale; a reminder marked done leaves and the rows below settle; booking shows the confirmation card. No console pages changed.
🤖 Generated with Claude Code