-
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
[HOLD for payment 2023-02-06] [$1000] The emoji titles are not vertically centered in android #14462
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage ChecklistNote: see this SO for more information.
|
Per discussion in Slack we're not sure if this is |
Seems like in this issue they're aligned, but that's Web. I mean, I think we should prob fix this anyway as it just looks off. |
Job added to Upwork: https://www.upwork.com/jobs/~01c89c9325c04466a1 |
Current assignee @greg-schroeder is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Proposal* It seems we need to wrap the diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.js b/src/components/EmojiPicker/EmojiPickerMenu/index.js
index 924d81a2b..3994f17d4 100755
--- a/src/components/EmojiPicker/EmojiPickerMenu/index.js
+++ b/src/components/EmojiPicker/EmojiPickerMenu/index.js
@@ -438,9 +438,11 @@ class EmojiPickerMenu extends Component {
if (header) {
return (
- <Text style={styles.emojiHeaderStyle}>
- {this.props.translate(`emojiPicker.headers.${code}`)}
- </Text>
+ <View style={styles.emojiHeaderWrapper}>
+ <Text style={styles.emojiHeaderText}>
+ {this.props.translate(`emojiPicker.headers.${code}`)}
+ </Text>
+ </View>
);
}
diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.native.js b/src/components/EmojiPicker/EmojiPickerMenu/index.nati
ve.js
index 754ed20fd..17a9d50e9 100644
--- a/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
+++ b/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
@@ -107,9 +107,11 @@ class EmojiPickerMenu extends Component {
if (item.header) {
return (
- <Text style={styles.emojiHeaderStyle}>
- {this.props.translate(`emojiPicker.headers.${item.code}`)}
- </Text>
+ <View style={styles.emojiHeaderWrapper}>
+ <Text style={styles.emojiHeaderText}>
+ {this.props.translate(`emojiPicker.headers.${item.code}`)}
+ </Text>
+ </View>
);
}
diff --git a/src/styles/styles.js b/src/styles/styles.js
index e30b5f77b..6077e7f47 100644
--- a/src/styles/styles.js
+++ b/src/styles/styles.js
@@ -1459,12 +1459,16 @@ const styles = {
height: 240,
},
- emojiHeaderStyle: {
+ emojiHeaderWrapper: {
backgroundColor: themeColors.componentBG,
width: '100%',
height: 32,
display: 'flex',
+ flexDirection: 'row',
alignItems: 'center',
+ },
+
+ emojiHeaderText: {
fontFamily: fontFamily.EXP_NEUE_BOLD,
fontWeight: fontWeightBold,
color: themeColors.heading, |
Triggered auto assignment to @pecanoro ( |
ProposalThis is a regression caused by this PR (Must have been ignored while testing). In order to fix this we can make the change specifically in the native file by adding a Parent container or we can have the same changes done for both files like shown below (the latter approach seems better for consistency). Here is the code change that will be required diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.js b/src/components/EmojiPicker/EmojiPickerMenu/index.js
index 87e3356b7..2200af945 100755
--- a/src/components/EmojiPicker/EmojiPickerMenu/index.js
+++ b/src/components/EmojiPicker/EmojiPickerMenu/index.js
@@ -446,9 +446,11 @@ class EmojiPickerMenu extends Component {
if (header) {
return (
- <Text style={styles.emojiHeaderStyle}>
- {this.props.translate(`emojiPicker.headers.${code}`)}
- </Text>
+ <View style={styles.emojiHeaderContainer}>
+ <Text style={styles.emojiHeaderStyle}>
+ {this.props.translate(`emojiPicker.headers.${code}`)}
+ </Text>
+ </View>
);
}
diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.native.js b/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
index 754ed20fd..d70eed988 100644
--- a/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
+++ b/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
@@ -107,9 +107,11 @@ class EmojiPickerMenu extends Component {
if (item.header) {
return (
- <Text style={styles.emojiHeaderStyle}>
- {this.props.translate(`emojiPicker.headers.${item.code}`)}
- </Text>
+ <View style={styles.emojiHeaderContainer}>
+ <Text style={styles.emojiHeaderStyle}>
+ {this.props.translate(`emojiPicker.headers.${item.code}`)}
+ </Text>
+ </View>
);
}
diff --git a/src/styles/styles.js b/src/styles/styles.js
index 71fed0201..a8a0bb36e 100644
--- a/src/styles/styles.js
+++ b/src/styles/styles.js
@@ -1459,12 +1459,14 @@ const styles = {
height: 240,
},
- emojiHeaderStyle: {
+ emojiHeaderContainer: {
backgroundColor: themeColors.componentBG,
- width: '100%',
- height: 32,
display: 'flex',
- alignItems: 'center',
+ height: 32,
+ justifyContent: 'center',
+ width: '100%',
+ },
+ emojiHeaderStyle: {
fontFamily: fontFamily.EXP_NEUE_BOLD,
fontWeight: fontWeightBold,
color: themeColors.heading,
Demoemoji-header.mp4 |
Yes, the removal of vertical padding and applied height without wrapper caused this. Thanks for the find. |
Root Case: Occurred after these changes Proposal diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.js b/src/components/EmojiPicker/EmojiPickerMenu/index.js
index 924d81a2bf..e2ad3bed1b 100755
--- a/src/components/EmojiPicker/EmojiPickerMenu/index.js
+++ b/src/components/EmojiPicker/EmojiPickerMenu/index.js
@@ -438,9 +438,11 @@ class EmojiPickerMenu extends Component {
if (header) {
return (
- <Text style={styles.emojiHeaderStyle}>
- {this.props.translate(`emojiPicker.headers.${code}`)}
- </Text>
+ <View style={styles.emojiHeaderContainer}>
+ <Text style={styles.emojiHeaderStyle}>
+ {this.props.translate(`emojiPicker.headers.${code}`)}
+ </Text>
+ </View>
);
}
diff --git a/src/components/EmojiPicker/EmojiPickerMenu/index.native.js b/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
index 754ed20fd7..d70eed9880 100644
--- a/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
+++ b/src/components/EmojiPicker/EmojiPickerMenu/index.native.js
@@ -107,9 +107,11 @@ class EmojiPickerMenu extends Component {
if (item.header) {
return (
- <Text style={styles.emojiHeaderStyle}>
- {this.props.translate(`emojiPicker.headers.${item.code}`)}
- </Text>
+ <View style={styles.emojiHeaderContainer}>
+ <Text style={styles.emojiHeaderStyle}>
+ {this.props.translate(`emojiPicker.headers.${item.code}`)}
+ </Text>
+ </View>
);
}
diff --git a/src/styles/styles.js b/src/styles/styles.js
index e30b5f77b5..7f8906fe3f 100644
--- a/src/styles/styles.js
+++ b/src/styles/styles.js
@@ -1459,12 +1459,14 @@ const styles = {
height: 240,
},
- emojiHeaderStyle: {
+ emojiHeaderContainer: {
backgroundColor: themeColors.componentBG,
width: '100%',
- height: 32,
+ height: CONST.EMOJI_PICKER_HEADER_HEIGHT,
display: 'flex',
- alignItems: 'center',
+ justifyContent: 'center',
+ },
+ emojiHeaderStyle: {
fontFamily: fontFamily.EXP_NEUE_BOLD,
fontWeight: fontWeightBold,
color: themeColors.heading,
|
The first two proposals were posted at the same time and both are similar. I prefer @daraksha-dk's proposal because they researched and added the PR that caused this regression in their proposal. C+ reviewed 🎀👀🎀 cc: @pecanoro for the final decision |
@thesahindia sorry but It was already pointed here earlier. Not sure whether that should be considered as an advantage over order. |
@thesahindia If it is about PR caused regression I have already reported it in slack thread. |
I think we all already have proposal for this sol, but there is not enough time as proposal was posted immediately, I have just added one extra thing height: CONST.EMOJI_PICKER_HEADER_HEIGHT, and first who posted the regression PR. |
Both proposals were added at the same time (8:34) so it's only a matter of preference, since I saw @daraksha-dk also added the PR that caused the regression I preferred them. The final decision will be from @pecanoro.
Your solution was 1 hour late so the decision can't be taken based on that. |
Its seems like race we have to post immediately after External tag added 🙂, Is using height from constant does not matter here ?
yes earlier I have the same solution like others, so I have just tried to find out what further we can do better |
Understood @thesahindia, @Pujan92 right it can happen for these type of issues so what we can improve here is for straightforward solutions - small enhance/improve should be consider if it is valid for betterment. |
Assigning @daraksha-dk to the issue. Another reason to go with @daraksha-dk is that the regression was introduced by @Pujan92 so I think it would be unfair to get paid for fixing your own bug 😅 |
📣 @daraksha-dk You have been assigned to this job by @pecanoro! |
@pecanoro I would disagree over here, I was thought and asked for direct PR in slack as this issue caused due to my PR. IMO As this won't be considered a regression now, I am allowed to propose a solution to this fresh issue. cc: @JmillsExpensify As it is already assigned I am ok with it but just wanted to make my point, Thanks. |
PR is ready @thesahindia |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.61-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-02-06. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
https://expensify.slack.com/archives/C049HHMV9SM/p1675710681694509 |
@greg-schroeder, I have completed the first three tasks. All just have to add a regression test. I think these steps will do the job -
|
@greg-schroeder, it is also ready for the payment. |
Was OOO yesterday, dealing with payment and regression steps today! |
Issue reporter: @daraksha-dk ($250) PR merged within 3 business days, eligible for 50% bonus |
Sent offers to you both - please accept and I'll take care of payment + bonus |
Accepted, thanks! |
Offer accepted, thanks! |
Paid, job closed. |
Filed regression test request per #14462 (comment) |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Emoji titles should be vertically centered
Actual Result:
They aren't vertically centered in Android
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.57-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
Issue reported by: @daraksha-dk
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1674393700959009
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: