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(Table): Use direct imports instead of spread #1237

Merged
merged 2 commits into from
Jan 30, 2019

Conversation

karelhala
Copy link
Contributor

@karelhala karelhala commented Jan 24, 2019

What:

  • When using react table there is tons of warnings due to missing exports in patternfly next styles. That is caused by using spread instead of default import. It is much safer (but a bit less readable) to use direct imports.

  • Allow first row to be collapsible by checking undefined instead of casting Boolean.

  • Do not show select in collapsed child unless show checkbox is engorced on row.

@patternfly-build
Copy link
Contributor

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

@coveralls
Copy link

coveralls commented Jan 24, 2019

Pull Request Test Coverage Report for Build 4175

  • 4 of 4 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 80.352%

Totals Coverage Status
Change from base Build 4171: 0.04%
Covered Lines: 4557
Relevant Lines: 5336

💛 - Coveralls

jschuler
jschuler previously approved these changes Jan 24, 2019
ibolton336
ibolton336 previously approved these changes Jan 24, 2019
Copy link
Member

@ibolton336 ibolton336 left a comment

Choose a reason for hiding this comment

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

👍

kmcfaul
kmcfaul previously approved these changes Jan 24, 2019
tlabaj
tlabaj previously approved these changes Jan 24, 2019
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.

@karelhala Could you please resolve conflicts. Thanks.

@dmiller9911
Copy link
Contributor

Fyi the reason for this is that the styles plugin only exports a default object. This might be a good candidate for a lint rule since it has happened before.

@karelhala karelhala dismissed stale reviews from tlabaj, kmcfaul, ibolton336, and jschuler via f4a260d January 25, 2019 09:39
@karelhala karelhala force-pushed the update-pf4-table-direct-imports branch 3 times, most recently from f2e5824 to 61173b7 Compare January 25, 2019 13:58
jschuler
jschuler previously approved these changes Jan 25, 2019
jharting
jharting previously approved these changes Jan 28, 2019
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.

LGTM

@dgutride dgutride merged commit e799809 into patternfly:master Jan 30, 2019
dgutride pushed a commit that referenced this pull request Jan 31, 2019
* fix(Table): Use direct imports instead of spread (#1237)

* fix(Table): Use direct imports instead of spread

* Do not show selects for collapsed rows

* chore(release): releasing packages

 - patternfly4-react-lerna-root@1.42.4
 - @patternfly/react-docs@3.21.13
 - @patternfly/react-table@0.4.13

* fix(AboutModal): Use paragraph in heading (#1280)

In PF core heading types of AboutModal were updated.
This PR updates PF react with those changes.

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>

* chore(release): releasing packages

 - patternfly4-react-lerna-root@1.42.5
 - @patternfly/react-core@1.51.4
 - @patternfly/react-docs@3.21.14
 - @patternfly/react-integration@1.0.12
 - @patternfly/react-table@0.4.14

* Updated with core 167 updates

* Fixed broken unit test and updated base.css to include pficon

* Reverting the old toolbar.

* Added Toolbar Layout Back.

* Reverted Layout.

* fix(styles): add toolbar css back to layout temporarily

* fix(packages): add correct css include

* fix(css): update css file

* fix(import): move to tablecss

* fix(grid): add grid style modifier

* sort button

* rebase changes and console log

* fix(table): updated table

* fix(toolbar): trying to fix toolbar again

* snapshots
dgutride pushed a commit to dgutride/patternfly-react that referenced this pull request Feb 1, 2019
* fix(Table): Use direct imports instead of spread (patternfly#1237)

* fix(Table): Use direct imports instead of spread

* Do not show selects for collapsed rows

* chore(release): releasing packages

 - patternfly4-react-lerna-root@1.42.4
 - @patternfly/react-docs@3.21.13
 - @patternfly/react-table@0.4.13

* fix(AboutModal): Use paragraph in heading (patternfly#1280)

In PF core heading types of AboutModal were updated.
This PR updates PF react with those changes.

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>

* chore(release): releasing packages

 - patternfly4-react-lerna-root@1.42.5
 - @patternfly/react-core@1.51.4
 - @patternfly/react-docs@3.21.14
 - @patternfly/react-integration@1.0.12
 - @patternfly/react-table@0.4.14

* Updated with core 167 updates

* Fixed broken unit test and updated base.css to include pficon

* Reverting the old toolbar.

* Added Toolbar Layout Back.

* Reverted Layout.

* fix(styles): add toolbar css back to layout temporarily

* fix(packages): add correct css include

* fix(css): update css file

* fix(import): move to tablecss

* fix(grid): add grid style modifier

* sort button

* rebase changes and console log

* fix(table): updated table

* fix(toolbar): trying to fix toolbar again

* snapshots
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.

10 participants