-
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-08-10] [$1000] Long emoji names are not being truncated and icons displayed at the start #23519
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Long emoji suggestions doesn't show ellipsis, instead they are cut off What is the root cause of that problem?Emoji suggestion style has no text ellipsis feature Lines 199 to 201 in b7d17e0
What changes do you think we should make in order to solve the problem?We have 2 options:
Ellipsis
Add two props below App/src/components/EmojiSuggestions.js Line 72 in 2b67fa3
Multiline
This works fine. What alternative solutions did you explore? (Optional)We can apply similar styles with mention suggestions App/src/components/EmojiSuggestions.js Line 70 in b7d17e0
Set Lines 194 to 198 in b7d17e0
Add the following styles to the
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Long emoji names are not being truncated and icons displayed at the start What is the root cause of that problem?We didn't define a width for our emoji text which cause the issue. Lines 204 to 206 in 6e6d2bd
What changes do you think we should make in order to solve the problem?We should add emojiSuggestionsText: {
// we can also add some padding right here to make it symmetrical with the left.
fontSize: variables.fontSizeMedium,
flex: 1,
paddingRight: 10,
...wordBreak.breakWord,
}, What alternative solutions did you explore? (Optional)N/A Result:Screen.Recording.2023-07-26.at.06.52.36.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Long emoji names are not being truncated and icons displayed at the start What is the root cause of that problem?App/src/components/EmojiSuggestions.js Line 72 in b7d17e0
What changes do you think we should make in order to solve the problem?We can do same like
<View style={[styles.autoCompleteSuggestionContainer, styles.ph2]}>
<Text style={styles.emojiSuggestionsEmoji}>{EmojiUtils.getEmojiCodeWithSkinColor(item, props.preferredSkinToneIndex)}</Text>
<Text style={[styles.emojiSuggestionsText, styles.flex1]}>
emojiSuggestionsEmoji: {
fontSize: variables.fontSizeMedium,
width: variables.fontSizeMedium,
textAlign: 'center',
},
emojiSuggestionsText: {
fontSize: variables.fontSizeMedium,
...spacing.ml2,
...wordBreak.breakAll
}, What alternative solutions did you explore? (Optional)
<Text style={[styles.emojiSuggestionsText, styles.flex1, styles.pr4]}>
emojiSuggestionsText: {
fontSize: variables.fontSizeMedium,
...wordBreak.breakAll
}, |
Reproduced. Though, I don't think we'd truncate the emojis that don't fit on one line. We should break them onto a second line (like we do for these same emojis in the android native app). |
Job added to Upwork: https://www.upwork.com/jobs/~01245a38493bcc690f |
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
@joekaufmanexpensify |
@jfquevedol2198 Please do not post code diff in your proposals. Regarding your mentioned solution. I don't think it will handle the case where text is spread over 3 or more lines. |
@hungvu193 and @s-alves10 You might want to update your proposals as well based on this feedback. |
Still looking for better proposals. |
@allroundexperts Updated my proposal for multiple lines case #23519 (comment) |
@allroundexperts Updated my proposal. |
Proposal |
@hungvu193's updated proposal looks good to me as they were the first to propose a solution that works for multiline. The subsequent updated proposals were essentially doing the same thing. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
multiline was added later. Why don't we consider that? |
@allroundexperts And, I also spent time to find better solution because hungvu193's solution didn't work for Mobile before multiline. |
@allroundexperts
|
I already suggested adding flex, or width: 100% in my first proposal. Please check my editing history. I can't say I spent more time than anyone else here, but I did spend my time to make sure my solution worked on all platform. Not sure why we're arguing here. |
🎯 ⚡️ Woah @allroundexperts / @hungvu193, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.49-3 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-08-10. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
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:
|
@allroundexperts mind completing the BZ checklist here when you have a sec? TY! |
Not overdue. |
Checklist
Regression Steps
Verify that the emoji name appears in two lines. Do we 👍 or 👎 |
Thanks! I agree no test needed here. This is niche. BZ checklist complete, so all set to issue payment! |
This qualifies for urgency, so we need to issue the following payments:
|
@ayazhussain79 offer sent for $250! |
@hungvu193 $1,500 sent and contract ended! |
@allroundexperts could you please request $1,500 via NewDot and confirm here once requested? |
@joekaufmanexpensify offer accepted, Thank you |
Requested @joekaufmanexpensify! |
@ayazhussain79 $250 sent and contract ended! |
Upwork job closed. |
Closing as this is all set! The only thing left is for our internal admin to pay @allroundexperts (request has been submitted). Please LMK if your request is not paid within the next 7 days, and I will investigate. Noting for the admin who pays that payment summary message is here! |
Reviewed the details for @allroundexperts. Approved for payment in NewDot based on BZ summary above. |
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:
Long emoji names should be broken into multiple lines (so the entire name is visible), and should appear in the same position as other emojis).
Actual Result:
Long emojis names are not being truncated that cause the icons not displayed at the their position
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.44-0
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: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690043682464129
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: