Fix RHP slide animation when opening sign in modal - #43985
Conversation
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
I can't access public room in android mWeb. |
|
@bernhardoj BUG: the login page scroll to the bottom when reloading Screen.Recording.2024-06-20.at.11.30.29.mov |
|
Nice catch, fixed! |
| export default SCREENS_WITH_AUTOFOCUS; | ||
| function getScreenWithAutofocus(isAuthenticated: boolean) { | ||
| if (!isAuthenticated) { | ||
| return [...SCREENS_WITH_AUTOFOCUS, NAVIGATORS.BOTTOM_TAB_NAVIGATOR]; |
There was a problem hiding this comment.
sign in page route name is NAVIGATORS.BOTTOM_TAB_NAVIGATOR, but auth screen also has NAVIGATORS.BOTTOM_TAB_NAVIGATOR, so I conditionally added it only if we are not authenticated.
|
@bernhardoj Could you help to merge the latest main? |
|
Done |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-02.at.16.06.17.movAndroid: mWeb ChromeScreen.Recording.2024-07-02.at.15.57.37.moviOS: NativeScreen.Recording.2024-07-02.at.16.05.59.moviOS: mWeb SafariScreen.Recording.2024-07-02.at.15.56.55.movMacOS: Chrome / SafariScreen.Recording.2024-07-02.at.15.55.00.movMacOS: DesktopScreen.Recording.2024-07-02.at.15.59.25.mov |
|
Building a test build for this so I can have design do a final pass @bernhardoj @DylanDylann |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.0.4-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
Details
The immediate auto focus breaks the RHP sliding animation. This PR fix it.
Fixed Issues
$ #43806
PROPOSAL: #43806 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.2024-06-19.at.18.51.51.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-06-19.at.18.51.01.mov
iOS: mWeb Safari
Screen.Recording.2024-06-19.at.18.41.27.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-19.at.18.39.09.mov
MacOS: Desktop
Screen.Recording.2024-06-19.at.18.40.57.mov