Skip to content

Profile picture from Google or Discord, and image sync progress - #15

Merged
marcelorsdd merged 1 commit into
mainfrom
feat/avatar-image-sync
Nov 15, 2026
Merged

marcelorsdd merged 1 commit into
mainfrom
feat/avatar-image-sync

Conversation

@marcelorsdd

Copy link
Copy Markdown
Owner
  • Profile picture: when the Clerk account has a picture (Google or Discord sign-in), the header menu, the phone header and the profile hero show it; otherwise the initial stays. The server's CSP already allows img.clerk.com.
  • Image sync progress: new ImageSync type in contract/api.ts for the server's new GET /api/v1/images ({ total, stored }). While stored < total, the website polls it every 3 s, the sync badge and pill read "Sending images 16/83", the profile shows a card with a progress bar, and each new arrival refreshes the library queries so the images appear.
  • The server already returns null for image URLs it has not received (deployed separately), so they show the placeholder instead of a broken image.

Tests: web 77 (new cases for the pending-images and avatar helpers), typecheck, ESLint, Prettier.

@marcelorsdd
marcelorsdd merged commit ab4992e into main Nov 15, 2026
11 checks passed
@marcelorsdd
marcelorsdd deleted the feat/avatar-image-sync branch November 15, 2026 18:36
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