-
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 money request page flickers when open #50772
Fix money request page flickers when open #50772
Conversation
@rayane-djouah 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-15.at.4.18.19.PM.movAndroid: mWeb ChromeScreen.Recording.2024-10-15.at.4.17.16.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-15.at.16.16.16.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-15.at.16.15.25.mp4MacOS: Chrome / SafariScreen.Recording.2024-10-15.at.4.12.57.PM.movMacOS: DesktopScreen.Recording.2024-10-15.at.4.14.02.PM.mov |
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.
LGTM and tests well
@marcaaron all yours! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Heads up, this PR is likely going to be a deploy blocker when deployed. I'm not adding the label yet though, so I don't mess with @marcaaron's current deploy checklist. |
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.0.50-0 🚀
|
I think we can treat that as a separate issue because the root cause has been there before as mentioned on the proposal there too.
In other words, we initialize the money request flow with the wrong type. |
can we confirm if this PR is the root cause of this regression? #51029 |
Yes, I'll open a PR to fix it. |
🙇 want to you comment on #51029 and i'll assign you? |
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.50-8 🚀
|
Tab.setSelectedTab(id, routeNames.at(index) as SelectedTabRequest); | ||
onTabSelected(routeNames.at(index) as IOURequestType); | ||
const newSelectedTab = routeNames.at(index); | ||
if (selectedTab === newSelectedTab) { |
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.
There was a specific case when we opened a page with tabs from within another page with tabs, which caused the blinking of a page for a moment.
To fix it, we've expanded this condition in #53436
Details
When opening a money request page, the page will flickers briefly.
Fixed Issues
$ #50098
PROPOSAL: #50098 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4