Skip to content

[HOLD for payment 2023-08-03] [$1000] Web - The tooltip shows multiple/all the selected users when hovering over the overlayed avatar #22951

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. Settings > Workspace > Members
  2. Click on Invite and select 9 users.
  3. Click on next
  4. Hover over the Overlayed avatar and notice the tooltip shows multiple/all the selected users.

Expected Result:

The tooltip should only show users missing from the initial 2 lines

Actual Result:

The tooltip shows multiple/all the selected users.

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.41-2
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

Test75_Overlayedtooltip-1.mp4
Recording.3661.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0117cec49274e7cba8
  • Upwork Job ID: 1680798574892285952
  • 2023-07-17
  • Automatic offers:
    • aimane-chnaif | Reviewer | 25671578
    • ahmedGaber93 | Contributor | 25671580
    • daveSeife | Reporter | 25671581

Activity

  1. added
    Daily
    Bug
    on Jul 15, 2023
  2. melvin-bot commented on Jul 15, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jul 15, 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. ahmedGaber93 commented on Jul 15, 2023

    @ahmedGaber93
    Contributor

    Proposal

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

    The tooltip shows number of users max than the reminding when Hovering over the Overlayed avatar.

    What is the root cause of that problem?

    Wrong calculate for tooltip text in MultipleAvatars, after enable multi rows in PR #21402 we missed changing it base on the new way.

    <Tooltip
    // We only want to cap tooltips to only the first 10 users or so since some reports have hundreds of users, causing performance to degrade.
    text={tooltipTexts.slice(3, 10).join(', ')}
    >

    we now use rows so tooltipTexts.slice(3, 10) is not correct because rows show 8 avatars.

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

    The tooltip text should be

    // text={tooltipTexts.slice(3, 10).join(', ')}
    text={tooltipTexts.slice((avatarRows.length * props.maxAvatarsInRow) - 1, 10).join(', ')}
    1. .slice with end 10 is the current code now to show only 10 users since some reports have hundreds of users.
      The number 10 seem too small because rows will display 8 users, so I suggest increasing it to 15 or 20 or calculate it dynamic (avatarRows.length * props.maxAvatarsInRow) -1 + x, we can discuss it.

    2. -1 above to show the user number 8.

    What alternative solutions did you explore? (Optional)

    we can calculate it out of tooltipTexts

    text={props.shouldShowTooltip ? _.pluck(avatars.slice(props.maxAvatarsInRow - 1), 'name').slice(0, 10).join(', ') : ''}
  5. jliexpensify commented on Jul 17, 2023

    @jliexpensify
    Contributor

    Hmm, very odd - I invited 9 users and here's what I see:

    image

    So I think that hovering over the +1 should only accurately reflect who isn't currently on those 2 lines (i.e. Victoria).

  6. changed the title [-]Web - The tooltip shows all the selected users when Hovering over the Overlayed avatar.[/-] [+]Web - The tooltip shows multiple/all the selected users when hovering over the overlayed avatar[/+] on Jul 17, 2023
  7. jliexpensify commented on Jul 17, 2023

    @jliexpensify
    Contributor

    Oh, this is a dupe of #22685

  8. daveSeife commented on Jul 17, 2023

    @daveSeife

    Hi @jliexpensify I think they are different issues. The one you mentioned is about the Avatars moving to the left when adding more than 8 users(this issue can also be seen in the IOU report of more than 7 user splitting a bill and also in "workspace" in the settings).

    The issue I posted is about the tooltip not showing the correct users.

    Can you please comment on this so I can have a better understanding on how they are the same

  9. jliexpensify commented on Jul 17, 2023

    @jliexpensify
    Contributor

    @daveSeife I'm going off the Slack link, but it looks like it might be the incorrect one associated with this GH?

  10. added
    External
    on Jul 17, 2023
  11. changed the title [-]Web - The tooltip shows multiple/all the selected users when hovering over the overlayed avatar[/-] [+][$1000] Web - The tooltip shows multiple/all the selected users when hovering over the overlayed avatar[/+] on Jul 17, 2023
  12. 37 remaining items

  13. melvin-bot commented on Jul 27, 2023

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  14. removed
    Reviewing
    on Jul 27, 2023
  15. melvin-bot commented on Jul 27, 2023

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.46-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-08-03. 🎊

    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.

    • External issue reporter
    • Contributor that fixed the issue
    • Contributor+ that helped on the issue and/or PR

    For reference, here are some details about the assignees on this issue:

    As a reminder, here are the bonuses/penalties that should be applied for any External issue:

    • Merged PR within 3 business days of assignment - 50% bonus
    • Merged PR more than 9 business days after assignment - 50% penalty
  16. melvin-bot commented on Jul 27, 2023

    @melvin-bot

    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:

    • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
    • [@aimane-chnaif] 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:
    • [@aimane-chnaif] 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:
    • [@aimane-chnaif] Determine if we should create a regression test for this bug.
    • [@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
    • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  17. jliexpensify commented on Jul 28, 2023

    @jliexpensify
    Contributor

    Payment Summary:

    Is this correct? Upworks Job here.

    Friendly bump @aimane-chnaif to complete the checklist

  18. aimane-chnaif commented on Jul 28, 2023

    @aimane-chnaif
    Contributor

    There was weekend

  19. jliexpensify commented on Jul 28, 2023

    @jliexpensify
    Contributor

    @aimane-chnaif can you share the timeline please, for documentation purposes?

  20. aimane-chnaif commented on Jul 28, 2023

    @aimane-chnaif
    Contributor
  21. jliexpensify commented on Jul 28, 2023

    @jliexpensify
    Contributor

    Thank you, updated above!

  22. jliexpensify commented on Aug 3, 2023

    @jliexpensify
    Contributor

    Bump @aimane-chnaif to complete the checklist before payment. Thanks!

  23. aimane-chnaif commented on Aug 3, 2023

    @aimane-chnaif
    Contributor

    Regression Test Proposal:

    1. Login any account
    2. Go to Settings > Workspaces > any workspace > Members > Invite
    3. Select 10+ users and then click next.
    4. Hover over the overlayed avatar and verify that tooltip shows the correct number of remaining users.
  24. added
    Daily
    and removed
    Weekly
    on Aug 3, 2023
  25. jliexpensify commented on Aug 4, 2023

    @jliexpensify
    Contributor

    Everyone paid, job closed, Thanks!

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