Skip to content

feat(frontend): display count badge next to Paused tab in dashboard navigation - #1689

Open
aazminu wants to merge 1 commit into
LabsCrypt:mainfrom
aazminu:feat/issue-1638-paused-tab-count-badge
Open

aazminu wants to merge 1 commit into
LabsCrypt:mainfrom
aazminu:feat/issue-1638-paused-tab-count-badge

Conversation

@aazminu

@aazminu aazminu commented Oct 19, 2026

Copy link
Copy Markdown

Description

Displays a compact count pill badge next to the "Paused" tab in the dashboard sidebar navigation (frontend/src/components/dashboard/dashboard-view.tsx) whenever one or more outgoing or incoming streams are paused, and hides the badge when pausedCount === 0.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🔧 Refactoring (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test addition or update

Related Issues

Closes #1638
Fixes #1638
/claim #1638

Changes Made

  • Computed memoized pausedCount across snapshot.outgoingStreams and snapshot.incomingStreams in frontend/src/components/dashboard/dashboard-view.tsx.
  • Rendered a compact pill badge (data-testid="paused-tab-badge") next to the "Paused" sidebar tab label when pausedCount > 0 with light/dark theme styling (bg-amber-500/15 text-amber-600 dark:bg-amber-500/20 dark:text-amber-400) and an accessible aria-label.
  • Added unit tests in frontend/src/components/dashboard/dashboard-view.test.tsx verifying that the badge is hidden when zero streams are paused and displays the exact count when paused streams exist.

Testing

Test Coverage

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed

Test Steps

  1. Run npx vitest run src/components/dashboard/dashboard-view.test.tsx src/components/dashboard/keyboard-shortcuts.test.tsx in frontend/ (10/10 tests pass).
  2. Run npx tsc --noEmit in frontend/ (0 errors).
  3. Run npx eslint src/components/dashboard/dashboard-view.tsx src/components/dashboard/dashboard-view.test.tsx in frontend/ (0 errors).

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have checked for breaking changes and documented them if applicable

Additional Notes

Payout Details

  • USDT/USDC Receiving Wallet (EVM / ERC-20 / Polygon / Arbitrum / Optimism / Base / BSC): 0x9a51790aC01c54184bcFa067bC38f7F0E7C6F6B6

This branch has not been deployed

No deployments
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] Display count badge next to Paused tab in dashboard navigation when paused streams exist

1 participant