Page MenuHomePhabricator

[native] add edit avatar badge to thread avatar
ClosedPublic

Authored by ginsu on Apr 10 2023, 12:46 PM.
Tags
None
Referenced Files
F3295209: D7378.id24926.diff
Sat, Nov 16, 9:20 PM
F3294735: D7378.diff
Sat, Nov 16, 7:58 PM
Unknown Object (File)
Wed, Nov 6, 3:29 AM
Unknown Object (File)
Tue, Nov 5, 4:51 AM
Unknown Object (File)
Tue, Nov 5, 4:51 AM
Unknown Object (File)
Tue, Nov 5, 4:51 AM
Unknown Object (File)
Tue, Nov 5, 4:51 AM
Unknown Object (File)
Sun, Oct 27, 2:19 AM
Subscribers

Details

Summary

add edit avatar badge to thread avatar. Most of this code was ported over from profile-screen.react.js; however, with thread avatars we need to make sure that this badge renders conditonally, since there are some threads where the user should not be allowed to edit thread avatar, whereas a user avatar can always be edited by the user

Depends on D7359

Test Plan

Please see the screenshots to see the changes I made:

Screenshot 2023-04-10 at 3.43.52 PM.png (1×1 px, 817 KB)

Personal Threads:

Screenshot 2023-04-10 at 3.44.15 PM.png (1×1 px, 813 KB)

Private Thread:

Screenshot 2023-04-10 at 3.44.02 PM.png (1×1 px, 819 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Apr 10 2023, 1:02 PM

Please do not land if this could potentially lead to us publishing a build that has a button that does nothing

native/chat/settings/thread-settings-avatar.react.js
23–24

It appears that this diff introduces a button that does nothing. Is this safe to land? Are you gating it some way, or are you going to wait to land it until this is addressed?

This revision is now accepted and ready to land.Apr 10 2023, 1:27 PM
native/chat/settings/thread-settings-avatar.react.js
23–24

Atm this entire component is gated behind the feature flag, and won't be rendered. Happy to hold off on landing tho until the stack is landed

native/chat/settings/thread-settings-avatar.react.js
23–24

Feature flag sounds good! Big point of the feature flags service was to make it easier for devs to land changes like this, so I think you should feel free to land