-
Notifications
You must be signed in to change notification settings - Fork 90
Notification Drawer Updates #526
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
Conversation
Great, taking a look! |
@benjaminapetersen Did you update the patternfly version? |
I did a
|
The empty message definitely helps. Curious if we would want a want to have a single "No notifications" message if all of the tabs are empty. It may annoy a user to open each tab & get the same message over and over: That may be able to be solved programmatically by updating the <div ng-if="!totalNotificationCount">
<!-- show a message if there zero notifications -->
</div>
<div ng-if="totalNotificationCount">
<!-- show the current body -->
</div> Another possibility might be to provide a new attrib for empty state: notification-body-include="notification-body.html"
notification-body-empty-include="notification-body-empty.html" |
@benjaminapetersen I'd like to leave the 'all groups are empty' issue for further thought and not attempt to address in this PR. I'd like to hear some UX perspectives first. |
Works for me, I can probably just do the first option in the openshift web console for now. |
Feel free to add an issue if you'd like. |
Ok will do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Non-breaking
alterationcode example highlighted... -
inline-notification.component.js >> line 107
'pfNotificationRemove': '&?'
$scope.actionsText = "Mark notification read" + "\n" + $scope.actionsText; | ||
var notificationGroup = $scope.groups.find(function(group) { | ||
return group.notifications.find(function(nextNotification) { | ||
return notification == nextNotification; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a ===
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks.
1575858
to
a04ce4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Updates to latest Patternfly design pattern from: patternfly/patternfly-design#297
Bumps https://github.com/patternfly/patternfly version to 3.26.0
Fixes #414
Fixes #419
Fixes #420 - Adds documentation on styling for drawer with different navigation layouts
Fixes #421 - Adds a close button to the notification drawer title area
Fixes #430 - Update layout to handle long notification messages
Fixes #429 #432 - Allows a single group to be used thus not using an accordion for groups
Fixes #431 - Displays the pf-empty-state when there are no notifications or none in a particular group. Allows setting the empty message for each.
@benjaminapetersen