Skip to content

Conversation

@eho-send
Copy link
Contributor

No description provided.

eho-send and others added 3 commits January 15, 2026 20:13
Implements the image optimization system as specified in docs/specs/image-optimization-spec.md:

Infrastructure:
- Database migration for avatar_data and banner_data JSONB columns
- Temporal workflow processImage with activities for parallel variant processing
- tRPC endpoint profile.uploadImage to trigger workflow
- Size variants: avatars (xs/sm/md/lg/xl), banners (sm/md/lg)
- WebP + JPEG outputs with sharp processing

Client Integration:
- useUploadProfileImage hook with blurhash generation and polling
- BlurhashPlaceholder component (web Canvas + native expo-image)
- Avatar/banner URL helpers (getAvatarUrl, getBannerUrl, getProfileAvatarUrl)
- Updated ProfileAvatar to render blurhash preview during loading
- Updated UploadAvatar and UploadBanner to use new hook

UI Updates:
- AvatarMenuButton web now uses useUser internally (consistent with native)
- SendChat and SearchBar use getProfileAvatarUrl for avatar resolution
- MainLayout, TopNav, HomeSideBar, AccountHeader updated for new data

Note: Pre-existing TypeScript error in wagmi/constants.ts (missing contracts build artifact) - not related to this change.

Co-Authored-By: Claude <noreply@anthropic.com>
ISSUE-13: Native blurhash generation
- Native platforms now return a default placeholder blurhash instead of undefined
- Ensures pending state shows a blurred placeholder rather than blank
- Server still generates the actual blurhash from the uploaded image

ISSUE-14: Remaining avatar_url UI usages
- Updated SearchBarSend.tsx to use getProfileAvatarUrl
- Updated send/screen.tsx to use getProfileAvatarUrl
- These surfaces now properly prefer avatar_data variants over legacy avatar_url

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link

Vercel Unique URL: https://sendapp-a1wmavqyr-0xsend.vercel.app
Vercel Preview URL: sendapp-sendpot-ui-clean-up-0xsend.vercel.app
Last Commit: 0f12cdb

@github-actions
Copy link

Playwright Test Results

No test results available

No test results were found. This could be because tests failed to run or artifacts were not uploaded.

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.

2 participants