mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
* fix(app): keep sheet footer safe-area clearance in lockstep with keyboard transitions Bottom sheet visible height and bottom safe-area clearance were owned by two separate keyboard signals on different threads: SheetVisibleFrame shrunk and restored height on the UI thread from Gorhom's animatedKeyboardState (driven by React Native Keyboard events), while AdaptiveModalSheet toggled footerPaddingBottom on the JS thread from useKeyboardVisibility (driven by react-native-keyboard-controller's keyboardWillShow and keyboardDidHide). On keyboard close, SheetVisibleFrame restored full height at animation start while footerPaddingBottom stayed 0 until keyboardDidHide fired after the animation ended (~200ms later), leaving the footer visibly behind the system navigation bar before snapping back up. On Android open, SheetVisibleFrame shrank before the JS commit cleared safe-area padding, producing a 1-frame upward overshoot by the nav-bar inset. Move bottom safe-area clearance into SheetVisibleFrame (and a shared UI-thread hook for scrollable footerless bodies) using the same effective keyboard height that sizes the frame, keeping height and paddingBottom atomic in one commit and removing the now-unused useKeyboardVisibility hook and sheet layout helper. * test(app): replace JSDOM visible-frame test with Android frame-by-frame regression check Removes the JSDOM + module-mock test in visible-frame.test.tsx per docs/testing.md and adds a native Android screenrecord regression runner and frame analyzer under packages/app/e2e/mobile/modal-sheet/ that verifies every frame of the Add project footer across keyboard show/hide cycles (catching both the behind-nav-bar drop on dismiss and the 1-frame upward overshoot on open on the parent commit). * test(app): check absolute nav-bar clearance and keep device settings untouched in sheet footer QA script