Skip to content

[HOLD for payment 2024-06-20] [$500] Status - Emoji in custom status holder is not centered #35389

Closed

Description

@kbecciv

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: v1.4.33-3
Reproducible in staging?: y
Reproducible in production?: new feature
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: Applause - Internal team
Slack conversation:

Issue found when executing PR #34795

Action Performed:

  1. Go to Settings > Profile > Status.
  2. Select a square emoji and save it.
  3. Return to home page.

Expected Result:

The emoji in custom status holder should be centered.

Actual Result:

The emoji in custom status holder is not centered.

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

image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01081acf60824f9786
  • Upwork Job ID: 1752394398963744768
  • Last Price Increase: 2024-04-30
  • Automatic offers:
    • abdulrahuman5196 | Reviewer | 0
    • Krishna2323 | Contributor | 0
Issue OwnerCurrent Issue Owner: @abekkala

Activity

  1. added
    DeployBlockerCash
    on Jan 30, 2024
  2. github-actions commented on Jan 30, 2024

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  3. melvin-bot commented on Jan 30, 2024

    @melvin-bot

    Triggered auto assignment to @madmax330 (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. kbecciv commented on Jan 30, 2024

    @kbecciv
    Author

    We think that this bug might be related to #vip-vsb
    CC @quinthar

  5. Krishna2323 commented on Jan 30, 2024

    @Krishna2323
    Contributor

    Proposal

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

    Status - Emoji in custom status holder is not centered

    What is the root cause of that problem?

    This is a browser specific issue, more details here.

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

    We need to increase the font-size and use scale property to get the emoji back in original size.

    For chrome:

        scale: .7;
        font-size: 15px;

    For safari:

         font-size: 13px;
         scale: .7;
    

    Result

    Monosnap (24) New Expensify 2024-01-30 18-39-18 Monosnap (24) New Expensify 2024-01-30 18-41-14
  6. situchan commented on Jan 30, 2024

    @situchan
    Contributor
  7. jayeshmangwani commented on Jan 30, 2024

    @jayeshmangwani
    Contributor

    Some emojis are aligned differently on different platforms as right now we are using text to display emojis and it taking space different on platform basis, and I think that was discussed on the original PR.
    does we need to fix text of emoji on the platform basis ?
    cc: @shawnborton @dubielzyk-expensify @mollfpr

  8. shawnborton commented on Jan 30, 2024

    @shawnborton
    Contributor

    How are we currently handling the alignment? Are we just using text-align: center or something like that here?

  9. jayeshmangwani commented on Jan 30, 2024

    @jayeshmangwani
    Contributor

    Currently we are adding the alignItemsCenter & justifyContentCenter to the parent View of the Text component

    App/src/styles/index.ts

    Lines 3930 to 3932 in cfb6f2c

    sidebarStatusAvatar: {
    alignItems: 'center',
    justifyContent: 'center',

  10. shawnborton commented on Jan 30, 2024

    @shawnborton
    Contributor

    Hmm, I have no idea then.

    When we test this with Figma, basically vertically and horizontally centering the text gives us pretty predictable results with centering:
    CleanShot 2024-01-30 at 11 41 54@2x

    The only thing I could think to do would be to give the emoji text a set line height, height, and width. And then make sure this view also does vertical and horizontal centering?

  11. mollfpr commented on Jan 30, 2024

    @mollfpr
    Contributor

    Some emojis are aligned differently on different platforms as right now we are using text to display emojis and it taking space different on platform basis, and I think that was discussed on the original PR.

    I don’t think we can find a quick fix for this. Either way we want to fix this or close it, this shouldn’t be a blocker.

  12. dannymcclain commented on Jan 30, 2024

    @dannymcclain
    Contributor

    The only thing I could think to do would be to give the emoji text a set line height, height, and width. And then make sure this view also does vertical and horizontal centering?

    This is where my mind went too.

  13. 210 remaining items

  14. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Jun 13, 2024
  15. changed the title [-][$500] Status - Emoji in custom status holder is not centered[/-] [+][HOLD for payment 2024-06-20] [$500] Status - Emoji in custom status holder is not centered[/+] on Jun 13, 2024
  16. removed
    Reviewing
    on Jun 13, 2024
  17. melvin-bot commented on Jun 13, 2024

    @melvin-bot

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

  18. melvin-bot commented on Jun 13, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-20. 🎊

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

  19. melvin-bot commented on Jun 13, 2024

    @melvin-bot

    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:

    • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
    • [@abdulrahuman5196] 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:
    • [@abdulrahuman5196] 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:
    • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
    • [@abdulrahuman5196] 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.
    • [@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  20. added
    Daily
    and removed
    Weekly
    on Jun 19, 2024
  21. abekkala commented on Jun 20, 2024

    @abekkala
    Contributor

    PAYMENT SUMMARY FOR JUNE 20

  22. abekkala commented on Jun 20, 2024

    @abekkala
    Contributor

    @Krishna2323 payment sent and contract ended - thank you! 🎉

  23. abdulrahuman5196 commented on Jun 20, 2024

    @abdulrahuman5196
    Contributor

    The PR that introduced the bug has been identified. Link to the PR:
    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:
    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:

    Not a regression.

    Determine if we should create a regression test for this bug.

    Yes.

    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.

    1. Go to Settings > Profile > Status
    2. Select a square emoji and save it
    3. Return to home page
    4. Verify it is centered

    @abekkala

  24. abekkala commented on Jun 21, 2024

    @abekkala
    Contributor

    @abdulrahuman5196 payment sent and contract ended - thank you! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyDesignEngineeringExternal

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions