Skip to content

feat: Improve empty states for workspaces and templates#1950

Merged
BrunoQuaresma merged 15 commits into
mainfrom
bq/improve-empty-state
Jun 1, 2022
Merged

feat: Improve empty states for workspaces and templates#1950
BrunoQuaresma merged 15 commits into
mainfrom
bq/improve-empty-state

Conversation

@BrunoQuaresma

Copy link
Copy Markdown
Contributor

Comment thread site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx
Comment thread site/src/components/CodeExample/CodeExample.tsx
Comment thread site/src/pages/WorkspacesPage/WorkspacesPageView.tsx Outdated
Comment on lines +9 to +10
className?: string
buttonClassName?: string

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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.

Comment thread site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx
Comment thread site/src/pages/TemplatesPage/TemplatesPageView.tsx Outdated
Comment thread site/src/pages/TemplatesPage/TemplatesPageView.tsx Outdated
Comment thread site/src/pages/WorkspacesPage/WorkspacesPageView.tsx Outdated
@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