Skip to content

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

Merged
merged 1 commit into from
Jul 26, 2017

Conversation

jeff-phillips-18
Copy link
Member

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

@benjaminapetersen
Copy link
Member

Great, taking a look!

@benjaminapetersen
Copy link
Member

benjaminapetersen commented Jul 26, 2017

Running grunt serve & noticed the x on the docs file has a shadow:
screen shot 2017-07-26 at 9 45 59 am

  • fixed! my /lib did not update on my first bower install

@benjaminapetersen
Copy link
Member

benjaminapetersen commented Jul 26, 2017

I also have a scrollable 'empty message' under one of the headings:

screen shot 2017-07-26 at 9 48 07 am

  • fixed! my /lib did not update on my first bower install

and perhaps a bit constricted? font size is probably good if it fit on two lines:

screen shot 2017-07-26 at 10 06 37 am

  • fixed! my /lib did not update on my first bower install

@jeff-phillips-18
Copy link
Member Author

@benjaminapetersen Did you update the patternfly version?

@benjaminapetersen
Copy link
Member

I did a bower install before grunt serve, which gave me:

$ bower install
bower patternfly#>=3.26.0   not-cached https://github.com/patternfly/patternfly.git#>=3.26.0
bower patternfly#>=3.26.0      resolve https://github.com/patternfly/patternfly.git#>=3.26.0
bower bootstrap-switch#<=3.3.3  cached https://github.com/nostalgiaz/bootstrap-switch.git#3.3.3
bower bootstrap-switch#<=3.3.3         validate 3.3.3 against https://github.com/nostalgiaz/bootstrap-switch.git#<=3.3.3
bower patternfly#>=3.26.0              checkout v3.26.0
bower patternfly#>=3.26.0          invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .css files: ["dist/css/patternfly.css","dist/css/patternfly-additions.css"]
bower patternfly#>=3.26.0              resolved https://github.com/patternfly/patternfly.git#3.26.0
bower bootstrap-switch#<=3.3.3          install bootstrap-switch#3.3.3
bower patternfly#>=3.26.0               install patternfly#3.26.0

@benjaminapetersen
Copy link
Member

benjaminapetersen commented Jul 26, 2017

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:

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>

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"

@jeff-phillips-18
Copy link
Member Author

@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.

@benjaminapetersen
Copy link
Member

benjaminapetersen commented Jul 26, 2017

Works for me, I can probably just do the first option in the openshift web console for now.

@jeff-phillips-18
Copy link
Member Author

Feel free to add an issue if you'd like.

@benjaminapetersen
Copy link
Member

Ok will do

Copy link
Member

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

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

  • Non-breaking alteration code 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;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe a ===...

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed. Thanks.

Copy link
Member

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment