Fix composer won't focus after visiting concierge from get assistance page#40708
Conversation
|
Additional video of other page fixes: Screen.Recording.2024-04-22.at.23.56.34.movHere is how I find which page has the same issue:
I don't apply the fix for App/src/pages/OnboardingWork/BaseOnboardingWork.tsx Lines 59 to 67 in 6abd9fd I don't record for WalletStatementModal because I don't know how to show the page normally and the page isn't being used anymore but I still applied the fix. |
@bernhardoj Why does this affect small screens? also could you please merge main? |
…g-concierge-from-rhp
|
Merged with main, ManageTeamsExpensesPage is removed.
It's the auto-focus condition.
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-04-24.at.08.40.29.mp4Android: mWeb ChromeCleanShot.2024-04-24.at.08.36.24.mp4iOS: NativeCleanShot.2024-04-24.at.03.11.20.mp4iOS: mWeb SafariCleanShot.2024-04-24.at.03.14.31.mp4MacOS: Chrome / SafariCleanShot.2024-04-24.at.07.12.27.mp4MacOS: DesktopCleanShot.2024-04-24.at.08.43.20.mp4 |
|
@bernhardoj we've got some conflicts |
…g-concierge-from-rhp
|
Conflicts solved, the live markdown version is updated to 0.1.64 in |
|
✋ 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/MariaHCD in version: 1.4.67-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.67-7 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.67-7 🚀
|
| { | ||
| title: translate('getAssistancePage.chatWithConcierge'), | ||
| onPress: () => Report.navigateToConciergeChat(), | ||
| onPress: () => Report.navigateToConciergeChat(true), |
There was a problem hiding this comment.
This caused a regression of #41610. We should only dismiss modal when there’s a RHP page.
Details
If we open concierge chat from the any RHP page, the composer auto focus won't work anymore because the
modal.isVisibleis still true because we don't close the RHP. This PR fix it by dismiss the modal before navigating to concierge.Fixed Issues
$ #21401
PROPOSAL: #21401 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
NOTE:
For small screen, the composer will be focused only if the chat is really empty, that is when you open the chat a full screen skeleton loader is shown
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-04-22.at.23.48.11.mov
Android: mWeb Chrome
Screen.Recording.2024-04-22.at.23.43.45.mov
iOS: Native
Screen.Recording.2024-04-22.at.23.49.25.mov
iOS: mWeb Safari
Screen.Recording.2024-04-22.at.23.42.24.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-22.at.23.39.24.mov
MacOS: Desktop
desktop.mov