Skip to content

[HOLD for Santhosh] [$1000] mWeb - New room - Room names in LHN do not match the name when created #20510

Closed

Description

@kbecciv

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. Go to https://staging.new.expensify.com/
  2. Log in with a High traffic account that owns a existing Workspace
  3. Click on the green + button
  4. Click on the "New Room" option
  5. Set the name of the #Room to anything you'd like (following the correct format)
  6. Go to LHN

Expected Result:

The name of the room matches the name when created

Actual Result:

Room names in LHN do not match the name when created. Room name shows 0 at the end

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.26.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

Bug6086477_Screen_Recording_20230609_090130_Chrome.mp4
Bug6086477_2023_06_09_13_46_Img_9746.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team / @Natnael-Guchima

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01172d30b33b712701
  • Upwork Job ID: 1667249070496825344
  • Last Price Increase: 2023-06-09

Activity

  1. added
    Daily
    Bug
    on Jun 9, 2023
  2. melvin-bot commented on Jun 9, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jun 9, 2023

    @melvin-bot

    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
  4. hungvu193 commented on Jun 9, 2023

    @hungvu193
    Contributor

    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:

    {this.props.displayNamesWithTooltips.length > 1 && this.state.isEllipsisActive && (
    <View style={styles.displayNameTooltipEllipsis}>
    <Tooltip text={this.props.fullTitle}>
    {/* There is some Gap for real ellipsis so we are adding 4 `.` to cover */}
    <Text>....</Text>
    </Tooltip>
    </View>

    As we can see we will render the tooltip when this.props.displayNamesWithTooltips.length > 1 and this.state.isEllipsisActive is true.
    isEllipsisActive: this.containerRef && this.containerRef.offsetWidth && this.containerRef.scrollWidth && this.containerRef.offsetWidth < this.containerRef.scrollWidth,

    The problem is the this.containerRef.offsetWidth and this.containerRef.scrollWidth can be zero when we resize window.
    Screen Shot 2023-06-09 at 22 52 15
    Now this.state.isEllipsisActive can be 0:
    Screen Shot 2023-06-09 at 22 19 43

    And because of that the condition here will render 0 with this.props.displayNamesWithTooltips.length > 1.

    {this.props.displayNamesWithTooltips.length > 1 && this.state.isEllipsisActive && (
    <View style={styles.displayNameTooltipEllipsis}>
    <Tooltip text={this.props.fullTitle}>
    {/* 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) && (
                        <View style={styles.displayNameTooltipEllipsis}>
                            <Tooltip text={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)

    We can disable tooltip with mobile web

  5. added
    External
    on Jun 9, 2023
  6. 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
  7. melvin-bot commented on Jun 9, 2023

    @melvin-bot
  8. melvin-bot commented on Jun 9, 2023

    @melvin-bot

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

  9. melvin-bot commented on Jun 9, 2023

    @melvin-bot

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

  10. added
    Help Wanted
    on Jun 9, 2023
  11. melvin-bot commented on Jun 9, 2023

    @melvin-bot

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

  12. 46 remaining items

  13. 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
  14. NicMendonca commented on Jun 30, 2023

    @NicMendonca
    Contributor

    @Santhosh-Sellavel I know we're holding on payment for this one, but friendly bump on the checklist: #20510 (comment)

  15. NicMendonca commented on Jul 4, 2023

    @NicMendonca
    Contributor
  16. Santhosh-Sellavel commented on Jul 4, 2023

    @Santhosh-Sellavel
    Collaborator

    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:

    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!

  17. Santhosh-Sellavel commented on Jul 4, 2023

    @Santhosh-Sellavel
    Collaborator

    Regression Steps:

    1. Login with a High traffic account that owns an existing Workspace
    2. Click on the green + button
    3. Click on the "New Room" option
    4. Set the name of the #Room to anything you'd like (following the correct format)
    5. Go to LHN, and verify that the Room name in LHN matched the name when created

    👍 or 👎

  18. NicMendonca commented on Jul 6, 2023

    @NicMendonca
    Contributor

    @Santhosh-Sellavel can you remind me next steps for Payment?

  19. Santhosh-Sellavel commented on Jul 6, 2023

    @Santhosh-Sellavel
    Collaborator

    Ya sure!

  20. anmurali commented on Jul 7, 2023

    @anmurali

    Paid on New Dot

  21. NicMendonca commented on Jul 7, 2023

    @NicMendonca
    Contributor

    Fab! We're all done set here then. Thanks everyone 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions