-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Desktop Navigation] Add a tooltip to the account switcher on the accounts page #59713
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
[Desktop Navigation] Add a tooltip to the account switcher on the accounts page #59713
Conversation
@flaviadefaria @mountiny @Expensify/design Could you generate builds for this one? And I'd like to ask if it should be hidden behind the beta as it's a minor change |
I can run a quick build. I feel like this is a change that would benefit all current users who use copilot, so I can see where it doesn't need to be behind the beta flag. |
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb Safari |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I definitely agree with this.
I think that's a solid idea too. I quite like the one on the left so it matches the educational version. |
Sounds good to me! |
Sounds like we would like to move the tooltip position and behaviour slightly so going to wait for @WojtekBoman to address that before merging |
I adjusted the tooltip position, you can run new builds and check if it is ok now :) Here's a screenshot of how it looks now: cc: @flaviadefaria @Expensify/design |
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
I added one more fix, the tooltip is displayed only when users can switch accounts |
Ah, great one! |
@shawnborton @dannymcclain how do you feel about the tooltip displaying on top of ![]() |
I think the arrows should stay, because they are a visual indicator that that particular element is interactive. I think the tooltip is fine personally, but curious what the other designers think! |
Agree with both comments! I think the the up-down-arrows signal that you should/can hover over this element, and the tooltip explains what it is you're hovering over. And IMO no worries about the tooltip covering the Account label—since tooltips are temporary that's no big deal. @WojtekBoman I'm sorry to be such a nit picker, but can we scoot the tooltip over a tiny bit so that the arrow is more centered with the avatar? |
I fixed that, please verify if it looks good now :) |
@WojtekBoman Thank you! Can you grab a screenshot so I don't have to run another build? |
|
|
There's a failed test |
d104d8c
to
f8dc1e4
Compare
Merged the latest main, I hope it will work now🤞 |
I still find it weird that the tooltip covers |
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
For final testing. @dukenv0307 if you could double check this please |
@mountiny Code looks good and tests well ![]() |
But I think we're waiting for @Expensify/design team to resolve this comment |
Yeah sounds good, just wanted to confirm the behaviour for now. Lets wait for the final design confirmation @dannymcclain |
Aligned with Danny here. 8px below and sitting on top of the content is correct. As long as the arrow points to the element as well 👍 |
Me three, that 8px gap is our standard distance away from something. I don't find it odd because it's something that launches only on hover. All of our tooltips inevitably cover something up when you see them on hover, I don't think we can really avoid that. |
Sounds like the great triumvirate is aligned on this one so I will review and merge if all looks good now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
The gurus have spoken 😄 |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.26-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.26-10 🚀
|
Explanation of Change
This PR adds a tooltip to the account switcher, when we hover over the account switcher icon it will be displayed
Fixed Issues
$ #59373
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
MacOS: Chrome / Safari
MacOS: Desktop