Page MenuHomePhabricator

[native] Show `ActivityIndicator` in `EditUserAvatar` during update
ClosedPublic

Authored by atul on Apr 19 2023, 11:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 11:51 PM
Unknown Object (File)
Mon, Apr 22, 5:57 AM
Unknown Object (File)
Mon, Apr 22, 5:57 AM
Unknown Object (File)
Mon, Apr 22, 5:56 AM
Unknown Object (File)
Mon, Apr 22, 5:54 AM
Unknown Object (File)
Mar 29 2024, 11:35 AM
Unknown Object (File)
Mar 7 2024, 6:11 AM
Unknown Object (File)
Mar 4 2024, 2:31 AM
Subscribers

Details

Summary

We consume isGalleryAvatarUpdateLoading and isRemoveAvatarUpdateLoading introduced in previous diffs to display ActivityIndicator (ie spinner) when an update is in progress.

Note: Yeah there are obvious things that can be factored out. I want to get more of the error handling stuff done first and then I'll go through and consolidate things.


Depends on D7528

Test Plan

Works as expected:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Apr 19 2023, 11:47 AM
atul edited the test plan for this revision. (Show Details)
atul added inline comments.
native/avatars/edit-user-avatar.react.js
50–52 ↗(On Diff #25383)

Stole this from LoadableImage

65–75 ↗(On Diff #25383)

I just stole this from LoadableImage

This revision is now accepted and ready to land.Apr 19 2023, 11:59 AM