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

[frontend] Dismiss info alert popup messages after 3 seconds (along with Unit Test) #3642

Merged
merged 6 commits into from
Mar 11, 2024

Conversation

ananya-agarwal
Copy link
Collaborator

What changes were proposed in this pull request?

The info alert popup messages will automatically go after 3 seconds from when it is shown. Since, the error and warning messages are important and we want the user to close them themselves, so such a timer is only used for the info messages.

How was this patch tested?

Attached a demo video.
The patch is manually tested on the Hue UI using a stopwatch of 3 seconds.

Demo_testing.mov

Please review Hue Contributing Guide before opening a pull request.

Copy link
Contributor

@JohanAhlen JohanAhlen left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Collaborator

@bjornalm bjornalm left a comment

Choose a reason for hiding this comment

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

Nice! Lets also add a unit test for this like we discussed in yesterdays meeting. Was 3 seconds the time span used for the old messages? It seems a bit short but perhaps it is ok.

@ananya-agarwal
Copy link
Collaborator Author

ananya-agarwal commented Mar 7, 2024

Regarding the timer earlier: Checked it during 1-1 with Johan. It was 3 seconds earlier too. We can do it whatever we feel is better.
Regarding the unit case: I will add it today. The image below assumes the timer to be of 5 seconds.
PFA
Earlier3000
UnitTest_TimerInfo

@ananya-agarwal ananya-agarwal changed the title [frontend] Dismiss info alert popup messages after 3 seconds [frontend] Dismiss info alert popup messages after 3 seconds (along with Unit Test) Mar 9, 2024
@ananya-agarwal
Copy link
Collaborator Author

ananya-agarwal commented Mar 11, 2024

Bjorn, can you please have a look now? Are we good to merge it now?

Copy link
Collaborator

@bjornalm bjornalm left a comment

Choose a reason for hiding this comment

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

Great work

@bjornalm bjornalm merged commit 46347fa into master Mar 11, 2024
4 checks passed
@bjornalm bjornalm deleted the InfoTimer branch March 11, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants