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)
Sat, Nov 23, 1:20 PM
Unknown Object (File)
Nov 15 2024, 3:36 PM
Unknown Object (File)
Nov 13 2024, 5:21 PM
Unknown Object (File)
Nov 11 2024, 5:39 PM
Unknown Object (File)
Nov 7 2024, 2:31 PM
Unknown Object (File)
Oct 28 2024, 11:10 AM
Unknown Object (File)
Oct 27 2024, 10:32 AM
Unknown Object (File)
Oct 27 2024, 10:32 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
Branch
arcpatch-D8347 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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.