Skip to content

EmptyState for IssuesPage and test coverage for DashboardShell, Navbar, Tabs (#274-#277) - #328

Merged
chonilius merged 4 commits into
MergeFi:mainfrom
benfoster-dev:feat/empty-state-and-tests-274-277
Aug 25, 2026
Merged

chonilius merged 4 commits into
MergeFi:mainfrom
benfoster-dev:feat/empty-state-and-tests-274-277

Conversation

@benfoster-dev

Copy link
Copy Markdown
Contributor

Fixes #274
Fixes #275
Fixes #276
Fixes #277

What changed

Issue 274 — EmptyState for IssuesPage

  • Added EmptyState component with "No bounties yet" message when fetchBounties returns an empty array
  • Uses GitPullRequest icon, matching the pattern on dashboard and milestone pages

Issue 275 — DashboardShell tests (31 tests)

  • Role-based nav-item verification for contributor/maintainer/sponsor
  • Active-link highlighting: exact match for /dashboard/*, prefix match for /issues, /milestones
  • Role-switcher section rendering correct active role

Issue 276 — Navbar tests

  • Loading state: nothing rendered in user-actions area
  • Signed-out: Connect GitHub + Sign in buttons, no Reputation link
  • Signed-in: avatar, display name, log-out button, Reputation link visible

Issue 277 — Tabs tests

  • onChange fires with the correct tab key on click
  • Active tab gets bg-white + shadow-sm styling
  • Optional count badge renders only when count is provided

How to test

  • npm test — all new tests pass (31 total)

Renders "No bounties yet" with a description when fetchBounties returns
an empty array, matching the pattern used on dashboard and milestone pages.
Tests cover onChange callback with correct key, active vs inactive
styling (bg-white + shadow-sm for active), and optional count badge
rendering logic.
Tests cover loading (nothing rendered), signed-out (Connect GitHub +
Sign in buttons), and signed-in (avatar, display name, log-out button)
branches, plus conditional Reputation link visibility.
Tests cover role-based nav-item selection for contributor/maintainer/sponsor,
active-link highlighting with exact and prefix matching, and the role-switcher
section rendering the correct active role.
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

@benfoster-dev is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@benfoster-dev 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

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