Skip to content

feat: add notification badge for pending/failed transactions#693

Merged
Junirezz merged 1 commit into
Junirezz:mainfrom
goldandrew:any/add-notification-badge
Jun 2, 2026
Merged

feat: add notification badge for pending/failed transactions#693
Junirezz merged 1 commit into
Junirezz:mainfrom
goldandrew:any/add-notification-badge

Conversation

@goldandrew
Copy link
Copy Markdown
Contributor

Summary

Adds a notification badge to the navbar that alerts users when they have pending or failed transactions requiring attention.

Changes

  • New hook usePendingTransactionCount — derives pending/failed transaction count from the React Query cache
  • Navbar updates — added a Transactions nav link with a pill badge showing the count of pending + failed transactions in desktop, mobile, and dropdown menus
  • i18n — added nav.transactions translation key in both English and Spanish locales

Acceptance Criteria

  • Badge count is accurate (derived from React Query cache populated by optimistic mutations and server data)
  • Clicking navigates to /transactions (standard NavLink)
  • Badge disappears when all transactions are resolved (count === 0 hides the badge)

Closes #248

- Add usePendingTransactionCount hook to derive pending/failed count from React Query cache
- Add Transactions nav link to desktop, mobile, and dropdown menus
- Show pill badge with pending/failed count on the nav link
- Add i18n keys for nav.transactions in en and es locales

Closes Junirezz#248
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@goldandrew Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Junirezz Junirezz merged commit 5c9c90a into Junirezz:main Jun 2, 2026
7 of 13 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.

Frontend: Add notification badge for pending/failed transactions

2 participants