Skip to content

Conversation

@ryan953
Copy link
Member

@ryan953 ryan953 commented Apr 11, 2024

SCR-20240411-nzaf

Avatar list is kinda weird, it sticks out to the left:
SCR-20240411-nzka

Relates to https://github.com/getsentry/team-replay/issues/19
Relates to #64924

Depends on #68990

@ryan953 ryan953 requested a review from a team as a code owner April 11, 2024 23:20
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 11, 2024
@codecov
Copy link

codecov bot commented Apr 11, 2024

Bundle Report

Changes will increase total bundle size by 714 bytes ⬆️

Bundle name Size Change
sentry-webpack-bundle-array-push 26.3MB 714 bytes ⬆️

Copy link
Member

@michellewzhang michellewzhang left a comment

Choose a reason for hiding this comment

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

should we check for isErroror isLoading in the useApiQuery call or is that not needed here?

@ryan953
Copy link
Member Author

ryan953 commented Apr 15, 2024

should we check for isErroror isLoading in the useApiQuery call or is that not needed here?

I didn't deal with isError because I didn't really know what to tell the user :(. We could offer a retry button, but it's a small part of the page so idk if that's just distracting or calling too much attention to it. Open to ideas though.

As for loading, it'll just render once we have data. So we don't need to check the other field.

@michellewzhang
Copy link
Member

I didn't deal with isError because I didn't really know what to tell the user :(. We could offer a retry button, but it's a small part of the page so idk if that's just distracting or calling too much attention to it. Open to ideas though.

that's a good point. placeholder makes sense as a subtle default here, which i think you've already done 👍

@billyvg
Copy link
Member

billyvg commented Apr 15, 2024

should we check for isErroror isLoading in the useApiQuery call or is that not needed here?

I didn't deal with isError because I didn't really know what to tell the user :(. We could offer a retry button, but it's a small part of the page so idk if that's just distracting or calling too much attention to it. Open to ideas though.

As for loading, it'll just render once we have data. So we don't need to check the other field.

We have a "mini" error boundary component I think, but I agree that this is a small part of the page and not a deal breaker if it's broken (as long as its logged to Sentry)

@ryan953
Copy link
Member Author

ryan953 commented Apr 15, 2024

We have a "mini" error boundary component I think, but I agree that this is a small part of the page and not a deal breaker if it's broken (as long as its logged to Sentry)

Added logging. The mini variant is still a bit big. But we can iterate on it too depending on how often it happens.

@ryan953
Copy link
Member Author

ryan953 commented Apr 17, 2024

should we check for isErroror isLoading in the useApiQuery call or is that not needed here?

@michellewzhang you were right about this. I think the tests in CI are trying to assert that the placeholder goes away, but with the setup i had before they could be there forever. Now it's checking for isLoaded, and if it's loaded we'll remove the placeholder for sure, and render 0 or more avatars.

@ryan953 ryan953 merged commit 9765e40 into master Apr 17, 2024
@ryan953 ryan953 deleted the ryan953/68743-viewed-by-replay-details branch April 17, 2024 21:16
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants