Page MenuHomePhabricator

[web] Add unread indicator to sidebar modals
ClosedPublic

Authored by adar on Dec 6 2022, 7:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 12, 3:21 AM
Unknown Object (File)
Mon, Jun 10, 7:01 AM
Unknown Object (File)
Sun, Jun 9, 9:01 AM
Unknown Object (File)
Fri, Jun 7, 10:56 PM
Unknown Object (File)
Fri, Jun 7, 9:46 PM
Unknown Object (File)
Thu, Jun 6, 12:06 AM
Unknown Object (File)
Thu, May 30, 9:20 PM
Unknown Object (File)
Thu, May 30, 9:20 PM
Subscribers

Details

Summary

This is the second part of ENG-2089. This diff adds the basic unread indicators to the sidebar modal. Changes font color and font weight of the last unread message.

Test Plan

Screenshots that show that unread thread messages appear unread in the sidebar modal in both 'All Threads' and 'My Threads' tabs.

Unread thread messageRead thread message
Screen Shot 2022-12-07 at 2.29.54 PM.png (2×4 px, 597 KB)
Screen Shot 2022-12-07 at 2.30.11 PM.png (2×4 px, 529 KB)
Screen Shot 2022-12-07 at 2.30.01 PM.png (1×832 px, 73 KB)
Screen Shot 2022-12-07 at 2.30.06 PM.png (1×836 px, 74 KB)
Screen Shot 2022-12-07 at 2.30.17 PM.png (1×826 px, 72 KB)
Screen Shot 2022-12-07 at 2.30.20 PM.png (1×830 px, 72 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

adar held this revision as a draft.
web/modals/threads/sidebars/sidebar.react.js
72 ↗(On Diff #19191)

note that eslint complained when lastActivityClassName and longTextEllipsisClassName are not including in the dependency array, but since they're just strings derived from classNames i don't think they need to be in here see (D5697)

adar published this revision for review.Dec 6 2022, 8:10 AM
atul requested changes to this revision.Dec 6 2022, 10:51 AM

Should we also be styling the "new thread" in the example screenshot you posted?

web/modals/threads/sidebars/sidebar.react.js
72 ↗(On Diff #19191)

Even though they're strings, I think lastMessage will still need to be recomputed if they change

This revision now requires changes to proceed.Dec 6 2022, 10:51 AM
In D5833#174057, @atul wrote:

Should we also be styling the "new thread" in the example screenshot you posted?

Can do!

adar edited the test plan for this revision. (Show Details)

make thread name appear bold as well

Looks good!

(and appreciate that you updated the screenshots to match!)

This revision is now accepted and ready to land.Dec 7 2022, 12:10 PM