-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/thumbnail loading placeholder #268
Conversation
styles.fileThumbnail, | ||
styles.thumbnailPlaceholder | ||
)} | ||
style={{ height: props.height, width: props.width }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this default to being a square if one of the fields is present but not the other? Like so:
style={{ height: props.height || props.width, width: props.width || props.height }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved in 478fbd2
let attempt = 0; | ||
while (attempt < retries) { | ||
try { | ||
return await withTimeout(fn(), timeout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of the timeout here. Does it help the callstack avoid getting overloaded somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what i can tell some async requests in the zarr render dont register as failures, This just says if its taking too long count it as a failure.
Description
The purpose of this PR is to resolve #161 and add a loading state to thumbnails that we are rendering. In the course of this PR the following logic was added:
SCREENSHOTS
Small icon loading
Failed Zarr (top left corner)