-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix type selector dropdown flicker #49849
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 type selector dropdown flicker #49849
Conversation
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 caused a significant delay in changing the type
|
I am not sure why unfinished animation causes flash of bottom sheet, but fix I implemented is the same code pattern we've already used in app e.g three-dot menu in saved search. Screen.Recording.2024-09-30.at.09.35.45.movdelay(on main): Screen.Recording.2024-09-30.at.09.36.53.mov |
@289Adam289 In this case we can't go with that solution as it causes a worst user experience. I'm guessing the bug occurs because when we open the type selector we open it via the on modal hide callback and that callback still executes when we hide other modals e.g. the attachment modal in this case. Can you please investigate on the root cause before going with other solutions? |
I will investigate further |
SolutionAfter some more investigation I am still not completely sure what is the root cause of the problem and I wasn't able to find solution that doesn't cause delay. My colleague from SWM @BartoszGrajdek is currently working on issues connected to Work aroundWe can also go with solution I've already implemented and try to reduce the delay by removing or shortening closing animation. Getting results like this: Screen.Recording.2024-10-01.at.15.38.18.mov |
In that case I think we should hold on #49354 |
@289Adam289 Can you please close this PR? |
Let's close it for now. |
Details
Fixed Issues
$#49803
PROPOSAL:
Tests
Open app
Navigate to
Search
Change type to
chat
Open and close message with attachment
Verify that type bottom sheet did not flicker
Verify that no errors appear in the JS console
Offline tests
QA Steps
Open app
Navigate to
Search
Change type to
chat
Open and close message with attachment
Verify that type bottom sheet did not flicker
Verify that no errors appear in the JS console
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: mWeb Chrome
iOS: Native
Screen.Recording.2024-09-27.at.16.24.08.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-09-27.at.16.26.46.mp4
MacOS: Desktop