Page MenuHomePhabricator

[native] introduce type prop to EnumSettingsOption component
ClosedPublic

Authored by ginsu on Tue, Jul 2, 6:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 3, 11:53 AM
Unknown Object (File)
Wed, Jul 3, 11:53 AM
Unknown Object (File)
Wed, Jul 3, 11:53 AM
Unknown Object (File)
Wed, Jul 3, 11:53 AM
F2172004: Screenshot 2024-07-02 at 9.41.27 PM.png
Tue, Jul 2, 6:41 PM
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.Tue, Jul 2, 6:55 PM
ashoat requested changes to this revision.Tue, Jul 2, 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.Tue, Jul 2, 7:19 PM
ginsu requested review of this revision.Wed, Jul 3, 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.Wed, Jul 3, 8:16 PM
ginsu edited the test plan for this revision. (Show Details)

rebase before landing