Skip to content
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 2024-06-03] [$250] LHN: Emoji is misaligned with message #41367

Closed
1 of 6 tasks
m-natarajan opened this issue Apr 30, 2024 · 39 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Apr 30, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.68-3
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
Expensify/Expensify Issue URL:
Issue reported by: @tgolen
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1714492986409729

Action Performed:

  1. Send a message with emoji from A to B
  2. Login as B and observe the LHN

Expected Result:

There is no misalignment with emoji

Actual Result:

Emoji is misaliged

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d8085509ba977455
  • Upwork Job ID: 1785441141151866880
  • Last Price Increase: 2024-05-07
  • Automatic offers:
    • samilabud | Contributor | 0
    • ikevin127 | Contributor | 0
Issue OwnerCurrent Issue Owner: @isabelastisser
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@tgolen tgolen self-assigned this Apr 30, 2024
@tgolen tgolen added the External Added to denote the issue can be worked on by a contributor label Apr 30, 2024
@melvin-bot melvin-bot bot changed the title LHN: Emoji is misaligned with message [$250] LHN: Emoji is misaligned with message Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01d8085509ba977455

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

@samilabud
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

LHN: Emoji is misaligned with message in focus mode

What is the root cause of that problem?

When we are in focus mode we are showing the content of each conversation in the same line, this makes the content try to fit but we are also adding an unnecessary line height and min height which cause the misalignement.

What changes do you think we should make in order to solve the problem?

We should remove the line height and min height when user is in focus mode from OptionRowLHN component, like:

const alternateTextStyle = isInFocusMode
        ? [textStyle, styles.textLabelSupporting, styles.optionAlternateTextCompact, styles.ml2, style]
        : [textStyle, styles.optionAlternateText, styles.textLabelSupporting, style];

Testing the change in IOS:

IOS.test.misaligned.mp4

Testing in other platforms:
Android Chrome:
Android Chrome
Android:
Android
IOS Safari:
IOS Safari
Mac Chrome:
MAC Chrome test

@kaushiktd
Copy link
Contributor

Please re-state the problem that we are trying to solve in this issue.

LHN: Emoji is misaligned with message in focus mode

What is the root cause of that problem?

Currently, we've observed that emojis within the LHN can appear misaligned when users are in focus mode. This misalignment not only affects the visual consistency of the interface but also may lead to usability issues, particularly for users who rely on visual cues for navigation.

What changes do you think we should make in order to solve the problem?

adjusting the lineHeight property from its current value to a slightly larger value. By increasing the lineHeight, we ensure that there is adequate vertical spacing between lines of text, including emojis, thereby improving their alignment within the LHN.

lineHeight: variables.lineHeightXLarge,

we can use this

lineHeight: variables.lineHeightXXXLarge,

ScreenShot:-
image

@isabelastisser
Copy link
Contributor

@mananjadhav, please review the proposals above. Thanks!

@mananjadhav
Copy link
Collaborator

I am not sure if we should update the lineHeight, it can have impact on other areas as well. @m-natarajan Did this occur recently? or the bug exists since earlier?

I am also going to tag @Expensify/design to see if they have any inputs on the lineHeight.

@shawnborton
Copy link
Contributor

Hmm I would think the emoji should just have the same line height as the text that is next to it, no?

@dubielzyk-expensify
Copy link
Contributor

Yeah I also assumed that would fix the issue

@samilabud
Copy link
Contributor

Hi @shawnborton and @dubielzyk-expensify,

It would be good to know what the target is, because it looks like the one reported here is for this misalignment:

image

After my proposal I put all the content text in the same line height:

image

Even in gmail emoticons can cause the effect of needing more line height depending on which one it is, see this:
image

Also even here in github (I think this should be the correct alignment):
Hello 🏰

This is not noticeable in emoticons such as 😄:
Hello 😄
Hello 🏰😄

@kaushiktd
Copy link
Contributor

@shawnborton raises an important consideration regarding the alignment of emojis with adjacent text. While initially, both text height and lineHeight were set to the same values, we encountered issues with misalignment. Despite having the same line height as the adjacent text, emojis may still appear misaligned due to variations in rendering, inherent size differences, and platform-specific rendering behaviors.

@shawnborton
Copy link
Contributor

I agree that this one is the correct alignment I would expect - and it looks like the emoji is not getting any special kind of line height or anything like that, it just follows whatever is being applied on the p element:
CleanShot 2024-05-02 at 10 45 06@2x

Copy link

melvin-bot bot commented May 7, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label May 7, 2024
Copy link

melvin-bot bot commented May 7, 2024

@tgolen, @mananjadhav, @isabelastisser Eep! 4 days overdue now. Issues have feelings too...

@isabelastisser
Copy link
Contributor

@mananjadhav, can you please provide an update? Thanks!

@isabelastisser
Copy link
Contributor

Not overdue.

@isabelastisser
Copy link
Contributor

Waiting for @mananjadhav to update.

@mananjadhav
Copy link
Collaborator

mananjadhav commented May 7, 2024

Still waiting on proposals.

I don't see any proposals that solve this in an accurate way. I agree that Emojis being rendered different on platforms, apps and devices. But if the expectation is that the emoji should pick the line height of the given<p> tag, we are looking at proposals to solve this instead of updating the line height for generic style.

Copy link

melvin-bot bot commented May 13, 2024

Current assignee @tgolen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 14, 2024
Copy link

melvin-bot bot commented May 14, 2024

📣 @samilabud 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 14, 2024
@ikevin127
Copy link
Contributor

ikevin127 commented May 14, 2024

@tgolen @isabelastisser Can any of you help with assignment for me as reviewer ? I need this for both the issue and PR #42162 (reviewer was auto-assigned already).

@samilabud Is PR ready for review ?

Copy link

melvin-bot bot commented May 14, 2024

📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@samilabud
Copy link
Contributor

@samilabud Is PR ready for review ?

Yes it is

@ikevin127
Copy link
Contributor

@tgolen Can you please also remove the auto-assigned reviewer from the PR #42162 and add me so I can start working on the checklist ?

@tgolen
Copy link
Contributor

tgolen commented May 15, 2024

Done!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 27, 2024
@melvin-bot melvin-bot bot changed the title [$250] LHN: Emoji is misaligned with message [HOLD for payment 2024-06-03] [$250] LHN: Emoji is misaligned with message May 27, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 27, 2024
Copy link

melvin-bot bot commented May 27, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented May 27, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.75-1 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 2024-06-03. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented May 27, 2024

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:

  • [@ikevin127] The PR that introduced the bug has been identified. Link to the PR:
  • [@ikevin127] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@ikevin127] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@ikevin127] Determine if we should create a regression test for this bug.
  • [@ikevin127] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@ikevin127
Copy link
Contributor

No need to start a discussion or update the PR review checklist since this was a rare platform specific styling edge case.

  • [@ikevin127] Determine if we should create a regression test for this bug.
  • [@ikevin127] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

No need for a regression test since this was a rare platform specific styling edge case.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 2, 2024
@isabelastisser
Copy link
Contributor

The payments were processed in Upwork. All set!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

9 participants