Page MenuHomePhabricator

[web] Add a badge on the Inbox button
ClosedPublic

Authored by inka on Mar 7 2023, 4:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 5:33 AM
Unknown Object (File)
Mon, Oct 21, 3:58 PM
Unknown Object (File)
Mon, Oct 21, 3:58 PM
Unknown Object (File)
Mon, Oct 21, 2:01 AM
Unknown Object (File)
Mon, Oct 21, 2:01 AM
Unknown Object (File)
Mon, Oct 21, 2:01 AM
Unknown Object (File)
Sun, Oct 20, 8:32 PM
Unknown Object (File)
Sun, Oct 20, 8:32 PM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-3178/add-a-badge-on-the-inbox-all-communities-button
This code is effectively copied from app-switcher.react.js, where the badge exacly like what we want here already exists (that badge will be changed)

Screenshot 2023-03-07 at 17.00.36.png (504×1 px, 58 KB)

Screenshot 2023-03-07 at 17.00.23.png (512×1 px, 53 KB)

Test Plan

rub web app, checked that the badge is visible in all tabs but the Calendar tab, and displays the correct number of unreads

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Mar 7 2023, 4:51 AM

Make over 100 notifs display as 99+

On context on why this diff has been up for 2 weeks and hasn't been reviewed?

The expectation on this team is that all diffs are reviewed within 24 hours. Review queues should be cleared on a daily basis. If the diff is not ready for review, it should be marked with "Plan Changes". Otherwise, the reviewers are expected to review it within 24 hours.

Rebase above message editing

Looks good!

Sorry for not reviewing it for so long, it won't happen again!

This revision is now accepted and ready to land.Apr 12 2023, 5:25 AM