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

fix(alert): Correctly dismiss after hovering #6228

Merged
merged 4 commits into from
Jan 5, 2023

Conversation

macandcheese
Copy link
Contributor

Related Issue: #6222

Summary

This should fix the problem described in the issue - it now handles multiple "hover on and off" events and, at least in local testing, seems to handle large queues that may be present pretty well. The events used were changed to fire less often, and there's an accrued timer of hover time that now is used to determine remaining duration before dismissal.

The watcher for changing the duration now resets it to the default, so unless a user interacts with the alert, it may display for a bit longer. Although, I can't think of a use case where this would be changed while an alert is open, we do use it in demos, and we could refactor this code to better support that if needed.

Screen.Recording.2023-01-03.at.8.34.08.PM.mov

@macandcheese macandcheese requested a review from a team as a code owner January 4, 2023 04:39
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Jan 4, 2023
@macandcheese
Copy link
Contributor Author

Should also resolve #6132

@macandcheese macandcheese added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Jan 4, 2023
@macandcheese
Copy link
Contributor Author

Surprisingly the related change in Chromatic for Alert seems to be unrelated - exists on other PR https://www.chromatic.com/build?appId=6266d45509d7eb004aa254fb&number=663 - if someone could approve :)

@macandcheese macandcheese merged commit 66dd692 into master Jan 5, 2023
@macandcheese macandcheese deleted the macandcheese/alert-timer branch January 5, 2023 16:49
@github-actions github-actions bot added this to the 2023 January Priorities milestone Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants