Page MenuHomePhabricator

[web] Introduce `SidebarsModal`
ClosedPublic

Authored by jacek on Jul 22 2022, 8:25 AM.
Tags
None
Referenced Files
F3301277: D4610.id14983.diff
Mon, Nov 18, 1:28 AM
F3301252: D4610.id14956.diff
Mon, Nov 18, 1:18 AM
F3301076: D4610.diff
Sun, Nov 17, 11:46 PM
Unknown Object (File)
Sat, Nov 9, 3:34 PM
Unknown Object (File)
Sat, Nov 9, 3:21 PM
Unknown Object (File)
Sat, Nov 9, 2:58 PM
Unknown Object (File)
Sat, Nov 9, 1:21 PM
Unknown Object (File)
Sat, Nov 9, 9:08 AM

Details

Summary

Introducing new SidebarsModal component with two tabs - with all sidebars and those displayed in chat list (that we are member of)

Screenshot_Google Chrome_2022-07-22_173150.png (679×498 px, 39 KB)

Test Plan

The modal is not used yet, next diff replaces an old one with this component in menu and after clicking "see more sidebars".

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added a reviewer: ashoat.

New copy @ashoat

web/modals/threads/sidebars/sidebars-modal.css
4

Is this overflow a good idea? We already have overflow: auto on .sidebarList.

web/modals/threads/sidebars/sidebars-modal.react.js
26–29

This function never changes, so we can consider defining it outside the component

49–50
This revision is now accepted and ready to land.Jul 25 2022, 7:00 AM
web/modals/threads/sidebars/sidebars-modal.css
4

You're right, it's not needed here

Address Tomek's sugegstions. Moved callback to thread-utils.js

tomek added inline comments.
lib/shared/thread-utils.js
164 ↗(On Diff #14956)

I don't think that double negation is necessary because === already returns a boolean

This revision is now accepted and ready to land.Jul 26 2022, 6:57 AM
lib/shared/thread-utils.js
164 ↗(On Diff #14956)

Thanks for catching!

remove redundant boolean cast

This revision was automatically updated to reflect the committed changes.