Skip to content

Integrate Avatar Management with Frontend #149

@mahid797

Description

@mahid797

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 GET endpoint to fetch the avatar_url.
    • Display the user's avatar or a default placeholder if no avatar exists.
  • 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 POST endpoint 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

Metadata

Metadata

Assignees

Labels

FrontendFrontend Related IssueNew FeatureNew feature to be implementedUX/UI ChangeHighlights changes affecting user experience or interface design📥IceboxNot a current priority but kept for future reference

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions