Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Conversation

@jeff-phillips-18
Copy link
Member

@jeff-phillips-18 jeff-phillips-18 commented Jun 30, 2017

Implementation of
patternfly/patternfly-design#297

Description

This PR add implementations for the notification drawer updates:

  • Close button for the notifications drawer
  • Mark All Read and Clear All in one horizontal area
  • Hide Mark All Read button when there are no unread notifications
  • Use the empty state pattern when there are no notifications

View and test at:

@beanh66 @serenamarie125 @jennyhaines

@beanh66
Copy link
Member

beanh66 commented Jun 30, 2017

Thanks @jeff-phillips-18 the badge, mark as read, clear, and empty state are working great. A few things I noticed were (1) in the expanded state, the close x and the title are not in the correct places. The drawer title should be centered and the close should still remain in the far right corner. (2) When clicking on an individual cell that is "new" (bold font) it should become marked as read and unbolded.

@jeff-phillips-18
Copy link
Member Author

@beanh66 I will take a look at the close button issue. The Mark read was not implemented before this PR. I can add the JS to make it so.

@jeff-phillips-18
Copy link
Member Author

@beanh66 Updated to address both issues.

@jennyhaines
Copy link

The implementation looks great. It seems that @beanh66 's comments were addressed, as well! bitmoji

@beanh66
Copy link
Member

beanh66 commented Jun 30, 2017

@jeff-phillips-18 thanks the centering looks great now. Just wondering about the cursor change for the clicking to mark as read. Changing to the text editor cursor makes it seem like the rows are not clickable. Should that stay as a pointer or change to the click pointer? It is a weird case since it doesn't actually link to anything, but IMO it should still look clickable. Separate nit, can the expand arrow change to the blue on hover since we do that for expanding list view items as well?

@jeff-phillips-18
Copy link
Member Author

@beanh66 Changed to the default pointer cursor and added the link color on hover of the drawer expander.

@beanh66
Copy link
Member

beanh66 commented Jun 30, 2017

Thanks, LGTM!

@jeff-phillips-18
Copy link
Member Author

jeff-phillips-18 commented Jul 18, 2017

@beanh66 @andresgalante @bleathem Updated removing changes for the unread notifications indicator which were done in #678. Can you please please review this please :)

<div class="drawer-pf hide drawer-pf-notifications-non-clickable">
<div class="drawer-pf-title">
<a class="drawer-pf-toggle-expand"></a>
<a class="drawer-pf-close"></a>
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why we are using generated icon with css instead of adding it on the html?

Copy link
Member Author

Choose a reason for hiding this comment

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

Using pficon-close sets the line height to 1, and we would need to re-override it back to 1.66667 to align correctly. I can make that change if desired.

Copy link
Member

Choose a reason for hiding this comment

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

That sucks :( Since the icons on the masthead are not generated I think we should do the same here. I'd go with a real icon on the html.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Thanks @andresgalante

@andresgalante
Copy link
Member

@jeff-phillips-18 Other than the generated icons I think everything is ok. Thanks a lot Jeff!

@matthewcarleton
Copy link
Contributor

This looks good to me, nice work Jeff!

@andresgalante
Copy link
Member

👍 Thanks a lot @jeff-phillips-18 I am ok to merge this.

@bleathem when you can please check the JS

@bleathem
Copy link
Member

The js looks fine to me. Thanks for the PR @jeff-phillips-18!

@bleathem bleathem merged commit 83cf46f into patternfly:master Jul 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants