Skip to content

Conversation

@claudemyburgh
Copy link
Member

This commit updates the avatar upload component to use the Avatar component, which provides a fallback mechanism for when the avatar image is not available.

The User model has been updated to expose the avatar attribute as an accessor, ensuring it's always available in the frontend components. The backend will provide a fallback URL from ui-avatars.com if the user has not uploaded an avatar.

The avatar-upload.tsx component has been updated to use the Avatar component for consistency with the rest of the application.

The useInitials hook is used for the fallback. This hook is already present in the codebase.

This commit updates the avatar upload component to use the `Avatar` component, which provides a fallback mechanism for when the avatar image is not available.

The `User` model has been updated to expose the `avatar` attribute as an accessor, ensuring it's always available in the frontend components. The backend will provide a fallback URL from `ui-avatars.com` if the user has not uploaded an avatar.

The `avatar-upload.tsx` component has been updated to use the `Avatar` component for consistency with the rest of the application.

The `useInitials` hook is used for the fallback. This hook is already present in the codebase.
@claudemyburgh claudemyburgh merged commit bf98264 into main Sep 19, 2025
1 of 2 checks passed
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