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 2023-10-10] [$500] Chat - Status emoji is not fully visible in conversation page #27149

Closed
2 of 6 tasks
lanitochka17 opened this issue Sep 11, 2023 · 41 comments
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

@lanitochka17
Copy link

lanitochka17 commented Sep 11, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

Pre-condition: Set a status emoji and message

  1. Go to https://staging.new.expensify.com/
  2. Tap on a report
  3. Note status emoji in any sent message or send a message and note

Expected Result:

The status emoji must be displayed fully in the conversation page

Actual Result:

The status emoji is only half visible in conversation page

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.67-1

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Bug6196165_o.1.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a2a729000f5e1f1f
  • Upwork Job ID: 1702434843606450176
  • Last Price Increase: 2023-09-21
  • Automatic offers:
    • tienifr | Contributor | 26921541
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

Triggered auto assignment to @strepanier03 (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@jscardona12
Copy link
Contributor

jscardona12 commented Sep 11, 2023

Proposal

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

Chat - Status emoji is not fully visible in conversation page

What is the root cause of that problem?

The root cause is because the emoji status lacks of a min height so when the page get smaller, the meesage date gets relevance and "overlaps" the emoji

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

In

App/src/styles/styles.js

Lines 3918 to 3922 in 1ae51cc

userReportStatusEmoji: {
fontSize: variables.fontSizeNormal,
marginRight: 4,
},
draggableTopBar: {
we should add the style minHeight: variables.fontSizeNormalto match the default size of the emoji in case of this value changes.

Solution Working.

Screen.Recording.2023-09-11.at.10.05.34.AM.mp4

What alternative solutions did you explore? (Optional)

@strepanier03
Copy link
Contributor

I'm not able to reproduce this any longer on 1.368-15, can anyone confirm if they can still repro?

@strepanier03 strepanier03 added the Needs Reproduction Reproducible steps needed label Sep 12, 2023
@jscardona12
Copy link
Contributor

Hi @strepanier03, still reproducible on latest main.
Screenshot 2023-09-12 at 5 02 28 PM

@strepanier03
Copy link
Contributor

All right, I'll move it forward, thank you @jscardona12 for testing again

@strepanier03 strepanier03 added External Added to denote the issue can be worked on by a contributor and removed Needs Reproduction Reproducible steps needed labels Sep 14, 2023
@melvin-bot melvin-bot bot changed the title Chat - Status emoji is not fully visible in conversation page [$500] Chat - Status emoji is not fully visible in conversation page Sep 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

Current assignee @strepanier03 is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

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

@tienifr
Copy link
Contributor

tienifr commented Sep 15, 2023

Proposal

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

Status emoji is clipped in report.

What is the root cause of that problem?

The message date may overlap with this emoji when screen gets smaller. Since both the message date and message sender specifies the flexShrink behavior while status emoji does not thus the page will automatically distribute content base on that.

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

Add flexShrink: 0 to styles.userReportStatusEmoji just like we did with ReportActionItemDate.

App/src/styles/styles.js

Lines 3965 to 3968 in cd9e86e

userReportStatusEmoji: {
fontSize: variables.fontSizeNormal,
marginRight: 4,
},

App/src/styles/styles.js

Lines 1642 to 1647 in c36ac0c

chatItemMessageHeaderTimestamp: {
flexShrink: 0,
color: theme.textSupporting,
fontSize: variables.fontSizeSmall,
paddingTop: 2,
},

Note: The minWidth solution does not address this issue on real mobile browsers and with different emojis (i.e., still clipped), since it is set with a fixed width. We should let the content dynamically adjusts.

Results

Safari

image image

Chrome

image image

@melvin-bot melvin-bot bot added the Overdue label Sep 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

@strepanier03, @parasharrajat Whoops! This issue is 2 days overdue. Let's get this updated quick!

@strepanier03
Copy link
Contributor

@parasharrajat - Friendly bump on the proposals, thank you!

@melvin-bot melvin-bot bot removed the Overdue label Sep 18, 2023
@parasharrajat
Copy link
Member

Will be checking tomorrow.

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Sep 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 21, 2023

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

@strepanier03
Copy link
Contributor

Thank you @mvtglobally.

@melvin-bot melvin-bot bot removed the Overdue label Sep 21, 2023
@tienifr
Copy link
Contributor

tienifr commented Sep 22, 2023

Still reproducible. Notice that the participant's name should be long enough to be overflown:

image

cc @mvtglobally @strepanier03

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 28, 2023
@tienifr
Copy link
Contributor

tienifr commented Sep 28, 2023

PR is up #28392.

@melvin-bot
Copy link

melvin-bot bot commented Sep 29, 2023

🎯 ⚡️ Woah @parasharrajat / @tienifr, 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 🎉

  • when @tienifr got assigned: 2023-09-28 10:03:32 Z
  • when the PR got merged: 2023-09-29 07:08:59 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 3, 2023
@melvin-bot melvin-bot bot changed the title [$500] Chat - Status emoji is not fully visible in conversation page [HOLD for payment 2023-10-10] [$500] Chat - Status emoji is not fully visible in conversation page Oct 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.76-6 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-10-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.

  • External issue reporter - N/A internal report
  • Contributor that fixed the issue - @tienifr - $500 + $250 (speed bonus) = $750 via Upwork
  • Contributor+ that helped on the issue and/or PR - @parasharrajat - $500 + $250 (speed bonus) = $750 via MR

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:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

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:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 10, 2023
@strepanier03
Copy link
Contributor

Sorry for the hold-up here everyone, I've been pretty slammed but I'm working on this now. Thanks for your patience 🙌

@melvin-bot melvin-bot bot removed the Overdue label Oct 12, 2023
@strepanier03
Copy link
Contributor

@tienifr - I've finished paying via UPwork and closed the contract. Thank you again!


@parasharrajat - Feel free to update me with the checklist stuff when you can and then submit a manual request for payment. I updated this payment comment with the amount. Thank you as well!

@parasharrajat
Copy link
Member

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:

  • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: Display status in chats #24526
  • [@parasharrajat] 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: Display status in chats #24526 (comment)
  • [@parasharrajat] 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 required. This was missed from testing. Regression steps are enough to capture this.
  • [@parasharrajat] Determine if we should create a regression test for this bug. Yes
  • [@parasharrajat] 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.

Regression Test Steps

  1. Log in with any account
  2. Go to Settings >> Profile >> Display name, change the display name to be very long
  3. Go to Setting >> Profile >> Status, set an emoji status 💨
  4. Go to any chat
  5. Send a message
  6. Verify that the status emoji does not overlap or cropped.

Do you agree 👍 or 👎 ?

@melvin-bot melvin-bot bot added the Overdue label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

@strepanier03, @parasharrajat, @stitesExpensify, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@strepanier03
Copy link
Contributor

QA is done and checklist updated. We're all set here.


@parasharrajat - I'm assigning Jason to this, if you haven't already please submit for manual payment based on this payment summary.

@parasharrajat
Copy link
Member

Payment requested as per #27149 (comment)

@JmillsExpensify
Copy link

$750 payment approved for @parasharrajat based on this comment.

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
None yet
Development

No branches or pull requests

8 participants