Stabilise rendering of Migrated User Modal#77874
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@FitseTLT Can you review? Thanks! |
|
Asking for a C+ who can review this now |
|
Checking this. |
|
The modal opens properly when I test on staging but not on dev. So I am just checking that flow. |
|
Tested the change, seems to be working fine. web-new-migration-modal.mov |
|
@mananjadhav Thanks! are the |
|
Yes looks better. Thank you. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chromemweb-chrome-migration-modal.moviOS: HybridAppiOS: mWeb Safarimweb-safari-migration-modal.movMacOS: Chrome / Safariweb-new-migration-modal.mov |
mananjadhav
left a comment
There was a problem hiding this comment.
When I try the transition deep link on the app it just redirects me to the login page. The same happens with me on main as well as staging too. Tested on other platforms, leaving out native app.
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #77664 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@mountiny Are you taking up the review here? |
mountiny
left a comment
There was a problem hiding this comment.
Thank you! discussing here https://expensify.slack.com/archives/C05LX9D6E07/p1766069671276639?thread_ts=1765985042.432469&cid=C05LX9D6E07 since its affencting customers I am moving it ahead fast and Charly is doing a sprint now
|
✋ 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/mountiny in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.84-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.84-8 🚀
|
Explanation of Change
When migrated user transits to NewDot application should show him a
MigratedUserWelcomeModalwhich is triggered inuserOnboardingFlow. The hook's internal useEffect usesInteractionsMenagerand due to the fact that hooks dependency array is changing a lot after application initialization there can be a race condition and logic of rendering the modal can be triggered multiple times. This PR aims to resolve this issue.Fixed Issues
$ #77664
PROPOSAL:
Tests
For dev testing I had to overwrite some Onyx values to be able to test the logic
Try new Expensifyand wait for first redirect/transitionquickly copy its valuedevenv and paste/transition?[IMPORTANT_REDIRECT_PARAMS]to the urlOffline tests
N/D - app needs to be online to perform this case
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Prequisities: testing user has to be new and have
migration tag.sign out and sign back in. On sign-in you should be re-directed back to NewDot with the migration modal open.
Check if modal is rendered
Click on
Let's goand verify that modal disappears immediately after clickPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Details