Skip to content
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

[$500] Workspace - Tooltip is at the center instead of above display name #35691

Closed
2 of 6 tasks
lanitochka17 opened this issue Feb 2, 2024 · 25 comments
Closed
2 of 6 tasks
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 2, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: .1.4-36.0
Reproducible in staging?: Y
Reproducible in production?: N
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Open workspace switcher
  3. Select a workspace
  4. Go to Settings at the bottom
  5. Go to Members
  6. Hover over member display name

Expected Result:

Tooltip appeaers above the display name

Actual Result:

Tooltip is at the center instead of above the display name

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6365133_1706896814542.20240203_001655.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01da161df451d2ec58
  • Upwork Job ID: 1753485595100897280
  • Last Price Increase: 2024-02-02
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Feb 2, 2024
Copy link
Contributor

github-actions bot commented Feb 2, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Feb 2, 2024

Triggered auto assignment to @hayata-suenaga (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@lanitochka17
Copy link
Author

We think that this bug might be related to #5
CC @dylanexpensify

@hayata-suenaga hayata-suenaga added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 2, 2024
@allgandalf
Copy link
Contributor

Proposal

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

Tooltip is at the center instead of above display name

What is the root cause of that problem?

We place the Tootip at wrong component

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

Rearrange the tooltip to be placed exactly above the text

What alternative solutions did you explore? (Optional)

N/A

@hayata-suenaga hayata-suenaga added the External Added to denote the issue can be worked on by a contributor label Feb 2, 2024
@melvin-bot melvin-bot bot changed the title Workspace - Tooltip is at the center instead of above display name [$500] Workspace - Tooltip is at the center instead of above display name Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01da161df451d2ec58

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 2, 2024
Copy link

melvin-bot bot commented Feb 2, 2024

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

@hayata-suenaga hayata-suenaga moved this to Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) in [#whatsnext] Wave 08 - Collect Plan Admins Feb 2, 2024
@hayata-suenaga hayata-suenaga changed the title [$500] Workspace - Tooltip is at the center instead of above display name [$500] [Wave 8] [Ideal Nav] Workspace - Tooltip is at the center instead of above display name Feb 2, 2024
@hayata-suenaga
Copy link
Contributor

seems like from the Ideal Navigation PR? Removing the blocker as this is just a UI bug. I'll track this as part of the Ideal Nav regressions

@Krishna2323
Copy link
Contributor

Proposal

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

Workspace - Tooltip is at the center instead of above display name

What is the root cause of that problem?

This issue happens because the text container inside MenuItem takes full width available.

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

Set the text container width to fitContent.

Result

@mkhutornyi
Copy link
Contributor

@hayata-suenaga this is not related to Ideal Nav.
Regression from #34197
Original author/reviewer should handle this

@shubham1206agra
Copy link
Contributor

Interesting. But I am not sure if we should treat this as regression from #34197 as they can't test this on Ideal Nav due to PR timings.

@mkhutornyi
Copy link
Contributor

This also happens on Invite members page which isn't part of Ideal Nav.
This should have been easily caught during PR review.

@mkhutornyi
Copy link
Contributor

cc: @aswin-s @sobitneupane

@hayata-suenaga
Copy link
Contributor

ah should I remove this from ideal nav then?

@shubham1206agra
Copy link
Contributor

Oh. If that's the case, then I will unassign myself from this issue and let @sobitneupane take over.
cc @hayata-suenaga

@shubham1206agra
Copy link
Contributor

ah should I remove this from ideal nav then?

Yes

@shubham1206agra shubham1206agra removed their assignment Feb 2, 2024
@hayata-suenaga hayata-suenaga changed the title [$500] [Wave 8] [Ideal Nav] Workspace - Tooltip is at the center instead of above display name [$500] Workspace - Tooltip is at the center instead of above display name Feb 2, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 2, 2024
@hayata-suenaga
Copy link
Contributor

cc: @sobitneupane

@aswin-s
Copy link
Contributor

aswin-s commented Feb 2, 2024

I'll raise a fix shortly

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 2, 2024
@aswin-s
Copy link
Contributor

aswin-s commented Feb 2, 2024

PR is ready: #35735 @sobitneupane

@roryabraham
Copy link
Contributor

IDK why, but I'm not able to get tooltips to show up on this view at all 😕

@roryabraham
Copy link
Contributor

the only tooltip I see is this one:

image

same on main and on @aswin-s' branch

@mountiny
Copy link
Contributor

mountiny commented Feb 6, 2024

Same as Rory, only that one tooltip
image

@aswin-s
Copy link
Contributor

aswin-s commented Feb 7, 2024

@sobitneupane @roryabraham Looks like hiding the tooltip is intentional. Regression is from #35460. As per issue #34961 it shouldn't even show tooltip here as the label and tooltip is same.

So is this issue valid any more?

@sobitneupane
Copy link
Contributor

@aswin-s Going through the linked PR, we do show the tooltip, If target.scrollWidth > target.offsetWidth (i.e., if the text overflows).

Screen.Recording.2024-02-07.at.12.27.40.mov

But I do believe that in case the text overflows, the tooltip will basically appear at the center. But we should extensively test different cases with larger text and alternate texts.

@aswin-s
Copy link
Contributor

aswin-s commented Feb 7, 2024

@sobitneupane The scenario where text overflows is when the text length reaches the container width. At this point tool tip should be aligned at the center of the container anyways.

@roryabraham
Copy link
Contributor

cool, so it sounds like this issue is no longer valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants