Page MenuHomePhabricator

[native] introduce NotificationDescription
ClosedPublic

Authored by ginsu on Jul 3 2024, 1:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 25, 8:51 PM
Unknown Object (File)
Wed, Sep 25, 8:51 PM
Unknown Object (File)
Wed, Sep 25, 8:51 PM
Unknown Object (File)
Wed, Sep 25, 8:50 PM
Unknown Object (File)
Wed, Sep 25, 8:50 PM
Unknown Object (File)
Fri, Sep 6, 3:35 PM
Unknown Object (File)
Thu, Sep 5, 7:34 PM
Unknown Object (File)
Thu, Sep 5, 6:41 PM
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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Jul 3 2024, 1:34 AM
native/components/enum-settings-option.react.js
115

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

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

Thank you!

native/components/enum-settings-option.react.js
115

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

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

89

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

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
98

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.