-
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
fix: WS switcher blank screen, keep workspace history #54030
fix: WS switcher blank screen, keep workspace history #54030
Conversation
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
While working on this i've found another issue on iOS. It seems that |
This is being fixed in #53754. To prevent the fade animation on iOS already, i included a change to a RNS patch from the other PR |
Reviewer Checklist
|
Screenshots/VideosAndroid: NativeCleanShot.2024-12-17.at.10.03.32.mp4Android: mWeb ChromeCleanShot.2024-12-17.at.10.07.06.mp4iOS: NativeCleanShot.2024-12-17.at.09.30.08.mp4CleanShot.2024-12-17.at.09.41.56.mp4iOS: mWeb SafariCleanShot.2024-12-17.at.09.46.42.mp4CleanShot.2024-12-17.at.09.47.31.mp4CleanShot.2024-12-17.at.09.52.58.mp4MacOS: Chrome / SafariCleanShot.2024-12-17.at.10.08.48.mp4MacOS: DesktopCleanShot.2024-12-17.at.10.11.56.mp4 |
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.
Small request
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.
@chrispader thanks! I think we can skip fixing the default ids on this PR
@mjasikowski feel free to merge |
@chrispader please fix the remaining conflicts and I will merge ASAP |
@mjasikowski merge conflicts resolved!
i fixed those issues too |
Thanks @chrispader, approving and merging |
✋ 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/mjasikowski in version: 9.0.78-0 🚀
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.0.78-0 🚀
|
2 similar comments
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.0.78-0 🚀
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.0.78-0 🚀
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.0.78-0 🚀
|
This PR is failing for mWeb/Safari because of issue #54527 |
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.0.78-0 🚀
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.0.78-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.78-6 🚀
|
@mountiny
Explanation of Change
Reverts
8e78f30
(#49937) applied in the Native Stack PR to fix the home screen from re-mounting.My assumption was that we don't need to keep the navigation state of the WS switcher routes. We've recently discussed that we still want to keep the navigation state in #53533 (comment).
This PR fixes the issue with the blank HomeScreen by running dispatching the navigation action in
InteractionManager.runAfterInteractions
. This delays the navigation change until after the WS switcher has un-mounted, therefore we will see a fade animation to the new HomeScreen.Fixed Issues
$ #53533
$ #53359
PROPOSAL: #53533 (comment)
Tests
Blank HomeScreen fix
App closing when going back after switching workspace
Search page briefly goes blank when switching workspace
Offline tests
QA Steps
Same as in Tests.
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
Blank HomeScreen fix
Screen.Recording.2024-12-15.at.21.42.00.mov
Search page briefly goes blank when switching workspace
Screen.Recording.2024-12-15.at.21.42.19.mov
Android: mWeb Chrome
Not affected, same as web.
iOS: Native
Blank HomeScreen fix
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-12-15.at.21.31.09.mp4
Search page briefly goes blank when switching workspace
Screen.Recording.2024-12-15.at.21.48.38.mov
iOS: mWeb Safari
Not affected, same as web.
MacOS: Chrome / Safari
Blank HomeScreen fix
Screen.Recording.2024-12-15.at.21.46.15.mov
Screen.Recording.2024-12-15.at.21.46.53.mov
MacOS: Desktop
Not affected, same as web.