-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] fix: onboarding modal is not displayed in web #54329
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
@@ -160,6 +165,7 @@ function ReportScreen({route, currentReportID = '', navigation}: ReportScreenPro | |||
} | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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