[CP Staging] fix: onboarding modal is not displayed in web#54329
[CP Staging] fix: onboarding modal is not displayed in web#54329mountiny merged 5 commits intoExpensify:mainfrom
Conversation
|
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
|
Bug: After resizing to wide layout the report screen is empty Screen.Recording.2024-12-18.at.10.53.41.PM.mov(BTW this fixes the bug) |
|
@s77rt The API is live now. I'm completing the checklist. |
This comment has been minimized.
This comment has been minimized.
|
@s77rt The PR is ready. |
|
@nkdengineer Did you check this bug #54329 (comment) |
|
@s77rt I can't reproduce this bug in this PR. Screen.Recording.2024-12-19.at.05.27.43.mov |
|
Interesting. The bug is reproducible but not reliably. Maybe that's the case on |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Screen.Recording.2024-12-19.at.12.28.46.AM.mov |
|
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
|
@mountiny Sorry this new commit doesn't fix the empty bug above. |
mountiny
left a comment
There was a problem hiding this comment.
This is working well for me now
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Actually still having the issue with empty report screen after testing more |
|
Yes this issue here #54329 (comment) only happens on this PR. |
src/libs/Navigation/AppNavigator/useNavigationResetRootOnLayoutChange.ts
Outdated
Show resolved
Hide resolved
|
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
|
|
||
| Log.info(`[ReportScreen] no reportID found in params, setting it to lastAccessedReportID: ${lastAccessedReportID}`); | ||
| lastAccessedReportIDRef.current = lastAccessedReportID; | ||
| navigation.setParams({reportID: lastAccessedReportID}); |
There was a problem hiding this comment.
While the param is updating in the route, this useEffect can be triggered again, and navigation.setParams is called again with the outdated state that can cause the navigation stack to be overridden to the old state.
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Work well on dev now. Screen.Recording.2024-12-19.at.18.58.23.mp4 |
|
Please fix the lint. We can use just a boolean for that ref |
|
@s77rt The lint is related to the default value lint rule. I think we can skip here to prevent regression. |
Updated. |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not an emergency, the eslint failures are related to the default id and we are not going to change it here as this is fixing a deploy blocker |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Hey @nkdengineer @s77rt. Sharing another bug report here which seems like it should be resolved with these changes? |
|
Unrelated. We are looking in that one as well, it's a regression from #51681 |
[CP Staging] fix: onboarding modal is not displayed in web (cherry picked from commit dd93c76) (CP triggered by mountiny)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.77-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.77-6 🚀
|
Explanation of Change
Fixed Issues
$ #54322
PROPOSAL: #54322 (comment)
Tests
Offline tests
None
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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))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-12-19.at.05.20.16.mov
Android: mWeb Chrome
Screen.Recording.2024-12-19.at.04.49.13.mov
iOS: Native
Screen.Recording.2024-12-19.at.05.37.39.mov
iOS: mWeb Safari
Screen.Recording.2024-12-19.at.04.49.47.mov
MacOS: Chrome / Safari
Screen.Recording.2024-12-19.at.04.48.35.mov
Screen.Recording.2024-12-19.at.05.15.44.mov
MacOS: Desktop
Screen.Recording.2024-12-19.at.05.18.19.mov
Screen.Recording.2024-12-19.at.05.18.38.mov