Skip to content
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

fix(CatalogTileView): Support tiles without categories. #977

Merged
merged 1 commit into from
Nov 29, 2018

Conversation

jeff-phillips-18
Copy link
Member

Currently if tiles are added to the tile view and are not in a category they are displayed in a single tile per row rather than wrapped as they are when they are in a category.

This PR allows the caller to specify that categories are not used and will wrap the child tiles.

@patternfly-build
Copy link
Contributor

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

@coveralls
Copy link

coveralls commented Nov 28, 2018

Pull Request Test Coverage Report for Build 3411

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.098%

Totals Coverage Status
Change from base Build 3402: 0.0%
Covered Lines: 3952
Relevant Lines: 4550

💛 - Coveralls


if (item.approved) {
badges.push(
<CatalogTile.Badge key="certified" title="USDA Approved" id="approved">
Copy link
Contributor

Choose a reason for hiding this comment

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

nit but i would order these the same as the certified badge - key/id/title
also is 'USDA' intended? would've thought simply Approved would be better

mfrances17
mfrances17 previously approved these changes Nov 28, 2018
Copy link
Contributor

@mfrances17 mfrances17 left a comment

Choose a reason for hiding this comment

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

LGTM

dtaylor113
dtaylor113 previously approved these changes Nov 29, 2018
Copy link
Member

@dtaylor113 dtaylor113 left a comment

Choose a reason for hiding this comment

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

LGTM, extra credit if update CatalogTileView.test.js for this new property.

@jeff-phillips-18
Copy link
Member Author

Went for the extra-credit. @dtaylor113 @mfrances17 please take another look.

Copy link
Member

@dtaylor113 dtaylor113 left a comment

Choose a reason for hiding this comment

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

110% love it! -thanks

@mfrances17 mfrances17 merged commit 134af90 into patternfly:master Nov 29, 2018
@jeff-phillips-18 jeff-phillips-18 deleted the catalog-tile-view branch May 12, 2022 11:59
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.

5 participants