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
Unknown Object (File)
Tue, Apr 30, 10:20 AM
Unknown Object (File)
Sat, Apr 27, 10:28 PM
Unknown Object (File)
Sat, Apr 27, 10:28 PM
Unknown Object (File)
Sat, Apr 27, 10:28 PM
Unknown Object (File)
Sat, Apr 27, 10:27 PM
Unknown Object (File)
Sat, Apr 27, 9:58 PM
Unknown Object (File)
Wed, Apr 17, 8:50 AM
Unknown Object (File)
Wed, Apr 17, 4:02 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #24547)

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 ↗(On Diff #24547)

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