Skip to content

[Enhancement] User avatar upload has no progress indicator or retry mechanism #830

Description

@RUKAYAT-CODER

Overview

The profile avatar upload flow uses a fire-and-forget API call. There is no upload progress indicator, no retry on failure, and no way for the user to know if their upload succeeded or failed.

Specifications

Features:

  • Use multipart upload with progress tracking via the Axios onUploadProgress callback
  • Show a circular progress indicator on the avatar while uploading
  • Retry the upload up to 3 times on failure with exponential backoff

Tasks:

  • Add onUploadProgress to the avatar upload API call
  • Show progress in the avatar component
  • Add retry logic
  • Write a test for the retry flow

Impacted Files:

  • src/screens/profile/ProfileScreen.tsx
  • src/api/user.ts

Acceptance Criteria

  • Upload progress shown in real time
  • Upload retried up to 3 times on network failure
  • Success/failure toasts shown after completion

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions