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: Improve empty states for workspaces and templates #1950

Merged
merged 15 commits into from
Jun 1, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

Comment on lines +9 to +10
className?: string
buttonClassName?: string
Copy link
Contributor

Choose a reason for hiding this comment

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

Thought: One thing to consider here is mimicking MUIs API.

These use a classes object, so it would look like this:

<CodeExample classes={{ root: ..., button: ..., }} />

I'm adding this as a thought because it's not required to do anything now, just wanted to pose the question.

Might make sense as a FE V topic.

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 agree with you, but I see some components are already using the pattern elementClassName so I just keep it for consistency but IMO, we should try to use the classes prop to keep parity with MUIs API.

site/src/pages/TemplatesPage/TemplatesPageView.tsx Outdated Show resolved Hide resolved
site/src/pages/TemplatesPage/TemplatesPageView.tsx Outdated Show resolved Hide resolved
site/src/pages/WorkspacesPage/WorkspacesPageView.tsx Outdated Show resolved Hide resolved
@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) June 1, 2022 16:54
@BrunoQuaresma BrunoQuaresma merged commit b85de3e into main Jun 1, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/improve-empty-state branch June 1, 2022 17:32
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.

Display informative message when there is no workspaces or templates
5 participants