[CP Staging] Prevent infinite spinner in transition page#31522
[CP Staging] Prevent infinite spinner in transition page#31522
Conversation
|
@marcaaron 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] |
|
Tired to test it locally:
Screen.Recording.2023-11-20.at.11.35.45.mp4
Screen.Recording.2023-11-20.at.11.33.46.mp4I've also tested this PR with the scenario I was working on a while ago: (#28984)
I also tried the steps for the similar issue (with the Workspace chats)
For both scenarios I was logged in as the user transitioned from the OD but I had only one chat displayed and after a refresh I was logged out Screen.Recording.2023-11-20.at.11.46.29.mp4Screen.Recording.2023-11-20.at.11.11.53.mp4 |
|
Thanks for the digging @koko57 and workin gon this one now, @allroundexperts is also going to help out now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2023-11-20.at.9.28.32.PM.movMacOS: Desktop |
|
Update Testing well for the initial test case. Screen.Recording.2023-11-20.at.5.40.27.PM.movScreen.Recording.2023-11-20.at.5.45.18.PM.mov |
|
Also, not sure if this should be handled in this PR, but I see the not found page for a small time when redirecting. Screen.Recording.2023-11-20.at.5.53.09.PM.mov |
|
I think it looks alright, but ideally we fix that too in next iterations. |
|
Still digging - a few times while recreating the #28984 scenario I was logged out immediately after logging in as a new user - the proper chat appeared for a few seconds then I was redirected to signIn without refreshing |
|
@mountiny @allroundexperts @roryabraham still haven't found the exact root cause, but just discovered that adding Screen.Recording.2023-11-20.at.15.28.00.mp4but still it's a fix to the fix, as Rory mentioned in the issue the login-logout flow should be simplified |
|
Does the redirect not work on mobile? I was trying to test this on mobile without any luck. Screen.Recording.2023-11-20.at.8.18.49.PM.mov |
|
@allroundexperts oldDot mWeb flow should not redirect I have pushed in the suggestion from Agata and fixed the lint. @allroundexperts could you please do a final review and checlist? |
|
@cristipaval 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] |
[CP Staging] Prevent infinite spinner in transition page (cherry picked from commit eeece25)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 1.4.1-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/luacmartins in version: 1.4.1-13 🚀
|
| }); | ||
| } | ||
| }); | ||
| }, [props]); |
There was a problem hiding this comment.
Not really confirmed, but this might be the root cause of #33413. Let's try to be a little more careful with effect dependencies to avoid many unnecessary API calls 🙏
Details
Fixed Issues
$ #31498
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
@allroundexperts @koko57 has been stresstesting this flow in the comments below
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop