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
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:
onUploadProgresscallbackTasks:
onUploadProgressto the avatar upload API callImpacted Files:
src/screens/profile/ProfileScreen.tsxsrc/api/user.tsAcceptance Criteria