Skip to content

feat(tabs): badge the Chat tab with unread chats - #1253

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/chat-tab-badge
Aug 20, 2026
Merged

feat(tabs): badge the Chat tab with unread chats#1253
bmc08gt merged 1 commit into
code/cashfrom
feat/chat-tab-badge

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Ports code-payments/code-ios-app#597.

The v2 tab bar now badges the Chat tab with the unread tip-DM conversation count, mirroring the v1 scanner bar's Tips badge. Both read the same reactive source (SessionState.tipsUnreadCount), so the badge appears, updates and clears as conversations are read.

Changes

  • NavigationBarState gains badgeCount(button) — Tips (v1) and Chats (v2) are the same tip-DM inbox under the two UIs.
  • NavigationBarV2 overlays the shared Badge in the brand indicator blue on the glyph's top-right corner, matching the iOS placement. The tab item is no longer clipped so the badge can overhang; that is safe because its click indication is null, so there are no ripple bounds to preserve.
  • AppNavigationBar feeds the count from the session controller.

Flag gating

Inherently v2-only — NavigationBarV2 only renders under FeatureFlag.NewUi. The v1 scanner bar is untouched.

Ports code-payments/code-ios-app#597. The v2 tab bar now badges the Chat tab
with the unread tip-DM conversation count, mirroring the v1 scanner bar's Tips
badge — same reactive source (SessionState.tipsUnreadCount), so it appears,
updates and clears as conversations are read.

- NavigationBarState gains badgeCount(button): Tips (v1) and Chats (v2) are the
  same tip-DM inbox under the two UIs.
- NavigationBarV2 overlays the shared Badge in the brand indicator blue on the
  glyph's top-right corner, matching the iOS placement. The tab item is no
  longer clipped so the badge can overhang; safe because its click indication is
  null, so there is no ripple needing bounds.
- AppNavigationBar feeds the count from the session controller.

Inherently v2-only: NavigationBarV2 only renders under FeatureFlag.NewUi.
@github-actions github-actions Bot added the type: feature New functionality label Aug 20, 2026
@bmc08gt
bmc08gt merged commit 8c7c7c1 into code/cash Aug 20, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the feat/chat-tab-badge branch August 20, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant