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

[messages] add tooltip to notification statusbar item #6766

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

vince-fugnitto
Copy link
Member

What it does

Minor enhancement adding a tooltip to the Notification statusbar item:

  • displays Hide Notifications when the notification center is expanded.
  • displays No Notifications when the notification center is collapsed and no notifications are present.
  • displays {count} Notifications when the notification center is collapsed and notifications are present.

How to test

  1. test tooltip when no notifications are present.
  2. test tooltip when 1 or more notifications are present.
  3. test tooltip when the notification center is opened.

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

@vince-fugnitto vince-fugnitto added notifications issues related to notifications statusbar issues related to the statusbar labels Dec 17, 2019
@vince-fugnitto vince-fugnitto self-assigned this Dec 17, 2019
if (this.manager.centerVisible) {
return 'Hide Notifications';
}
return `${count ? `${count} Notifications` : 'No Notifications'}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: @vince-fugnitto could you make it singular for a single item, please?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure :) I updated the pull request

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks!

Copy link
Contributor

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

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

Thanks! 🙏

- adds a tooltip to the `notification` statusbar item.
- displays `Hide Notifications` when the notification center is expanded.
- displays `No Notifications` when the notification center is collapsed and no notifications are present.
- displays `{count} Notifications` when the notification center is collapsed and notifications are present.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto force-pushed the vf/notification-statusbar-tooltip branch from cb6ee83 to 71bacea Compare December 18, 2019 00:52
@vince-fugnitto vince-fugnitto merged commit 938bc48 into master Dec 18, 2019
@vince-fugnitto vince-fugnitto deleted the vf/notification-statusbar-tooltip branch December 18, 2019 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notifications issues related to notifications statusbar issues related to the statusbar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants