Page MenuHomePhabricator

[native] Show a menu button next to each role except admins
ClosedPublic

Authored by rohan on Jul 17 2023, 10:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 7:24 AM
Unknown Object (File)
Tue, Nov 26, 5:39 AM
Unknown Object (File)
Sat, Nov 23, 12:50 PM
Unknown Object (File)
Thu, Nov 7, 7:59 PM
Unknown Object (File)
Thu, Nov 7, 4:46 PM
Unknown Object (File)
Oct 16 2024, 9:17 PM
Unknown Object (File)
Oct 16 2024, 9:17 PM
Unknown Object (File)
Oct 16 2024, 9:17 PM
Subscribers

Details

Summary

To prepare for editing and deleting roles, we want to display a menu button next to each role except for admins. It's safe to check by name here since the Admins role cannot be renamed, but it's worth noting that a more sound check would be what is described in ENG-4155. For now though, I don't think it makes sense to
prioritize this and will be easy enough to update down the line once ENG-4155 is complete

Part of ENG-4367.

Depends on D8502

Test Plan

Confirmed that the menu button displays for Members and custom roles, but not Admins

Simulator Screen Shot - iPhone 14 Pro - 2023-07-17 at 13.24.28.png (2×1 px, 153 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

rohan edited the test plan for this revision. (Show Details)
ginsu requested changes to this revision.Jul 20 2023, 3:01 PM
ginsu added inline comments.
native/roles/role-panel-entry.react.js
41

I think it would make more sense for TouchableOpacity to be only wrapping the icon. If the menu button is "empty" then we shouldn't need TouchableOpacity too right?

This revision now requires changes to proceed.Jul 20 2023, 3:01 PM
native/roles/role-panel-entry.react.js
41

Yeah that's a good point

Encompass the icon only in the TouchableOpacity

This revision is now accepted and ready to land.Jul 21 2023, 11:43 AM
This revision was landed with ongoing or failed builds.Jul 31 2023, 6:15 PM
This revision was automatically updated to reflect the committed changes.