Skip to content

fix(web): stabilize image preview loading - #150

Merged
iamjr15 merged 1 commit into
mainfrom
fix/image-preview-auth-stability
Aug 4, 2026
Merged

fix(web): stabilize image preview loading#150
iamjr15 merged 1 commit into
mainfrom
fix/image-preview-auth-stability

Conversation

@iamjr15

@iamjr15 iamjr15 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep the current auth-token reader behind a ref so preview loading does not restart on render.
  • Bound both capability exchange and object download to a 30-second preview timeout.

Production finding

The initial deployment correctly opened the generated JPEG in Files, but its inline card remained on Preparing preview because the loading render changed the auth callback dependency and aborted the request before network dispatch.

Checks

  • Targeted Biome check
  • Web TypeScript check
  • Production inline preview, modal, and download validation after deployment

Keep the latest auth callback behind a ref so loading-state renders do not abort previews.
Bound the signed object fetch to 30 seconds.
@iamjr15
iamjr15 merged commit 17665da into main Aug 4, 2026
4 checks passed
@iamjr15
iamjr15 deleted the fix/image-preview-auth-stability branch August 4, 2026 10:23
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.

1 participant