-
Notifications
You must be signed in to change notification settings - Fork 3k
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-04-26] [HOLD for payment 2023-04-24] [$1000] The tooltip of the group profile is displaying a blank space on the right side, making it look weird. #16800
Comments
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Reproduced |
Job added to Upwork: https://www.upwork.com/jobs/~01e05c0d676c4933a0 |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @puneetlath ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.There are a few space on the avatar group tooltip wrapper. What is the root cause of that problem?Tooltip has a maximum width of 375.
Because the text is very long, the text breaks to the next line and left some space on the right. This issue happens depends on how long the tooltip text. What changes do you think we should make in order to solve the problem?We should change how the text would break. We can simply apply word-break to the tooltip text style here App/src/styles/getTooltipStyles.js Lines 191 to 201 in 4ee21e9
|
The screenshot in issue description is deprecated. This should be the correct one: |
I think that would be a different case as the reaction tooltip render it's own component. EDIT: I see now, we can apply the same fix to both tooltip text and reaction text if we want. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tooltip of the group profile is displaying a blank space on the right side, making it look weird What is the root cause of that problem?In the TooltipRenderedOnPageBody.js, firstly we set tooltipContentWidth to undefined App/src/components/Tooltip/TooltipRenderedOnPageBody.js Lines 88 to 96 in ebc03db
Next, if the offSetWidth > maxWidth (in this case, max width is 375px), we will update the width of tooltips is maxwidth App/src/styles/getTooltipStyles.js Lines 103 to 105 in ebc03db
But then we don't update the tooltipContentWidth so that the tooltipContentWidth still be the old value What changes do you think we should make in order to solve the problem?In TooltipRenderedOnPageBody.js, We need to re-calculate the tooltipContentWidth one more time if it is greater than maxWidth What alternative solutions did you explore? (Optional)NA Result |
@bernhardoj I think we still want an email still in the same line so it is easy to read it. @dukenv0307 Could you share the result using shorten email? I wondering if it's still showing only 3 line emails. |
@0xmiroslav What we have here is a tooltip in the avatar group, and what you attach is in the reaction tooltip. I wonder if we can apply the same solution for the reaction tooltip. |
If they have the same root cause, solution should also be same and can be applied to reaction tooltip as well. |
Sounds good! |
@mollfpr This is the result of using shorten email, the number of lines will depend on the width of content |
@dukenv0307 That looks good to me. Can we also fix the tooltip on the reaction chat? |
@mollfpr It works well in the tooltip on the reaction chat |
@dukenv0307 Just a question to understand the root cause is. Could you explain when we didn't update the |
@mollfpr Currently, If App/src/styles/getTooltipStyles.js Lines 103 to 105 in ebc03db
But at this time, because the email is too long it automatically breaks the line, It makes the offsetWidth of tooltips smaller(ex: 260px) and we don't have any logic to update tooltipContentWidth = current offsetWidth (260px) (tooltipContentWidth still be 1200px) so the wrapperWidth is not updated (it still be 375px)Note: tooltipContentWidth only be used to calculate the wrapperWidth . So that if the wrapperWidth is correct, we won't need to update tooltipContentWidth . But in this case, after updating the wrapperWidth, the wrapperWidth still be wrong (Because the email is too long, it automatically breaks the line).To resolve this problem, we need to update tooltipContentWidth one more time then wrapperWidth also be updated one more time
|
Thanks @situchan! Yeah, we should clean that up. @dukenv0307 Could you open a PR for the update so we can CP the PR before it's hit production? |
@mollfpr I am doing on it. The PR will be ready soon |
@mollfpr The PR is ready to review. Please check. |
@bfitzexpensify let's make sure @situchan gets paid for a bug report on this one as well. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.0-2 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-04-24. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Re: regression test, I think it's reasonable to update the Create Group Conversation regression test with an extra step like:
|
@bfitzexpensify Yes! That seems an excellent place to put in the regression test. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.1-3 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-04-26. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Offers sent out @situchan @Tushu17 @mollfpr @dukenv0307 I couldn't find you on Upwork - can you please apply to the job here? Regression test update is in https://github.com/Expensify/Expensify/issues/278028 |
@bfitzexpensify I've applied, my profile is https://www.upwork.com/freelancers/~01f5cbe690701118a2, thank you! |
@dukenv0307 offer was sent last week, please accept and I'll finalize payment - thanks! |
@bfitzexpensify I've accepted, thanks! |
Great, that's all paid out now. @mollfpr once you complete the steps in #16800 (comment) we can close this one out. |
We have refactored the tooltip body in this PR #15325, but I don't think that PR is wrong doing it.
Regression steps should be enough. |
Cool, thanks! Agreed with your points. OK, let's close this one out. |
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:
The tooltip should not have any blank space on its sides.
Actual Result:
The tooltip is displaying a blank space on the right side of the text.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.92-0
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: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @Tushu17
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680205984931229
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: