Page MenuHomePhabricator

[web] render thread avatars in thread subchannel/sidebar modals
ClosedPublic

Authored by ginsu on Apr 3 2023, 1:56 AM.
Tags
None
Referenced Files
F3521711: D7275.diff
Mon, Dec 23, 4:28 AM
Unknown Object (File)
Thu, Dec 5, 8:40 PM
Unknown Object (File)
Thu, Dec 5, 8:40 PM
Unknown Object (File)
Thu, Dec 5, 8:40 PM
Unknown Object (File)
Thu, Dec 5, 8:40 PM
Unknown Object (File)
Nov 6 2024, 3:26 AM
Unknown Object (File)
Nov 5 2024, 10:22 PM
Unknown Object (File)
Nov 5 2024, 10:22 PM
Subscribers

Details

Summary

Rendered thread avatars in thread subchannel/thread sidebars modals. There were no official designs for these; however, I synced with ted about this last week and he gave me his stamp of approval

Depends on D7210

Test Plan

Please view the screenshots below to see the changes I made:

Subchannels:

Before:

Screenshot 2023-04-03 at 4.58.35 AM.png (2×3 px, 858 KB)

After:

Screenshot 2023-04-03 at 4.59.12 AM.png (2×3 px, 936 KB)

Subthreads:

Before:

Screenshot 2023-04-03 at 4.58.39 AM.png (2×3 px, 828 KB)

After:

Screenshot 2023-04-03 at 4.59.16 AM.png (2×3 px, 870 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Apr 3 2023, 2:10 AM

Looks good. I think the layout of those modals is generally weird (particularly the vertical spacing), but this is a strict improvement.

web/modals/threads/sidebars/sidebar.react.js
45–48

You could also do something more concise eg

classNames(css.longTextEllipsis, css.avatarOffset)

but I actually prefer what you did since it's more consistent.

This revision is now accepted and ready to land.Apr 3 2023, 11:45 AM
web/modals/threads/sidebars/sidebar.react.js
45–48

okay I will keep what I have then, but thanks for sharing that tip!