Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

[C-608] Fix tooltip bugs#1701

Merged
raymondjacobson merged 5 commits into
mainfrom
rj-c-608
Aug 13, 2022
Merged

[C-608] Fix tooltip bugs#1701
raymondjacobson merged 5 commits into
mainfrom
rj-c-608

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Description

Fix tooltip bugs. There were kind of a few things that were causing jankiness, primarily the timeout though, which is a blunt weapon to handle this kinda stuff. This is why I kinda dislike antd... Have to learn about the internals a little bit to get the behavior.

Dragons

Is there anything the reviewer should be on the lookout for? Are there any dangerous changes?

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

Focused on 3 places

  • GiantTrackTile (track page): to test the bug in the linear issue -- tooltip appearing after clicking
  • Receive $AUDIO modal -- to test that the tooltip goes away when you click, even if you're still hovering over the element
  • Track tile on feed: to test that the tooltip goes away when you click, but also that you can summon it by hovering over again

How will this change be monitored?

For features that are critical or could fail silently please describe the monitoring/alerting being added.

Feature Flags

Are all new features properly feature flagged? Describe added feature flags.

@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/rj-c-608

@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/rj-c-608


const onMouseOut = useCallback(() => {
mousedOver.current = false
setIsHidden(false)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be hiding the tooltip or un-hiding it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is setting the overriding hidden state to false, which is different from actually hiding it. I can rename the state var to make it more understandable

* [C-767] Fix tooltip on cards

* Fix new playlist/folder tooltip
@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/rj-c-608

@raymondjacobson raymondjacobson merged commit 5945882 into main Aug 13, 2022
@raymondjacobson raymondjacobson deleted the rj-c-608 branch August 13, 2022 01:40
@sliptype sliptype mentioned this pull request Aug 18, 2022
@AudiusProject AudiusProject deleted a comment from linear Bot Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants