Page MenuHomePhabricator

[web] add Tag Farcaster channel option to CommunityActionsMenu
ClosedPublic

Authored by ginsu on Jun 24 2024, 11:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 3:41 AM
Unknown Object (File)
Wed, Nov 13, 3:41 AM
Unknown Object (File)
Wed, Nov 13, 3:41 AM
Unknown Object (File)
Wed, Nov 13, 3:41 AM
Unknown Object (File)
Sun, Nov 10, 12:09 AM
Unknown Object (File)
Sat, Nov 9, 7:45 PM
Unknown Object (File)
Sat, Nov 9, 2:19 PM
Unknown Object (File)
Wed, Nov 6, 2:05 AM
Subscribers

Details

Summary

This diff simply adds the Tag Farcaster channel option to the CommunityActionsMenu if the conditions are met (user has fid, they have the necessary permissions, and the community is not a GENESIS community)

Depends on D12567

Test Plan

Confirmed that this option is only present if the conditions mentioned above are met. Also please see screenshot below

Screenshot 2024-06-25 at 2.24.56 AM.png (534×746 px, 38 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This diff contains copy that needs to be reviewed

web/components/community-actions-menu.react.js
109 ↗(On Diff #41676)

This copy needs to be reviewed

110 ↗(On Diff #41676)

Not sure if this icon is good, but it felt like the best one from the SWM icon pack

https://www.figma.com/design/wGdM1Yajw9nUS0HU0OYorC/SWM-Icon-Pack-(Community)?node-id=202-304&t=XdortD2fRM1PZV4N-1

ashoat requested changes to this revision.Jun 27 2024, 1:20 PM

Passing back to factor out the check. We should avoid copy-pasting code, especially when it's related to things like permissions. It makes it way more likely that somebody fails to update some copy-pasted conditional at a later point

web/components/community-actions-menu.react.js
55–58 ↗(On Diff #41676)

Does this check exist anywhere else, eg. native? If so, can you factor it out please?

110 ↗(On Diff #41676)

Do we have a similar need for an icon on native, and if so what icon we're using?

This revision now requires changes to proceed.Jun 27 2024, 1:20 PM
web/components/community-actions-menu.react.js
110 ↗(On Diff #41676)
This revision is now accepted and ready to land.Jul 1 2024, 4:17 PM
This revision was landed with ongoing or failed builds.Jul 2 2024, 1:44 PM
This revision was automatically updated to reflect the committed changes.