feat: add Connect Wallet Modal for Sign In page#282
Merged
A6dulmalik merged 2 commits intoMindBlockLabs:mainfrom Feb 25, 2026
Merged
feat: add Connect Wallet Modal for Sign In page#282A6dulmalik merged 2 commits intoMindBlockLabs:mainfrom
A6dulmalik merged 2 commits intoMindBlockLabs:mainfrom
Conversation
- Create WalletModal component with backdrop blur, Escape key, focus trap, and ARIA accessibility - Create WalletOption component showing wallet name and Detected badge - Create WalletIcons with SVG components for Phantom, MetaMask, Coinbase, Trust, and Freighter - Add useWalletModal hook for open/close state management - Update Sign In page to open modal on Connect Wallet click; only Freighter triggers real auth flow, others show Coming Soon toast
- Fix useReducedMotionCheck to import usePrefersReducedMotion from local hooks, not framer-motion - Fix usePrefersReducedMotion return type by coalescing null to false so boolean is satisfied
A6dulmalik
approved these changes
Feb 25, 2026
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.
Summary
This PR implements the Connect Wallet Modal for the Sign In page, replacing the previous direct wallet connection flow with a polished, accessible modal that lists all available wallet options.
Changes
frontend/components/ui/wallet/WalletIcons.tsx— SVG icon components for all five wallets: Phantom (purple), MetaMask (fox), Coinbase Wallet (blue circle), Trust (shield), and Freighter (black logotype)frontend/components/ui/wallet/WalletOption.tsx— Reusable wallet row component displaying the wallet icon, name, and a "Detected" badge when the wallet extension is present in the browserfrontend/components/ui/WalletModal.tsx— Main modal component featuring:bg-[#0A1628]) on a blurred overlay (bg-black/60 backdrop-blur-sm)role="dialog",aria-modal,aria-labelledby) for screen reader accessibilitywindow.freighter/window.ethereum.*flags and shows "Detected" badge accordinglyfrontend/hooks/useWalletModal.ts— Minimal hook exposing{ isOpen, openModal, closeModal }to control modal statefrontend/app/auth/signin/page.tsx— Updated "Connect Wallet" button to open the modal instead of triggering auth directly;handleWalletSelectroutes Freighter selections to the existinguseStellarWalletAuthflow and shows a "Coming Soon" info toast for Phantom, MetaMask, Coinbase, and TrustTest plan
/auth/signin— modal opensbg-[#050C16], blue accents,rounded-2xl)Closes #249