Page MenuHomePhabricator

[native] introduce NotificationDescription
ClosedPublic

Authored by ginsu on Wed, Jul 3, 1:18 AM.
Tags
None
Referenced Files
F2184745: Screen Recording 2024-07-04 at 12.59.12 AM.mov
Wed, Jul 3, 9:59 PM
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
F2175835: image.png
Wed, Jul 3, 3:28 AM
F2175838: image.png
Wed, Jul 3, 3:28 AM
F2174884: Screenshot 2024-07-03 at 4.23.24 AM.png
Wed, Jul 3, 1:24 AM
F2174885: Screenshot 2024-07-03 at 4.23.33 AM.png
Wed, Jul 3, 1:24 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.Wed, Jul 3, 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.Wed, Jul 3, 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.Wed, Jul 3, 6:59 AM
ginsu planned changes to this revision.Wed, Jul 3, 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.Thu, Jul 4, 6:32 AM
This revision was landed with ongoing or failed builds.Thu, Jul 4, 11:21 AM
This revision was automatically updated to reflect the committed changes.