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

feat(DataList): expose grid modifiers as properties #4969

Merged
merged 1 commit into from Oct 26, 2020

Conversation

KKoukiou
Copy link
Collaborator

@KKoukiou KKoukiou commented Oct 7, 2020

Closes #4965

@patternfly-build
Copy link
Contributor

patternfly-build commented Oct 7, 2020

@codecov-io
Copy link

codecov-io commented Oct 7, 2020

Codecov Report

Merging #4969 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4969   +/-   ##
=======================================
  Coverage   52.15%   52.15%           
=======================================
  Files         530      530           
  Lines        9769     9770    +1     
  Branches     3597     3597           
=======================================
+ Hits         5095     5096    +1     
  Misses       4013     4013           
  Partials      661      661           
Flag Coverage Δ
#patternfly4 52.15% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...es/react-core/src/components/DataList/DataList.tsx 25.00% <100.00%> (+0.65%) ⬆️

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 5e9106b...1953c2e. Read the comment docs.

import { PickOptional } from '../../helpers/typeUtils';

export enum DataListGridBreakpoint {
gridNone = 'grid-none',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I need to expose grid as well here
#4965 (comment)

@KKoukiou KKoukiou marked this pull request as draft October 7, 2020 15:29
@KKoukiou KKoukiou marked this pull request as ready for review October 8, 2020 08:24
dlabrecq
dlabrecq previously approved these changes Oct 13, 2020
Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @KKoukiou 🥳

mcoker
mcoker previously approved these changes Oct 13, 2020
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

Can you please also update the demo app and integration test to check all breakpoints. We have had cases in the past where the breakpoints were not being applied as expected.

import { PickOptional } from '../../helpers/typeUtils';

export enum DataListGridBreakpoint {
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't have to export an enum (strings work just fine), but if you do, make sure to add it to the gridBreakPoint type in DataListProps.

packages/react-core/src/components/DataList/DataList.tsx Outdated Show resolved Hide resolved
@KKoukiou KKoukiou dismissed stale reviews from mcoker and dlabrecq via 60686fc October 19, 2020 09:24
@KKoukiou KKoukiou force-pushed the issue-4965 branch 3 times, most recently from bc7e7e5 to 25c100d Compare October 19, 2020 10:08
Copy link
Contributor

@redallen redallen left a comment

Choose a reason for hiding this comment

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

Looks great!! One small nit left

packages/react-core/src/components/DataList/DataList.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@redallen redallen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @KKoukiou !

@KKoukiou KKoukiou merged commit 7e26b4e into patternfly:master Oct 26, 2020
@KKoukiou KKoukiou deleted the issue-4965 branch October 26, 2020 08:17
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-catalog-view-extension@4.8.87
  • @patternfly/react-core@4.75.0
  • @patternfly/react-datetime@4.2.32
  • @patternfly/react-docs@5.10.47
  • @patternfly/react-inline-edit-extension@4.5.145
  • demo-app-ts@4.58.2
  • @patternfly/react-table@4.19.3
  • @patternfly/react-topology@4.6.52
  • @patternfly/react-virtualized-extension@4.5.132

Thanks for your contribution! 🎉

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.

Data list - allow user to specify the breakpoint for switching between desktop and mobile layout
7 participants