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

Show the loading state when duplicates are loading. #2145

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

srbaker
Copy link
Collaborator

@srbaker srbaker commented Sep 19, 2024

Description

This PR shows the loading indicator when duplicates are being loaded.

Screenshots

I am nowhere near fast enough to pull this. Just trust me.

Changes

Adds the loading indicator when the duplicates are in a loading state.

Related issues

Resolves #2057

Copy link
Member

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

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

I've looked at the code and tried the preview build and I do think the code looks fine, but I'm missing a margin. See comment below. 👇


return (
<>
{filteredList.length === 0 && (
{duplicates.isLoading && (
<CircularProgress color="inherit" size="1.5rem" />
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this is missing a margin/padding around it. This is what it looks like when I throttle my connection to "3G" in order to slow down loading:

image

The next case (empty state) has a 2 unit margin. The last case (list) has a 1.5 unit padding. I'm thinking all three should probably be the same instead?

Also, maybe the circular loading indicator should be centered? Wrapping it in a box looking something like this should work:

<Box display="flex" justifyContent="center" m={2}>
  <CircularProgress />
</Box>

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.

Separate loading and empty states for Duplicates
2 participants