Skip to content

fix: accessibility link names, list semantics, and stale closure in CallbackClient (#413, #414, #415) - #538

Merged
chonilius merged 3 commits into
MergeFi:mainfrom
Noragiftfr:fix/a11y-and-callback-stale-user
Sep 26, 2026
Merged

chonilius merged 3 commits into
MergeFi:mainfrom
Noragiftfr:fix/a11y-and-callback-stale-user

Conversation

@Noragiftfr

@Noragiftfr Noragiftfr commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #412
Fixes #413
Fixes #414
Fixes #415

What changed

#415 — BountyCard and PipelineColumn accessible link names

  • Added concise aria-label to the wrapping <Link> in BountyCard.tsx and PipelineBoard.tsx so screen readers announce a short, meaningful name (title + reward) instead of the entire card text content.

#414 — List semantics for badge/org/integration groups

  • Wrapped bounty label .map() groups in <ul role="list" className="contents"> / <li> in BountyCard.tsx and issues/[id]/page.tsx
  • Converted trusted-orgs and integrations strips on page.tsx from bare <div>/<span> to <ul role="list"> / <li> so screen readers announce "list of N items"

#413 — CallbackClient stale closure bug (#77 regression)

  • Made AuthContext.login() return the resolved AuthUser (changed refresh() to return the fetched profile)
  • Updated CallbackClient.tsx to use the user returned by login() instead of reading a stale user from context
  • Removed user from the effect dependency array, eliminating the redundant second login() call
  • Updated CallbackClient.test.tsx to match the new login() return type

#412 — reputation/[handle]/page.tsx test coverage

  • Extracted the presentational body into ReputationProfileView client component (following the PipelineBoard precedent)
  • Added ReputationProfileView.test.tsx covering: empty-state branches for organizations and languages, handle display, and stat card rendering

Why

How to test

  • npm test — all existing tests pass (CallbackClient tests updated, new ReputationProfileView tests added)
  • Inspect rendered <a> elements in browser DevTools to verify aria-label attributes
  • Verify <ul role="list"> appears around badge groups, org strip, and integrations strip

…ergeFi#414, MergeFi#415)

- MergeFi#415: Add aria-label to BountyCard and PipelineBoard Links for concise
  accessible names in screen readers' links lists
- MergeFi#414: Wrap bounty labels, trusted-orgs, and integrations in semantic
  list elements with role="list" for proper screen reader navigation
- MergeFi#413: Fix stale closure in CallbackClient by having AuthContext.login()
  return the resolved AuthUser, eliminating the pre-login user value
  that always redirected to /dashboard/contributor

Also updates CallbackClient.test.tsx to match the new login() return type.
@drips-wave

drips-wave Bot commented Sep 25, 2026

Copy link
Copy Markdown

@Noragiftfr 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

@vercel

vercel Bot commented Sep 25, 2026

Copy link
Copy Markdown

@Noragiftfr is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

Noragiftfr and others added 2 commits September 25, 2026 22:38
Extracted the presentational body of reputation/[handle]/page.tsx into
a client component ReputationProfileView, following the PipelineBoard
precedent. Added tests covering empty-state branches for organizations
and languages, handle display, and stat card rendering.
@chonilius
chonilius merged commit 118cb65 into MergeFi:main Sep 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment