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(EmptyState): Convert empty state to TypeScript #1917

Merged
merged 2 commits into from
May 17, 2019

Conversation

rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented May 2, 2019

Refactored empty state to TypeScript.

Fixes #1991.

@rebeccaalpert rebeccaalpert added enhancement 🚀 PF4 React issues for the PF4 core effort labels May 2, 2019
@patternfly-build
Copy link
Contributor

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

@codecov-io
Copy link

codecov-io commented May 2, 2019

Codecov Report

Merging #1917 into master will decrease coverage by <.01%.
The diff coverage is 89.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1917      +/-   ##
==========================================
- Coverage   81.84%   81.84%   -0.01%     
==========================================
  Files         628      628              
  Lines        7112     7139      +27     
  Branches      236      243       +7     
==========================================
+ Hits         5821     5843      +22     
  Misses       1163     1163              
- Partials      128      133       +5
Flag Coverage Δ
#patternfly3 84.88% <ø> (ø) ⬆️
#patternfly4 77.83% <89.13%> (+0.03%) ⬆️
#patternflymisc 95.68% <ø> (ø) ⬆️
Impacted Files Coverage Δ
...mponents/EmptyState/EmptyStateSecondaryActions.tsx 75% <75%> (ø)
...-core/src/components/EmptyState/EmptyStateBody.tsx 87.5% <87.5%> (ø)
...-core/src/components/EmptyState/EmptyStateIcon.tsx 92.3% <92.3%> (ø)
...eact-core/src/components/EmptyState/EmptyState.tsx 94.11% <94.11%> (ø)

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 883bea4...15e9fab. Read the comment docs.

@nicolethoen
Copy link
Contributor

@rebeccaalpert can you also add integration tests for this component as outlined on this README?

@rebeccaalpert
Copy link
Member Author

Added test/demo and addressed PR feedback.

Copy link
Contributor

@dlabaj dlabaj 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. Thanks!

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

}
}

export default EmptyStateDemo;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove export default

@dlabaj dlabaj dismissed redallen’s stale review May 17, 2019 20:19

Rebecca updated with comments.

@dlabaj dlabaj merged commit 1fb9934 into patternfly:master May 17, 2019
@rebeccaalpert rebeccaalpert deleted the empty-typescript branch May 28, 2019 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore 🏠 PF4 React issues for the PF4 core effort TypeScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert Empty State to Typescript
7 participants