Skip to content

feat(avatar): badge counts, tabs unread recipe, local portraits - #39

Merged
jack755051 merged 1 commit into
mainfrom
feat/avatar-notification-count
Sep 23, 2026
Merged

jack755051 merged 1 commit into
mainfrom
feat/avatar-notification-count

Conversation

@jack755051

Copy link
Copy Markdown
Contributor

Summary

  • [sanringAvatarBadge] accepts count (hidden at 0, capped at 99+) and placement top / bottom, so a numeric pill can sit with a status dot.
  • Tabs docs add a Badge-inside-trigger recipe for unread counts, including an aria-label that names the count.
  • Avatar docs portraits now use local shrine photos instead of pravatar.

Test plan

  • ng test @sanring/ui --include='**/avatar.component.spec.ts'
  • Browser: /components/avatar count + status coexist, 99+ renders
  • Browser: /components/tabs Inbox/Drafts switch with Badge count
  • CI: lint, tests, require-changeset

Made with Cursor

Unread counts belong on the existing avatar badge, and tabs show the same pattern by composing Badge. Docs portraits now use local photos instead of pravatar.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jack755051
jack755051 merged commit 0a4e763 into main Sep 23, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant