Page MenuHomePhabricator

[native] introduce NotificationDescription
ClosedPublic

Authored by ginsu on Jul 3 2024, 1:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 26, 9:39 AM
Unknown Object (File)
Sun, Dec 22, 12:41 PM
Unknown Object (File)
Mon, Dec 16, 7:21 PM
Unknown Object (File)
Nov 11 2024, 2:43 AM
Unknown Object (File)
Nov 11 2024, 12:48 AM
Unknown Object (File)
Nov 10 2024, 3:13 PM
Unknown Object (File)
Nov 8 2024, 10:39 PM
Unknown Object (File)
Nov 8 2024, 7:14 AM
Subscribers

Details

Summary

This diff introduces a small component called NotificationDescription that handles rendering the descriptions of each notification setting option. We also in this diff need to extend the description prop in EnumSettingOption to be able to handle NotificationDescription

Depends on D12647

Test Plan

Please see the demo video:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Jul 3 2024, 1:34 AM
native/components/enum-settings-option.react.js
115 ↗(On Diff #41931)

The style changes change now the element looks in my setup. But I think it's fine
without changes:

image.png (246×706 px, 40 KB)

with changes:

image.png (232×704 px, 40 KB)

native/components/enum-settings-option.react.js
115 ↗(On Diff #41931)

Hey @inka I think your images didn't attach

inka attached a referenced file: F2175838: image.png. (Show Details)
inka added inline comments.
native/components/enum-settings-option.react.js
115 ↗(On Diff #41931)

Thank you!

native/components/enum-settings-option.react.js
115 ↗(On Diff #41931)

Agree it looked better before, when the icon was alligned with the "Announcement root" title

ashoat requested changes to this revision.Jul 3 2024, 6:59 AM

Passing back mainly for @inka's feedback

native/chat/settings/thread-settings-notifications.react.js
77 ↗(On Diff #41931)

Is it worth factoring out the copy-pasted strings between web/native?

89 ↗(On Diff #41931)

Can we actually say "Notif count" here, and update the original place it was copied from? Got some feedback from Android users that this is confusing

98 ↗(On Diff #41931)

You have a task assigned to rename these, but I'm guessing you're planning on handling all of the callsites at once rather than updating these ones first

This revision now requires changes to proceed.Jul 3 2024, 6:59 AM
ginsu planned changes to this revision.Jul 3 2024, 9:24 PM

found a small ui regression

native/chat/settings/thread-settings-notifications.react.js
89 ↗(On Diff #41931)
98 ↗(On Diff #41931)

Yes this is the plan

This revision is now accepted and ready to land.Jul 4 2024, 6:32 AM
This revision was landed with ongoing or failed builds.Jul 4 2024, 11:21 AM
This revision was automatically updated to reflect the committed changes.