Page MenuHomePhabricator

[web] Notifications dialog - add text
ClosedPublic

Authored by michal on Oct 3 2022, 2:32 AM.
Tags
None
Referenced Files
F3282082: D5281.id.diff
Sat, Nov 16, 10:42 AM
F3272602: D5281.id17316.diff
Sat, Nov 16, 5:38 AM
F3269565: D5281.id17349.diff
Sat, Nov 16, 3:53 AM
F3269398: D5281.id17349.diff
Sat, Nov 16, 3:50 AM
F3269279: D5281.id17353.diff
Sat, Nov 16, 3:46 AM
F3268874: D5281.id17353.diff
Sat, Nov 16, 3:37 AM
F3268562: D5281.id17280.diff
Sat, Nov 16, 3:26 AM
F3268555: D5281.id17280.diff
Sat, Nov 16, 3:24 AM
Subscribers

Details

Summary

ENG-1729
Adds additional explanation text. For sidebars in the Focused tab, it's displayed under the button and for sidebars in the Background tab it's displayed instead of previous content.

Test Plan

Check that nothing changed for non-sidebars. Check that for each combination of *Parent is in Focused/Background tab* and *can/can't be promoted* for sidebars is displayed correctly.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

michal requested review of this revision.Oct 3 2022, 2:39 AM
atul added 1 blocking reviewer(s): tomek.

Looks good to me, and looks like @ashoat signed off on the copy in https://linear.app/comm/issue/ENG-1729/update-notifications-dialog-to-handle-threads-correctly.

Adding @tomek as blocking since he's more familiar with sidebar-related stuff.

lib/hooks/promote-sidebar.react.js
34

Can we early exit at the start of canPromoteSidebar if the thread type isn't SIDEBAR?

web/modals/threads/notifications/notifications-modal.react.js
237

Can we add a newline before modelContent to help separate things out?

Nits inline

web/modals/threads/notifications/notifications-modal.react.js
206

Can we use a Unicode apostrophe character?

220

Personally I prefer to avoid ternaries here, see reasoning

229–233

I don't mind this ternary although technically the doc above is against it

Made requested changes, rebase

tomek added inline comments.
web/modals/threads/notifications/notifications-modal.react.js
205 ↗(On Diff #17316)

We should try to keep lines length below 80 characters

This revision is now accepted and ready to land.Oct 4 2022, 4:01 AM