feat: add Freighter wallet connect/disconnect UI in app header - #703
Open
bytebinders wants to merge 1 commit into
Open
feat: add Freighter wallet connect/disconnect UI in app header#703bytebinders wants to merge 1 commit into
bytebinders wants to merge 1 commit into
Conversation
Closes ritik4ever#283 - Add WalletContext with connect/disconnect/network/wrong-network state - Add WalletConnect component: Connect button, truncated G...XYZ address, Testnet pill, mainnet warning badge, hover-to-disconnect - Wrap App in WalletProvider via main.tsx - Extract statusCopy, actionCopy, readInitialFilters to constants module - Restore BountyDetailPage / MaintainerAnalyticsPage / ContributorProfilePage routing - Declare maintainerAddress and profileContributor path memos - Fix missing statusFilter state declaration - Add error toasts to handleReserve and handleCreate catch blocks - Make useWallet safe outside WalletProvider (fallback default context) - Fix ContributorProfilePage.test assertions with getAllByText - Fix ErrorBoundary.test: import vi, return null from Bomb component - tsc --noEmit: 0 errors
|
@bytebinders is attempting to deploy a commit to the ritik4ever's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@bytebinders 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! 🚀 |
Owner
|
@bytebinders please resolve conflicts |
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.
What changed
WalletContext.tsx— React context: isConnected, address, network, isWrongNetwork, connect(), disconnect()WalletConnect.tsx— header button: "Connect Wallet" when disconnected, "G...XYZ • Testnet" pill with hover-to-disconnect when connected, amber "⚠ Mainnet" badge on wrong networkWalletConnect.test.tsx— Vitest: connected, disconnected, wrong-network statesmain.tsx— wraps App in WalletProviderApp.tsx— integrates WalletConnect header, restores BountyDetailPage / MaintainerAnalyticsPage / ContributorProfilePage routing, fixes statusFilter state, error toasts on catchAcceptance criteria
Verification
npm run typecheck→ 0 errorsnpm run test→ 123/125 passingCloses #283