Closed kavimuru closed 1 year ago
Triggered auto assignment to @michaelhaxhiu (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are β
)@michaelhaxhiu Eep! 4 days overdue now. Issues have feelings too...
Job added to Upwork: https://www.upwork.com/jobs/~01c2cc458e2af1d2c0
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav (External
)
Triggered auto assignment to @techievivek (External
), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Not overdue melvie :)
Whenever multiple user has reacted among the group member, at that time tooltip text are not centered in reaction emojis.
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
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>
None
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>
@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
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
ReactionTooltipContent.js
for namestring
that makes the component by default left aligned and also we have not managed to keep the same lineHeight for text reacted with
same lineHeight as emoji
display at the top (IMO the lineheight of reacted with
reacted with
What changes do you think we should make in order to solve the problem?
Changes 1
styles.textAlignCenter
<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
Changes 2
We need one more change to add lineHeight to reacted with
Currently the lineheight for reacted with
iconSizeXLarge lineHeight used by top emoji display same we can use for reacted with
Of course, this changes we need to confirm these changes from the design team cc @shawnborton
<Text style={[
styles.textMicro,
styles.fontColorReactionLabel,
+ lineHeight: variables.iconSizeXLarge, <- This lineHeight needs to be added from styles.js this is just a reference
]}
>
{`reacted with :${props.emojiName}:`}
</Text>
Result After changes 1 & 2
Result before change 2 (current state)
What alternative solutions did you explore? (Optional)
π£ @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 π
@PrashantMangukiya Thanks for the proposal, you should be good to push a PR now.
Thanks @techievivek Applied for the job, Submitting PR within hour asap.
@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.
Ping for Upwork.
@michaelhaxhiu There seems to be some automation glitch here can you please have a look? Thanks
@michaelhaxhiu Ping for Upwork.
looking π
Upwork job price has been updated to $1500
@michaelhaxhiu Offer accepted on upwork.
This automation is ded π«
Paid @PrashantMangukiya π
@0xmiroslav can you accept the invite in upwork and ping me here when it's done?
@michaelhaxhiu Received. Thank you for your time.
I think we may have some checklist work still btw!
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:
@0xmiroslav Do you think we need to add a regression test to ensure this bug doesn't reappear?
I don't think anyone will introduce regression (center aligned -> left aligned) unless intentional or tooltip is completely refactored
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"
I think we can skip the regression test for this one. Thanks for the input.
@michaelhaxhiu If everyone is paid, we can close this out.
@PrashantMangukiya @michaelhaxhiu @techievivek @0xmiroslav this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks!
Current assignee @0xmiroslav is eligible for the Internal assigner, not assigning anyone new.
@0xmiroslav can you accept the invite in upwork and ping me here when it's done?
@michaelhaxhiu I accepted invite already.
all parties paid and checkboxes β 'ed. Closing.
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:
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:
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