-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
FrontendFrontend Related IssueFrontend Related IssueNew FeatureNew feature to be implementedNew feature to be implementedUX/UI ChangeHighlights changes affecting user experience or interface designHighlights changes affecting user experience or interface design📥IceboxNot a current priority but kept for future referenceNot a current priority but kept for future reference
Milestone
Description
Description
Integrate the avatar management backend with the frontend to allow users to upload, update, and display their avatars. This includes updating the existing profile page to fetch and display the avatar and adding functionality for uploading a new avatar.
Tasks
-
Fetch and Display Avatar:
- Connect the profile page to the backend
GETendpoint to fetch theavatar_url. - Display the user's avatar or a default placeholder if no avatar exists.
- Connect the profile page to the backend
-
Upload and Update Avatar:
- Add a file input or drag-and-drop area for users to select and upload an avatar.
- Connect the input to the backend
POSTendpoint for uploading/updating avatars. - Show a loading indicator during the upload process.
- Update the displayed avatar dynamically after a successful upload.
-
UI Updates:
- Ensure the UI design aligns with the current profile page aesthetic.
- Add error handling for failed uploads (e.g., invalid file type, server errors) using toasts or inline error messages.
- Display a confirmation message or toast upon successful upload.
-
Edge Cases:
- Handle cases where the user cancels an upload.
- Prevent users from uploading files exceeding the allowed size or unsupported formats.
Notes
- Ensure the avatar upload logic integrates with the backend endpoints developed in (Implement Backend for User Avatar Management #148).
- Use the existing design system components for inputs, toasts, and loading indicators.
Metadata
Metadata
Assignees
Labels
FrontendFrontend Related IssueFrontend Related IssueNew FeatureNew feature to be implementedNew feature to be implementedUX/UI ChangeHighlights changes affecting user experience or interface designHighlights changes affecting user experience or interface design📥IceboxNot a current priority but kept for future referenceNot a current priority but kept for future reference