Page MenuHomePhabricator

[native] introduce type prop to EnumSettingsOption component
ClosedPublic

Authored by ginsu on Jul 2 2024, 6:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 3:16 AM
Unknown Object (File)
Mon, Nov 11, 12:51 AM
Unknown Object (File)
Sun, Nov 10, 10:30 PM
Unknown Object (File)
Sun, Nov 10, 4:41 PM
Unknown Object (File)
Fri, Nov 8, 10:39 PM
Unknown Object (File)
Fri, Nov 8, 7:14 AM
Unknown Object (File)
Sat, Oct 26, 5:45 AM
Unknown Object (File)
Thu, Oct 24, 3:26 AM
Subscribers

Details

Summary

Our EnumSettingsOption component on native only supports checkbox type input. For this new thread notif settings experience we need to have a radio type input

Depends on D12642

Test Plan

Confirmed that there were no regressions with where we render EnumSettingsOption in the create roles and community creation screens

Also confirmed that the radio input looked like this:

Screenshot 2024-07-02 at 9.41.27 PM.png (1×1 px, 759 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: ashoat, inka.
ginsu edited the test plan for this revision. (Show Details)
ginsu requested review of this revision.Jul 2 2024, 6:55 PM
ashoat requested changes to this revision.Jul 2 2024, 7:19 PM
  1. Can we try to space it out more? I'd like more margin between option, and to balance the space on the right side. We can try to work through it together tomorrow in person if you're in the office
  2. If 2/3 of the usages are going to checkbox instead of radio, should we default to checkbox?
This revision now requires changes to proceed.Jul 2 2024, 7:19 PM
ginsu requested review of this revision.Jul 3 2024, 6:27 PM

Can we try to space it out more? I'd like more margin between option, and to balance the space on the right side. We can try to work through it together tomorrow in person if you're in the office

D12654 updates the UI further in this stack

If 2/3 of the usages are going to checkbox instead of radio, should we default to checkbox?

I did this to match how EnumSettingsOption on web

https://github.com/CommE2E/comm/blob/master/web/components/enum-settings-option.react.js#L43

This revision is now accepted and ready to land.Jul 3 2024, 8:16 PM
ginsu edited the test plan for this revision. (Show Details)

rebase before landing