Repository navigation
fix: cross-tab wallet logout, prefetch waste, test gaps, and empty states (#270, #271, #272, #273) - #327
Merged
chonilius merged 2 commits intoAug 25, 2026
Conversation
…MergeFi#270, MergeFi#271) - WalletContext now reacts to AuthContext's cross-tab logout by clearing the stored wallet address and network state when user becomes null, preventing stale wallet connections in tabs where the session ended (MergeFi#270) - Disable Next.js default prefetch on BountyCard Link since the detail page's fetchBounty uses cache: "no-store", making prefetches wasteful uncached round trips (MergeFi#271)
…d MilestonesPage empty state (MergeFi#272, MergeFi#273) - Add tests for ordered lists, blockquotes, and h1-h3 heading-level remapping in BountyDescription.test.tsx content fidelity suite (MergeFi#272) - Render EmptyState component for milestones and maintenance pools grids on MilestonesPage when arrays are empty, consistent with dashboard pages (MergeFi#273)
|
@ijeoma270 is attempting to deploy a commit to the chonilius' projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@ijeoma270 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! 🚀 |
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 #270
Fixes #271
Fixes #272
Fixes #273
What changed
userbecomesnull(token cleared in another tab), the wallet address and network state are cleared from both React state and localStorage, preventing stale wallet connections in tabs where the session ended.prefetch={false}to BountyCard's Next.js<Link>. SincefetchBountyusescache: "no-store", default prefetches trigger uncached backend round trips for every card that scrolls into view — disabling prefetch eliminates this waste.<ol>withlist-decimal), blockquotes (<blockquote>withborder-l-2anditalic), and the h1→h2 / h2→h3 / h3→h4 heading-level remapping inBountyDescription.test.tsx.EmptyStatecomponent to MilestonesPage for both the milestones grid and maintenance pools grid when their arrays are empty, consistent with the pattern on ContributorDashboard and SponsorDashboard pages.How to test
/issueswith Network tab open — scrolling through bounty cards should no longer trigger prefetch requests to the backend.npx vitest run src/components/bounty/BountyDescription.test.tsx— all tests should pass including the new ol, blockquote, and heading tests./milestoneswhen no milestones or pools exist — verify EmptyState components render with appropriate icons and messaging.