Page MenuHomePhabricator

Consolidate `[Web/Native/Base]EditUserAvatarProvider` into `BaseEditUserAvatarProvider`
ClosedPublic

Authored by atul on Jun 27 2023, 6:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 8:33 AM
Unknown Object (File)
Thu, Jun 27, 4:25 AM
Unknown Object (File)
Thu, Jun 27, 2:04 AM
Unknown Object (File)
Wed, Jun 26, 9:16 AM
Unknown Object (File)
Wed, Jun 26, 3:31 AM
Unknown Object (File)
Mon, Jun 24, 2:48 PM
Unknown Object (File)
Sun, Jun 23, 1:27 PM
Unknown Object (File)
Thu, Jun 20, 5:11 AM
Subscribers

Details

Summary

As of this diff all of the platform-specific functionality has been moved out of BaseEditUserAvatarProvider, which allows us to consolidate the three previous providers into one.

This concludes most of the refactoring work aimed at decoupling avatar-hooks and *AvatarProviders.

Next diff will involve renaming BaseEditUserAvatarProvider to EditUserAvatarProvider (was initially supposed to be part of this diff, but all the import changes and whatnot made it messy)


Depends on D8346

Test Plan

Still able to update avatars as expected on both native and web.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jun 27 2023, 6:27 PM
atul retitled this revision from Consolidate `[Web/Native/Base]EditUserAvatarProvider` into `EditUserAvatarProvider` to Consolidate `[Web/Native/Base]EditUserAvatarProvider` into `BaseEditUserAvatarProvider`.
atul edited the summary of this revision. (Show Details)
rohan added inline comments.
lib/components/base-edit-user-avatar-provider.react.js
54–56 ↗(On Diff #28200)

Is this removed here from the changes made in D8346 where you remove useUploadSelectedMedia usages?

This revision is now accepted and ready to land.Jun 28 2023, 10:13 AM
lib/components/base-edit-user-avatar-provider.react.js
54–56 ↗(On Diff #28200)

Yup, this change probably could have (and should have) been made there.

address merge conflicts and land

This revision was landed with ongoing or failed builds.Jul 28 2023, 2:13 PM
This revision was automatically updated to reflect the committed changes.