Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: Improve the load state for the list pages #1428

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

Merged
merged 10 commits into from
May 13, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

  • The old loading state was blocking the full page and it was not looking quite good so I fixed it as a brain break
  • Updated WorkspacesPage and WorkspacePage to use not use the custom Table component and created the components WorkspacesTable and TemplatesTable with related storybooks covering the empty, default and loading states so we can trust on storybook to test them for us.
  • I also made some minor updates in the EmptyState to looks slightly better.

@BrunoQuaresma BrunoQuaresma self-assigned this May 13, 2022
@BrunoQuaresma BrunoQuaresma requested review from presleyp and a team as code owners May 13, 2022 17:03
@codecov
Copy link

codecov bot commented May 13, 2022

Codecov Report

Merging #1428 (f52bb68) into main (9410237) will decrease coverage by 0.08%.
The diff coverage is 27.65%.

@@            Coverage Diff             @@
##             main    #1428      +/-   ##
==========================================
- Coverage   67.26%   67.18%   -0.09%     
==========================================
  Files         288      291       +3     
  Lines       19422    19452      +30     
  Branches      244      258      +14     
==========================================
+ Hits        13065    13068       +3     
- Misses       5019     5046      +27     
  Partials     1338     1338              
Flag Coverage Δ
unittest-go-macos-latest 54.17% <ø> (+0.06%) ⬆️
unittest-go-postgres- 65.68% <ø> (-0.07%) ⬇️
unittest-go-ubuntu-latest 56.65% <ø> (+0.04%) ⬆️
unittest-go-windows-2022 52.60% <ø> (-0.04%) ⬇️
unittest-js 74.73% <27.65%> (-0.54%) ⬇️
Impacted Files Coverage Δ
...e/src/components/TemplatesTable/TemplatesTable.tsx 0.00% <0.00%> (ø)
...src/components/WorkspacesTable/WorkspacesTable.tsx 0.00% <0.00%> (ø)
...ges/OrganizationPage/TemplatePage/TemplatePage.tsx 0.00% <0.00%> (ø)
site/src/pages/TemplatesPages/TemplatesPage.tsx 0.00% <0.00%> (ø)
site/src/pages/UsersPage/UsersPageView.tsx 94.44% <ø> (ø)
site/src/xServices/users/usersXService.ts 72.91% <ø> (ø)
site/src/pages/UsersPage/UsersPage.tsx 91.42% <70.00%> (+4.58%) ⬆️
site/src/components/UsersTable/UsersTable.tsx 96.55% <85.71%> (+0.55%) ⬆️
site/src/components/EmptyState/EmptyState.tsx 100.00% <100.00%> (+14.28%) ⬆️
site/src/components/Loader/FullScreenLoader.tsx 100.00% <100.00%> (ø)
... and 12 more

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 9410237...f52bb68. Read the comment docs.

@BrunoQuaresma
Copy link
Collaborator Author

BrunoQuaresma commented May 13, 2022

Close #1434


{users.length === 0 && (
{users && users.length === 0 && (
Copy link
Member

Choose a reason for hiding this comment

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

Maybe next time we're in here, we can break this file apart a bit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure thing.

Copy link
Member

@Kira-Pilot Kira-Pilot left a comment

Choose a reason for hiding this comment

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

Nice job! This looks good to me.

@BrunoQuaresma BrunoQuaresma merged commit 50ad2f8 into main May 13, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/refactor-full-page-loader-design branch May 13, 2022 19:12
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
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.

3 participants