angular-patternfly icon indicating copy to clipboard operation
angular-patternfly copied to clipboard

Would notification drawer benefit from a general empty state?

Open benjaminapetersen opened this issue 8 years ago • 1 comments

Related to #526

original comment

The individual empty tab messages are a big improvement. Its possible that a user could still be a bit frustrated opening each tab only to find that there are no notifications. It may be beneficial to provide a generalized way to indicate to the user that there are no new notifications at all.

screen shot 2017-07-26 at 10 19 48 am

That may be able to be solved programmatically by updating the notifications-body.html with something like:

<div ng-if="!totalNotificationCount">
   <!-- show a message if there zero notifications -->
</div>
<div ng-if="totalNotificationCount">
   <!-- show the current body -->
</div>

If this is acceptable, then I would simply propose an update to the docs.

Another possibility might be to provide a new attrib for an empty state template:

notification-body-include="notification-body.html"
notification-body-empty-include="notification-body-empty.html"

At first glance this seems like it would be nice as it abstracts away some of the noise, but I'm not sure if its worth the cost of $watch-ing notification-groups to count all of the notifications in each array in order to trigger the template change.

@jeff-phillips-18

benjaminapetersen avatar Jul 26 '17 14:07 benjaminapetersen

In OpenShift, the accordion is not used so this issue does not apply. Changing to priority 3 for now. Will bring back up if other products experience this issue!

beanh66 avatar Nov 14 '17 14:11 beanh66