Repository navigation
fix: accessibility link names, list semantics, and stale closure in CallbackClient (#413, #414, #415) - #538
Merged
chonilius merged 3 commits intoSep 26, 2026
Conversation
…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.
|
@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! 🚀 |
|
@Noragiftfr is attempting to deploy a commit to the chonilius' projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #412
Fixes #413
Fixes #414
Fixes #415
What changed
#415 — BountyCard and PipelineColumn accessible link names
aria-labelto the wrapping<Link>inBountyCard.tsxandPipelineBoard.tsxso screen readers announce a short, meaningful name (title + reward) instead of the entire card text content.#414 — List semantics for badge/org/integration groups
.map()groups in<ul role="list" className="contents">/<li>inBountyCard.tsxandissues/[id]/page.tsxpage.tsxfrom bare<div>/<span>to<ul role="list">/<li>so screen readers announce "list of N items"#413 — CallbackClient stale closure bug (#77 regression)
AuthContext.login()return the resolvedAuthUser(changedrefresh()to return the fetched profile)CallbackClient.tsxto use the user returned bylogin()instead of reading a staleuserfrom contextuserfrom the effect dependency array, eliminating the redundant secondlogin()callCallbackClient.test.tsxto match the newlogin()return type#412 — reputation/[handle]/page.tsx test coverage
ReputationProfileViewclient component (following the PipelineBoard precedent)ReputationProfileView.test.tsxcovering: empty-state branches for organizations and languages, handle display, and stat card renderingWhy
<ul>when Tailwind resets list-style; explicitrole="list"restores structural information for assistive tech.redirectForRoles(user?.roles)captured a staleuser = nullclosure beforelogin()finished fetching the profile, causing every first-time sign-in to always land on/dashboard/contributor.How to test
npm test— all existing tests pass (CallbackClient tests updated, new ReputationProfileView tests added)<a>elements in browser DevTools to verifyaria-labelattributes<ul role="list">appears around badge groups, org strip, and integrations strip