Skip to content

Conversation

@chrisbobbe
Copy link
Collaborator

This makes our UnreadCountBadge widget match the Figma for the badges on the "Channels" page, for

and closer to matching the badges on the "Inbox" page (but not yet), for

(Also, reuse the widget in the topic-list page for consistency, which makes small differences from the Figma, where the rows are too compact anyway; we like to give touch targets a minimum height of 40, for accessibility, and I've done that here.)

Before After
image image
image image
image image
image image
image image
image image

Related: #1406
Related: #1527

cc @alya

@chrisbobbe chrisbobbe added maintainer review PR ready for review by Zulip maintainers product review Added by maintainers when a PR needs product review labels Oct 31, 2025
Copy link
Member

@rajveermalviya rajveermalviya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @chrisbobbe! LGTM, moving over to Greg's review.

@rajveermalviya rajveermalviya added integration review Added by maintainers when PR may be ready for integration and removed maintainer review PR ready for review by Zulip maintainers labels Nov 4, 2025
@alya
Copy link
Collaborator

alya commented Nov 4, 2025

Looks fine to me, thanks!

The "Channels" page and "Inbox" page both have updated designs in
Figma, which we should follow.

This commit matches the badges on the "Channels" page to that new
design. There's more work to match the badges on the "Inbox" page,
but now that work is defined crisply in a TODO:

  // TODO support the "kind=quantity" variant, update dartdoc

Related: zulip#1406
Related: zulip#1527
The private widget, following the Figma, made the badge a bit more
compact, with 1px less padding on each side, and a font size smaller
by 1 (but with the same line height).

That was helpful for keeping the rows at uniform height regardless
of unreads (without text scaling anyway)...but I've accomplished
that by adding a minimum row height (40), in the previous commit.
@gnprice gnprice force-pushed the pr-unread-counter-tweaks branch from 4ffeb17 to 89b85dc Compare November 6, 2025 03:56
@gnprice gnprice merged commit 89b85dc into zulip:main Nov 6, 2025
1 check passed
@gnprice
Copy link
Member

gnprice commented Nov 6, 2025

Thanks for updating these! LGTM; merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration review Added by maintainers when PR may be ready for integration product review Added by maintainers when a PR needs product review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants