fabric8-ui / fabric8-ux

Design Links
https://uxd.fabric8.io/
Apache License 2.0
9 stars 9 forks source link

Dev: Add 'Saved Filters' capability to Filter pattern in patternfly-ng #664

Closed catrobson closed 7 years ago

catrobson commented 7 years ago

We need to add saved filter capabilities, as specified by the design linked below, to patternfly-ng repo. We'll be contributing the design as a second step separate from this story.

Design: https://redhat.invisionapp.com/share/DUDF5ZA7J (Option 1)

Verification criteria:

dlabrecq commented 7 years ago

I'm confused by the search bar in the filter menu. We recently added type ahead functionality, which basically does the same thing. Can we not use type ahead to prune the available custom filters?

catrobson commented 7 years ago

+1 the search bar should not be there - type-ahead handles this. This was agreed upon but the wireframes were not updated to reflect that discussion it looks like.

dlabrecq commented 7 years ago

There is also an issue with table views. That is, where the "save filter" control is located, we also display the number of selections. For example:

screen shot 2017-10-11 at 9 58 01 am

Would it be ok to move the "save filter" control next to "clear filters"?

catrobson commented 7 years ago

Just capturing here that we agreed we could put the save filter alongside "clear all filters"

dlabrecq commented 7 years ago

Should the "My Filters" option be visible when the user has not saved any filters? Or, after the user has removed all of their saved filters?

screen shot 2017-10-13 at 10 44 21 am

muruGanesan commented 7 years ago

IMO: we can 'gray out' (disabled state) when there is no data. - THIS CAN BE A COMMON BEHAVIOR for SUCH KIND OF CONTROLS. Option-1 option-1

Option-2 option-2

muruGanesan commented 7 years ago

@catrobson , sdash@redhat.com Please review my comments and provide your opinion

dlabrecq commented 7 years ago

I disabled the filter field as shown in option 1. The PR and demo can be found here: https://github.com/patternfly/patternfly-ng/pull/155

dlabrecq commented 7 years ago

Closing for the end of sprint 139-1. Please refer to the PR above.