FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs(Table Filter Demo) by kmcfaul · Pull Request #3127 · patternfly/patternfly-react · GitHub

docs(Table Filter Demo) - #3127

Merged
tlabaj merged 8 commits into
patternfly:masterfrom
kmcfaul:table-attr-filter-demo
Oct 25, 2019
Merged

docs(Table Filter Demo)#3127
tlabaj merged 8 commits into
patternfly:masterfrom
kmcfaul:table-attr-filter-demo

Conversation

kmcfaul commented Oct 11, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

What: Adds a demo of a filterable table. Adds a property to DataToolbarFilter (to allow filter chips to be displayed without the toolbar dropdown being displayed), and fixes a console warning in Select (create&no data text props were being passed to the DOM)

Refer to issue: #923

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-3127.surge.sh

codecov-io commented Oct 11, 2019
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #3127 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3127      +/-   ##
==========================================
- Coverage   69.03%   69.03%   -0.01%     
==========================================
  Files         859      859              
  Lines       23637    23641       +4     
  Branches     1895     1895              
==========================================
+ Hits        16318    16320       +2     
- Misses       6359     6361       +2     
  Partials      960      960
Flag Coverage Δ
#misc 95.45% <ø> (ø) ⬆️
#patternfly3 69.3% <ø> (ø) ⬆️
#patternfly4 68.05% <100%> (-0.01%) ⬇️
Impacted Files Coverage Δ
...nfly-4/react-core/src/components/Select/Select.tsx 62.17% <100%> (+0.39%) ⬆️
...y-react-extensions/src/components/Select/Select.js 19.61% <0%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e77c613...cc4834b. Read the comment docs.

kmcfaul force-pushed the table-attr-filter-demo branch from d1e89cf to f518e17 Compare October 11, 2019 19:24

kmcfaul commented Oct 11, 2019

Copy link
Copy Markdown
Contributor Author

Added do not merge to wait for other PRs to go in first

Copy link
Copy Markdown
Member

@kmcfaul I took a quick peek at this realizing that it still may be WIP. I think it's looking really good. Here are just a few small things I noticed:

All other behavior is working exactly as I expected. Great work!

tlabaj requested a review from nicolethoen October 22, 2019 20:23
tlabaj assigned mcarrano and unassigned mcarrano Oct 22, 2019
tlabaj requested a review from mcarrano October 22, 2019 20:23
kmcfaul force-pushed the table-attr-filter-demo branch from f518e17 to 679ed13 Compare October 22, 2019 20:25

kmcfaul commented Oct 22, 2019

Copy link
Copy Markdown
Contributor Author

@mcarrano Added updates based on your feedback, except the empty state. I cannot get to the full page demo via the link - it returns a 404 page. Is there another place I can look for this? I don't think we have an empty state demo for the table in react yet.

Copy link
Copy Markdown
Member

Looks like there is a website issue preventing you from seeing the empty state demo @kmcfaul .

Copy link
Copy Markdown
Member

Actually, here is a screen shot of what the empty state should look like @kmcfaul:

You should be able to access this under core demos/table Look for the Table-empty state demo

Copy link
Copy Markdown
Contributor

Is this demo supposed to be in an experimental category?

kmcfaul commented Oct 23, 2019

Copy link
Copy Markdown
Contributor Author

@mcarrano Added the empty state, thanks for the screenshot & location!

@nicolethoen @rachael-phillips We don't have a demos section in Experimental, but maybe it should be added?

nicolethoen commented Oct 23, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

I think we probably don't want to encourage people to implement the toolbar as seen in the demo if regular breaking changes could still be in the component's future. So the demo should be specifically categorized or consumers sufficiently warned... I thought that it was agreed that the demo would be in an experimental section or held off until the component is no longer experimental

When the other PR gets merged, you'll want to add a 'collapseListedFiltersBreakpoint' to the DataToolbar component to make it more responsive, just a heads up. @mcarrano should this filter be in a toggle group so it can be more responsive? adding this prop will make the 'X filters applied' message appear, but without the toggle group, there wont be a way to see which filters have been applied. I'm honestly not sure what the behavior of this multiple drop down select will be when it is used in a toggle group - it should be explored.

kmcfaul commented Oct 23, 2019

Copy link
Copy Markdown
Contributor Author

Yeah I agree, I'll try creating a new folder for demos in experimental and see if that gets picked up!

Thanks for the heads up about the PR changes as well.

mcarrano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@kmcfaul The functionality here is looking great. All filter behaviors are as I expect. Thanks for implementing the empty state. The only problem I see is with how this responds as I shrink the viewport. Looks like @nicolethoen pointed this out. also. The filters should be enclosed in a toggle group to get the responsive behavior that we want.

kmcfaul commented Oct 23, 2019

Copy link
Copy Markdown
Contributor Author

@mcarrano @nicolethoen
Adding in the toggle creates some issues.

  • The biggest issue is that the chip groups aren't located properly in the collapsed state's expanded menu for this use case. They are located after their respective dropdown, and contain spacing even when no chips are present. With 2 of the 3 dropdowns hidden, there are varying white space gaps above and below each filter dropdown. I would expect all chip groups to be inline at the end of all dropdowns.
  • The inline styling to prevent the dropdowns from resizing also limit them in the collapsed state menu when its expanded. Should I remove these limits?
  • It always appears collapsed despite setting a breakpoint. Might be user error on my part, I'm fiddling with it still.

kmcfaul force-pushed the table-attr-filter-demo branch from daeb674 to f479db8 Compare October 23, 2019 15:41

kmcfaul commented Oct 23, 2019

Copy link
Copy Markdown
Contributor Author

Talked with Nicole and rebased with the data toolbar changes. The responsive collapse and expansion is working now.

I removed the width styling for now, and scheduled a meeting to go over the chip group locations in the collapsed menu.

kmcfaul commented Oct 24, 2019

Copy link
Copy Markdown
Contributor Author

As this demo uses an experimental component, we are moving forward with this PR and will increment on it in the next release re: the chip group stacking in the collapsed menu.

Copy link
Copy Markdown
Contributor

And people are okay with an experimental component under Demos?

kmcfaul commented Oct 24, 2019

Copy link
Copy Markdown
Contributor Author

I believe that was what was decided after a recent standup. @tlabaj Can you confirm?

Copy link
Copy Markdown
Member

I wonder if this demo should be under Toolbar demo because in Core it is, and the reason for the demo was to show how the new toolbar works when filtering the table. If it sits under Table demo, I don't know what functionality of the table its demonstrating? Seems like its just demonstrating the filtering. Would be great to hear what @mcarrano thinks

Copy link
Copy Markdown
Member

This is tricky @christiemolloy . I discussed this with @kmcfaul and @nicolethoen in a meeting earlier today. Naming of demos is something that needs more thought in general, IMO. Should they be based on the thing being demonstrated (i.e. Toolbar) or the use case being demonstrated (i.e. Filtering). I don't know, but the naming will effect how easy it is for developers to find these. Not sure how the website search indexes these (or does it). Let's leave alone for now, but @rachael-phillips @LHinson I think this is a topic that should be on the radar for more discussion.

tlabaj added PF4 and removed Do Not Merge labels Oct 24, 2019

evwilkin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

mcarrano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good. Thanks for making those changes @kmcfaul

tlabaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants


Back | FazBrowse Home | New Git URL