Pull out common functionality from Edit[User/Thread]Avatar and move to newly introduced avatar-hooks.js.
Added entry to editAvatarOptions in both components to consume this hook.
Depends on D7497
Paths
| Differential D7498 Authored by atul on Apr 18 2023, 12:27 PM.
Details Summary Pull out common functionality from Edit[User/Thread]Avatar and move to newly introduced avatar-hooks.js. Added entry to editAvatarOptions in both components to consume this hook. Depends on D7497 Test Plan
Diff Detail
Event TimelineHerald added a subscriber: tomek. · View Herald TranscriptApr 18 2023, 12:27 PM2023-04-18 12:27:58 (UTC-7)
atul attached a referenced file: F494242: c8ad87.png. (Show Details)Apr 18 2023, 12:42 PM2023-04-18 12:42:22 (UTC-7) Harbormaster completed remote builds in B18472: Diff 25298.Apr 18 2023, 12:45 PM2023-04-18 12:45:29 (UTC-7) Comment Actions Assuming this is a clean refactor so only skimmed it
This revision is now accepted and ready to land.Apr 18 2023, 1:14 PM2023-04-18 13:14:28 (UTC-7) Closed by commit rCOMMefe9eb49757d: [native] Pull `useSelectAndUploadFromGallery` out of `Edit[User/Thread]Avatar` (authored by atul). · Explain WhyApr 18 2023, 1:20 PM2023-04-18 13:20:35 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 25307 native/avatars/avatar-hooks.js
native/avatars/edit-thread-avatar.react.js
native/avatars/edit-user-avatar.react.js
|
Do we really need one-offs here? Why can't we find an existing color family that works with our designs?
We need to push the team (@tedchang in particular) to use existing families (and update them as necessary) instead of hacking around inconsistencies like this. When we take this sort of approach of picking colors on a per-screen basis, we fail to maintain stylistic / design consistency throughout the app