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(charts): skeletons #10311

Merged
merged 2 commits into from
May 3, 2024
Merged

feat(charts): skeletons #10311

merged 2 commits into from
May 3, 2024

Conversation

dlabrecq
Copy link
Member

@dlabrecq dlabrecq commented Apr 27, 2024

The UX design team wants to show chart skeletons in place of a generic empty state.

I created a new theme to fill-in all labels grey, but also removed chart interactions like tooltips, cursors, etc.
Developers can provide their own fake data to represent their graphs or copy the examples provided.

For UX design and mocks, please see #10310

Examples
https://patternfly-react-pr-10311.surge.sh/charts/skeletons

Screenshot 2024-04-27 at 4 25 28 PM

@patternfly-build
Copy link
Contributor

patternfly-build commented Apr 27, 2024

@tiyiprh
Copy link

tiyiprh commented Apr 29, 2024

This looks great! Thanks so much!

@andrew-ronaldson andrew-ronaldson self-requested a review May 1, 2024 13:31
Copy link
Collaborator

@andrew-ronaldson andrew-ronaldson left a comment

Choose a reason for hiding this comment

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

Looks good.
We'll need to create a follow up issue for v6 tokens in Design and dev repos.
Thanks for running with this Dan!

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

Very cool!

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.

Just one little nit

import chart_bullet_qualitative_range_ColorScale_400 from '@patternfly/react-tokens/dist/esm/chart_bullet_qualitative_range_ColorScale_400';
import chart_bullet_qualitative_range_ColorScale_500 from '@patternfly/react-tokens/dist/esm/chart_bullet_qualitative_range_ColorScale_500';

// import global_Color_100 from '@patternfly/react-tokens/dist/esm/global_Color_100';
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this commented code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

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.

LGTM

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

@tlabaj tlabaj merged commit 029351e into patternfly:main May 3, 2024
13 checks passed
@dlabrecq dlabrecq deleted the skeletons branch May 6, 2024 19:04
@tlabaj tlabaj mentioned this pull request May 8, 2024
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.

7 participants