Home

madison / open-git

public
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(web): let people upload a profile photo during onboarding

2 months ago

235ea0b
Authored
VC7/27/2026, 5:14:40 AM
Avatar bytes live in their own `user_avatars` table rather than a column
on `user_profiles`: that row is read on nearly every request, and widening
it with image data would drag the bytes along for the ride. A serve route
reads them, and `avatar_url` points at it with a `?v=` stamp so a new
upload busts the cache without a schema change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Parent01c4022

7 files changed
  • apps/web/app/api/viewer/avatar/[profileId]/route.ts+46−0
  • apps/web/app/api/viewer/avatar/route.ts+135−0
  • apps/web/app/onboarding/onboarding-identity-preview.tsx+245−15
  • apps/web/db/schema.ts+432−272
  • apps/web/drizzle/0050_clumsy_fat_cobra.sql+8−0
  • apps/web/drizzle/meta/0050_snapshot.json+9438−0
  • apps/web/drizzle/meta/_journal.json+7−0