Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.54k stars 2.89k forks source link

[$1500] Tooltip text are not centered in reaction emojis #16021

Closed kavimuru closed 1 year ago

kavimuru commented 1 year ago

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:

  1. Open any group chat
  2. React to a message by few of the group members
  3. Hover over reaction emoji to show the tooltip

Expected Result:

Text should be centered

Actual Result:

Text is not centered

Workaround:

unknown

Platforms:

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

Version Number: 1.2.85-1 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:

Untitled

image

Expensify/Expensify Issue URL: Issue reported by: @shawnborton Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678907324675089

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c2cc458e2af1d2c0
  • Upwork Job ID: 1638556601537552384
  • Last Price Increase: 2023-04-06
MelvinBot commented 1 year ago

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

MelvinBot commented 1 year ago

Bug0 Triage Checklist (Main S/O)

MelvinBot commented 1 year ago

@michaelhaxhiu Eep! 4 days overdue now. Issues have feelings too...

MelvinBot commented 1 year ago

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

MelvinBot commented 1 year ago

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

MelvinBot commented 1 year ago

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

MelvinBot commented 1 year ago

Triggered auto assignment to @techievivek (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

michaelhaxhiu commented 1 year ago

Not overdue melvie :)

PrashantMangukiya commented 1 year ago

Proposal

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

Whenever multiple user has reacted among the group member, at that time tooltip text are not centered in reaction emojis.

What is the root cause of that problem?

Within ReactionTooltipContent.js file we are using <Text component. Text align center style is missing on that. This is the root cause of the problem. https://github.com/Expensify/App/blob/366f0d064f50a614ca42aca3586beba6bfaba8c7/src/components/Reactions/ReactionTooltipContent.js#L51-L58

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

Within ReactionTooltipContent.js file we have to add styles.textAlignCenter as shown below, it will solve the problem and long name string shows in centere as show in the result screenshot.

 <Text style={[ 
     styles.mt1, 
     styles.textMicroBold, 
     styles.textReactionSenders, 
     styles.textAlignCenter,    // *** ADD THIS CODE ****
 ]} 
 > 
     {namesString} 
 </Text> 

What alternative solutions did you explore? (Optional)

None

Other Suggestion

Within ReactionTooltipContent.js file I can see styles.textAlignCenter also missing for reacted with Text as shown below. So similar center align problem occur if reacted emoji name will be too long (I know such long emoji name is not there in our emoji list, but better to apply center align style so suggesting this) https://github.com/Expensify/App/blob/366f0d064f50a614ca42aca3586beba6bfaba8c7/src/components/Reactions/ReactionTooltipContent.js#L60-L66

So I will suggest to add styles.textAlignCenter for reacted with text also as shown below:

<Text style={[
    styles.textMicro,
    styles.fontColorReactionLabel,
    styles.textAlignCenter,    // *** ADD THIS CODE ****
]}
>
    {`reacted with :${props.emojiName}:`}
</Text>
Result Reaction-Tooltip-Text-Center-result
0xmiros commented 1 year ago

@PrashantMangukiya thanks for the quick proposal. Can you please remove old one since it seems duplicate? Edit: I see you deleted old comment now. Thanks

dhairyasenjaliya commented 1 year ago

Proposal

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

What is the root cause of that problem?

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

Changes 1

 <Text style={[ 
     styles.mt1, 
     styles.textMicroBold, 
     styles.textReactionSenders, 
     styles.textAlignCenter,    // Line to be added in order to align all names into the center 
 ]} 
 > 
     {namesString} 
 </Text>         

Result of Change 1

Screenshot 2023-03-22 at 9 20 35 PM

Changes 2

Screenshot 2023-03-22 at 9 36 23 PM

Result before change 2 (current state)

Screenshot 2023-03-22 at 9 38 31 PM

What alternative solutions did you explore? (Optional)

0xmiros commented 1 year ago

@PrashantMangukiya's proposal will do the job. The solution is straightforward.

@dhairyasenjaliya thanks for your proposal, but Changes 2 is out of scope for this issue. If you think it should be fixed, please report in slack channel.

πŸŽ€ πŸ‘€ πŸŽ€ C+ reviewed cc: @techievivek

MelvinBot commented 1 year ago

πŸ“£ @PrashantMangukiya You have been assigned to this job by @techievivek! Please apply to this job in Upwork 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 πŸ“–

techievivek commented 1 year ago

@PrashantMangukiya Thanks for the proposal, you should be good to push a PR now.

PrashantMangukiya commented 1 year ago

Thanks @techievivek Applied for the job, Submitting PR within hour asap.

PrashantMangukiya commented 1 year ago

@techievivek PR for this issue deployed to production, but issue title not changed and Reviewing label not removed. Some automation glitch. I think title should be changed with[HOLD for payment 2023-04-05] and Reviewing label needs to remove manually. Thanks.

PrashantMangukiya commented 1 year ago

Ping for Upwork.

techievivek commented 1 year ago

@michaelhaxhiu There seems to be some automation glitch here can you please have a look? Thanks

PrashantMangukiya commented 1 year ago

@michaelhaxhiu Ping for Upwork.

michaelhaxhiu commented 1 year ago

looking πŸ‘€

michaelhaxhiu commented 1 year ago

Summary:

March 27 - job assigned March 28 - PR merged

So 50% bonus for C and C+ 😌

MelvinBot commented 1 year ago

Upwork job price has been updated to $1500

PrashantMangukiya commented 1 year ago

@michaelhaxhiu Offer accepted on upwork.

michaelhaxhiu commented 1 year ago

This automation is ded 😫

michaelhaxhiu commented 1 year ago

Paid @PrashantMangukiya πŸ‘

@0xmiroslav can you accept the invite in upwork and ping me here when it's done?

PrashantMangukiya commented 1 year ago

@michaelhaxhiu Received. Thank you for your time.

michaelhaxhiu commented 1 year ago

I think we may have some checklist work still btw!

michaelhaxhiu commented 1 year ago

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:

techievivek commented 1 year ago

@0xmiroslav Do you think we need to add a regression test to ensure this bug doesn't reappear?

0xmiros commented 1 year ago

I don't think anyone will introduce regression (center aligned -> left aligned) unless intentional or tooltip is completely refactored

0xmiros commented 1 year ago

But it would be good if we can add regression test step something like "whenever new tooltip is added, verify that text is always centered"

techievivek commented 1 year ago

I think we can skip the regression test for this one. Thanks for the input.

techievivek commented 1 year ago

@michaelhaxhiu If everyone is paid, we can close this out.

MelvinBot commented 1 year ago

@PrashantMangukiya @michaelhaxhiu @techievivek @0xmiroslav this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:

Thanks!

MelvinBot commented 1 year ago

Current assignee @0xmiroslav is eligible for the Internal assigner, not assigning anyone new.

0xmiros commented 1 year ago

@0xmiroslav can you accept the invite in upwork and ping me here when it's done?

@michaelhaxhiu I accepted invite already.

michaelhaxhiu commented 1 year ago

all parties paid and checkboxes βœ… 'ed. Closing.