Page MenuHomePhabricator

[native] introduce type prop to EnumSettingsOption component
ClosedPublic

Authored by ginsu on Jul 2 2024, 6:32 PM.
Tags
None
Referenced Files
F3582158: D12643.id41921.diff
Sun, Dec 29, 11:27 AM
F3582137: D12643.id42067.diff
Sun, Dec 29, 11:15 AM
F3582074: D12643.id41919.diff
Sun, Dec 29, 10:28 AM
F3581943: D12643.id42045.diff
Sun, Dec 29, 9:41 AM
F3574513: D12643.diff
Sat, Dec 28, 5:41 PM
Unknown Object (File)
Mon, Dec 23, 8:42 AM
Unknown Object (File)
Tue, Dec 17, 11:37 PM
Unknown Object (File)
Mon, Dec 16, 7:21 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
No Lint Coverage
Unit
No Test Coverage

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