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: add EmptyStateErrorMessage and update a11y test dependency #64

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

nicolethoen
Copy link
Contributor

Closes #27

@patternfly-build
Copy link

patternfly-build commented Nov 8, 2024

Copy link
Collaborator

@adamviktora adamviktora left a comment

Choose a reason for hiding this comment

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

I am now looking at component groups and wondering if this component is necessary to introduce, given that there already is ErrorState / MissingPage /... and these other EmptyState use cases.

Also I am not sure whether the <Stack> should be used, it creates this giant space between the title and body

children,
}: EmptyStateErrorMessageProps) => (
<EmptyState headingLevel="h2" icon={PathMissingIcon} titleText={title}>
<EmptyStateFooter>
Copy link
Collaborator

Choose a reason for hiding this comment

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

The EmptyStateFooter probably shouldn't be here. I think it is a result of an old codemod I wrote one and a half year ago that did some stuff it shouldn't

bodyText,
children,
}: EmptyStateErrorMessageProps) => (
<EmptyState headingLevel="h2" icon={PathMissingIcon} titleText={title}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could the icon / headingLevel maybe be configurable with a prop? I see it isn't currently in the odh-dashboard, but for future use cases

@nicolethoen
Copy link
Contributor Author

I am now looking at component groups and wondering if this component is necessary to introduce, given that there already is ErrorState / MissingPage /... and these other EmptyState use cases.

That gives me an idea - let me take a second stab at this

@nicolethoen
Copy link
Contributor Author

Once this component-groups issue gets resolved, we can use this component rather than reexport that component here (to make sure the API matches the old implementation in RHOAI

Copy link
Collaborator

@adamviktora adamviktora 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! 🎉

@nicolethoen nicolethoen merged commit 5e8d74f into main Nov 21, 2024
5 checks passed
Copy link

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EmptyStateErrorMessage - migrate from ODH and document API
3 participants