-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 area around bottom tab avatar isn't clickable #38380
Fix area around bottom tab avatar isn't clickable #38380
Conversation
@paultsimura 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] |
@mountiny while testing this PR, I've noticed the following bug (the FAB menu flashes when clicking the area around it, as opposed to when clicking on the FAB directly): Screen.Recording.2024-03-15.at.11.37.44-compressed.mp4Since these 2 components are somewhat related (and given there is no issue reported) and @bernhardoj would like to come up with a fix for it as well – could we consider bumping to the regular $500 and fixing both issues in one PR? |
); | ||
} | ||
|
||
ProfileAvatarWithIndicator.displayName = 'PressableAvatarWithIndicator'; |
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.
ProfileAvatarWithIndicator.displayName = 'PressableAvatarWithIndicator'; | |
ProfileAvatarWithIndicator.displayName = 'ProfileAvatarWithIndicator'; |
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.
Updated
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid12.04.mp4Android: mWeb Chromechrome12.05.mp4iOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-03-15.at.11.55.5812.05.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-03-15.at.11.55.3812.05.mp4MacOS: Chrome / SafariScreen.Recording.2024-03-18.at.09.53.1409.53.mp4MacOS: DesktopScreen.Recording.2024-03-15.at.11.34.1912.05.mp4 |
@bernhardoj yep if you can fix that here too happy with $500 |
Found the issue. When we press the area around FAB, App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js Lines 142 to 147 in e9c112a
That is because, in PopoverProvider, we have a click listener that will close a popover, except if the popover App/src/components/PopoverProvider/index.tsx Lines 37 to 44 in e9c112a
FAB currently has 2 pressable and the App/src/components/FloatingActionButton.tsx Lines 106 to 120 in e9c112a
So, if we press the outer pressable, the PopoverProvider will close the FAB menu then the FAB click ( We can fix it by only having the outer pressable and replacing the inner one with an animated view, but the problem that comes after that is the tooltip won't hide when the popover is visible. Screen.Recording.2024-03-15.at.19.55.44.movThat's because PopoverAnchorTooltip will only hide the tooltip if the children of the tooltip are the popover anchor ref element, which in our case is not because we wrap the tooltip to the inner animated view. App/src/components/Tooltip/PopoverAnchorTooltip.tsx Lines 11 to 16 in e9c112a
What if we move the tooltip to the outer pressable, it will look like this: Screen.Recording.2024-03-15.at.20.07.36.mov |
@Expensify/design WDYT? #38380 (comment) |
Personally I would be okay with that, I think it's fine. Curious if @Expensify/design agrees! |
Yeah, I'm okay with that as well 👍 |
Awesome, seems like we have an agreement. @bernhardoj would you implement the fix, please? |
@paultsimura Great. Updated the code and test. |
@mountiny can we somehow skip this check? It's not technically a new file - just a rename to match the file nature better. |
no problem, continue with the review |
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.
I've also retested the second issue and attached the recording – ✔️
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.
thank you!
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
The JS file was renamed |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.54-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.54-4 🚀
|
Details
The are around the bottom tab avatar isn't clickable.
Fixed Issues
$ #38369
PROPOSAL: #38369 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
A.
B.
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
Screen.Recording.2024-03-15.at.17.56.28.mov
Android: mWeb Chrome
Screen.Recording.2024-03-15.at.17.55.19.mov
iOS: Native
Screen.Recording.2024-03-15.at.17.54.53.mov
iOS: mWeb Safari
Screen.Recording.2024-03-15.at.17.54.16.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-15.at.17.49.59.mov
Screen.Recording.2024-03-18.at.15.23.30.mov
MacOS: Desktop
Screen.Recording.2024-03-15.at.17.52.27.mov
Screen.Recording.2024-03-18.at.15.23.50.mov