[CP Staging] Fix Chat - Claim offer banner is partially visible when keyboard is closed in landscape mode - #90128
Conversation
…losed in landscape mode
| return; | ||
| } | ||
| animatedHeight.set(withTiming(naturalHeightValue, {duration: RESTORE_DURATION})); | ||
| }, [prevIsFocused, isFocused, animatedHeight, naturalHeight]); |
There was a problem hiding this comment.
I think only isFocused in the dependencies is enough
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-05-11.at.14.28.09.movAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-05-11.at.14.31.30.moviOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
…ape-mode/restore-header-on-screen-focus-loss Fix Chat - Claim offer banner is partially visible when keyboard is closed in landscape mode (cherry picked from commit 09a5925) (cherry-picked to staging by mountiny)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.69-11 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a purely internal UI bug fix that prevents the chat header ("Claim offer" banner) from remaining collapsed after navigating away in landscape mode with the keyboard open. The change is limited to animation/layout logic in |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.69-18 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.70-0 🚀
Bundle Size Analysis (Sentry): |
|
This PR modifies the internal No help site changes are required — this is a native mobile UI animation fix with no impact on user-facing features, settings, or workflows documented on the help site. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.72-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This PR fixes a native mobile UI bug where the chat header (e.g., the "Claim offer" banner) could remain collapsed after navigating away from a screen in landscape mode with the keyboard open. The change is a purely internal behavior fix in the |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.72-1 🚀
|
Explanation of Change
In
CollapsibleHeaderOnKeyboard, the chat header could remain collapsed after navigating to a different screen in landscape mode with the keyboard open. Added auseEffectthat tracks the previousisFocusedvalue and restores the header to its natural height when the screen loses focus, preventing the banner from being partially hidden.Fixed Issues
$ #90054
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2026-05-10.at.18.09.00.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2026-05-10.at.18.13.49.mov
iOS: mWeb Safari
MacOS: Chrome / Safari