You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for Santhosh] [$1000] mWeb - New room - Room names in LHN do not match the name when created #20510
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
The problem is the this.containerRef.offsetWidth and this.containerRef.scrollWidth can be zero when we resize window.
Now this.state.isEllipsisActive can be 0:
And because of that the condition here will render 0 with this.props.displayNamesWithTooltips.length > 1.
{/* There is some Gap for real ellipsis so we are adding 4 `.` to cover */}
<Text>....</Text>
</Tooltip>
</View>
What changes do you think we should make in order to solve the problem?
Make sure the this.state.isEllipsisActive is boolean value. We should cast it to Boolean.
{this.props.displayNamesWithTooltips.length>1&&Boolean(this.state.isEllipsisActive)&&(<Viewstyle={styles.displayNameTooltipEllipsis}><Tooltiptext={this.props.fullTitle}>{/* There is some Gap for real ellipsis so we are adding 4 `.` to cover */}<Text>....</Text></Tooltip></View>)}
What alternative solutions did you explore? (Optional)
changed the title [-]mWeb - New room - Room names in LHN do not match the name when created[/-][+][$1000] mWeb - New room - Room names in LHN do not match the name when created[/+]on Jun 9, 2023
changed the title [-][HOLD for payment 2023-06-23] [$1000] mWeb - New room - Room names in LHN do not match the name when created[/-][+][HOLD for Santhosh] [$1000] mWeb - New room - Room names in LHN do not match the name when created[/+]on Jun 29, 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:
[@Santhosh-Sellavel] The PR that introduced the bug has been identified. Link to the PR: N/A
[@Santhosh-Sellavel] 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: N/A
[@Santhosh-Sellavel] 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: N/A
[@Santhosh-Sellavel] Determine if we should create a regression test for this bug. Yes
[@NicMendonca] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
We can skip the checklist here as it's a very minor thing, I don't think we need regression tests as well. As this should be covered by the normal test cases. If needed let's use this
@Beamanator Let me know if differ on any of the above thanks!
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 9, 2023
Triggered auto assignment to @NicMendonca (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 9, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)hungvu193 commentedon Jun 9, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
mWeb - New room - Room names in LHN do not match the name when created
What is the root cause of that problem?
Let take a look at this piece of code:
App/src/components/DisplayNames/index.js
Lines 108 to 114 in f64a388
As we can see we will render the tooltip when
this.props.displayNamesWithTooltips.length > 1andthis.state.isEllipsisActiveis true.App/src/components/DisplayNames/index.js
Line 23 in f64a388
The problem is the
this.containerRef.offsetWidthandthis.containerRef.scrollWidthcan be zero when we resize window.Now
this.state.isEllipsisActivecan be 0:And because of that the condition here will render 0 with
this.props.displayNamesWithTooltips.length > 1.App/src/components/DisplayNames/index.js
Lines 108 to 114 in f64a388
What changes do you think we should make in order to solve the problem?
Make sure the
this.state.isEllipsisActiveis boolean value. We should cast it to Boolean.What alternative solutions did you explore? (Optional)
We can disable tooltip with mobile web
[-]mWeb - New room - Room names in LHN do not match the name when created[/-][+][$1000] mWeb - New room - Room names in LHN do not match the name when created[/+]melvin-bot commentedon Jun 9, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01172d30b33b712701
melvin-bot commentedon Jun 9, 2023
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jun 9, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (
External)melvin-bot commentedon Jun 9, 2023
Triggered auto assignment to @Beamanator (
External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.46 remaining items
[-][HOLD for payment 2023-06-23] [$1000] mWeb - New room - Room names in LHN do not match the name when created[/-][+][HOLD for Santhosh] [$1000] mWeb - New room - Room names in LHN do not match the name when created[/+]NicMendonca commentedon Jun 30, 2023
@Santhosh-Sellavel I know we're holding on payment for this one, but friendly bump on the checklist: #20510 (comment)
NicMendonca commentedon Jul 4, 2023
@Santhosh-Sellavel bump ^
Santhosh-Sellavel commentedon Jul 4, 2023
We can skip the checklist here as it's a very minor thing, I don't think we need regression tests as well. As this should be covered by the normal test cases. If needed let's use this
@Beamanator Let me know if differ on any of the above thanks!
Santhosh-Sellavel commentedon Jul 4, 2023
Regression Steps:
👍 or 👎
NicMendonca commentedon Jul 6, 2023
@Santhosh-Sellavel can you remind me next steps for Payment?
Santhosh-Sellavel commentedon Jul 6, 2023
Ya sure!
anmurali commentedon Jul 7, 2023
Paid on New Dot
NicMendonca commentedon Jul 7, 2023
Fab! We're all done set here then. Thanks everyone 🎉