Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

This PR unifies the toast notifications for profile and password updates using the sonner component and improves the avatar display by ensuring a consistent fallback mechanism and preventing the image from being stretched.


PR created automatically by Jules for task 1677866934729211729

This commit introduces two main improvements:

1.  **Unified Toast Notifications:**
    The success notifications on the profile and password update pages have been unified to use the `sonner` toast component. This replaces the simple text-based message and provides a more modern and consistent user experience across the application.

2.  **Improved Avatar Display:**
    - The `User` model has been updated to use an accessor for the `avatar` attribute. This ensures that a valid avatar URL is always available, with a fallback to `ui-avatars.com` if the user has not uploaded a custom avatar.
    - The `avatar-upload.tsx` component has been updated to use the `Avatar` component, which is consistent with other parts of the application and provides a better fallback mechanism.
This commit introduces two main improvements:

1.  **Unified Toast Notifications:**
    The success notifications on the profile and password update pages have been unified to use the `sonner` toast component. This replaces the simple text-based message and provides a more modern and consistent user experience across the application.

2.  **Improved Avatar Display:**
    - The `User` model has been updated to use an accessor for the `avatar` attribute. This ensures that a valid avatar URL is always available, with a fallback to `ui-avatars.com` if the user has not uploaded a custom avatar.
    - The `avatar-upload.tsx` component has been updated to use the `Avatar` component, which is consistent with other parts of the application and provides a better fallback mechanism.
    - The `AvatarImage` component now uses `object-cover` to prevent the avatar from being stretched.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

@claudemyburgh claudemyburgh marked this pull request as ready for review September 19, 2025 15:00
@claudemyburgh claudemyburgh merged commit 711bd8f into main Sep 19, 2025
1 of 2 checks passed
@claudemyburgh claudemyburgh deleted the feature/avatar-upload-fix branch September 19, 2025 15:02
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