-
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
Emoji Category Shortcuts Bar Tooltip #15513
Emoji Category Shortcuts Bar Tooltip #15513
Conversation
@stitesExpensify @aimane-chnaif One of you needs to 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] |
@aimane-chnaif @stitesExpensify PR is ready for review. I've had some issues with iOS pod setup. I treied working it out other branch and it worked fine, but here I had to reinstall the pods. Can you confirm if you face the same issue? |
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.
bug1.mov
When hover top and bottom part of icon, tooltip not showing though highlighted
@aimane-chnaif That's what I wanted to highlight in this comment. Because cc - @stitesExpensify |
@akshayasalvi I think that needs to be fixed for sure |
@akshayasalvi update? |
I will be online in a few hours and I will update PR later today. |
I requested a review again from @aimane-chnaif and it accidentally removed @stitesExpensify. PR is ready with the updates and comments addressed. |
@akshayasalvi press background should cover entire icon bug2.mov |
@akshayasalvi you should figure out why tooltip points to center if not using <Pressable
onPress={this.props.onPress}
onHoverIn={() => this.setState({isHighlighted: true})}
onHoverOut={() => this.setState({isHighlighted: false})}
style={({pressed}) => ([
StyleUtils.getButtonBackgroundColorStyle(getButtonState(false, pressed)),
styles.categoryShortcutButton,
this.state.isHighlighted && styles.emojiItemHighlighted,
])}
>
- <View style={styles.alignSelfCenter}>
+ <Tooltip
+ containerStyles={[styles.flex1, styles.alignSelfStretch, styles.alignItemsCenter, styles.justifyContentCenter]}
+ text={this.props.translate(`emojiPicker.headers.${this.props.code}`)}
+ >
<Icon
fill={themeColors.icon}
src={this.props.icon}
height={variables.iconSizeNormal}
width={variables.iconSizeNormal}
/>
- </View>
+ </Tooltip>
</Pressable> categoryShortcutButton: {
flex: 1,
borderRadius: 8,
- paddingTop: 2,
- paddingBottom: 2,
height: CONST.EMOJI_PICKER_ITEM_HEIGHT,
+ alignItems: 'center',
justifyContent: 'center',
}, (this code diff is against |
@aimane-chnaif thanks for the diff, I've updated as per your requirement. But I checked the other tooltip if you closely observe there's always some spacing between the element and their tooltip, that's what I was trying to achieve. |
@akshayasalvi your screenshot didn't apply last style change. can you update screenshot after this apply? categoryShortcutButton: {
flex: 1,
borderRadius: 8,
- paddingTop: 2,
- paddingBottom: 2,
height: CONST.EMOJI_PICKER_ITEM_HEIGHT,
+ alignItems: 'center',
justifyContent: 'center',
}, |
@aimane-chnaif The video that I uploaded again in the GH PR body consists of the style change as well. I uploaded v1 and v2 for Web and Desktop. Attaching the image also here for your reference. |
Reviewer Checklist
Screenshots/VideosMobile Web - Chromemchrome.movAndroidandroid.mov |
@aimane-chnaif Based on @shawnborton's comment I've updated the spacing to 4px. |
Thank you! |
@stitesExpensify @aimane-chnaif bump on the change and tagging because @stitesExpensify was removed from the reviewer list. |
@stitesExpensify were you able to check this PR? Any action items for me? |
Hi, I was OOO sick for most of last week. Reviewing now |
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.
Code LGTM! Testing now
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Thanks for the approval @stitesExpensify. Hope you're feeling better now. |
🚀 Deployed to staging by https://github.com/stitesExpensify in version: 1.2.80-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.2.80-2 🚀
|
Details
Fixed Issues
$ #15108
PROPOSAL: #15108 (comment)
Tests
For Desktop and Web
Frequently Used
category is not shown and still the steps work fine.For mWeb and Mobile Apps
Frequently Used
category is not shown and still the steps work fine.Offline tests
NA
QA Steps
For Desktop and Web
Frequently Used
category is not shown and still the steps work fine.For mWeb and Mobile Apps
Frequently Used
category is not shown and still the steps work fine.PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
v1
https://user-images.githubusercontent.com/57435789/221661937-ba95e97f-1c3b-48a5-a057-21796e0356f0.mp4
v2
screen-recording-2023-03-02-at-113250-am_tGYVn3nY.mp4
v3
v4 with 4px padding
Mobile Web - Chrome
Mobile Web - Safari
Desktop
v1
https://user-images.githubusercontent.com/57435789/221662042-4ef1cfeb-6943-4df7-8764-2acfa55183b8.mp4
v2
screen-recording-2023-03-02-at-113955-am_l6VRduEh.mp4
v3
v4 with 4px padding
iOS
Android