🔍 Problem Statement
🔑 Feature: Build Authentication UI (Wallet Connect Page)
📖 Description
Create a dedicated authentication page that supports Stellar wallet (Freighter) connection. This page will serve as the entry point for users to connect, disconnect, and manage their wallet sessions securely.
Expected Behavior
- Connect / Disconnect button: Allow users to connect or disconnect their Stellar wallet easily.
- Display connected address: Show the wallet address in a shortened format (e.g.,
GABC...XYZ).
- Error handling: Provide clear feedback when connection fails (e.g., “Unable to connect wallet. Please try again.”).
- Persist session state: Maintain wallet connection state across page reloads and sessions.
🛠 Technical Notes
- Integrate with Freighter wallet SDK for connection and signature handling.
- Ensure session persistence using JWTs or local storage.
- Maintain dark/minimal UI styling consistent with the rest of the app.
- Responsive design should be preserved across devices.
- Handle edge cases such as rejected connection requests or invalid signatures.
✅ Acceptance Criteria
- Connect/Disconnect button works as expected.
- Connected wallet address is displayed in shortened format.
- Connection errors are surfaced with clear messages.
- Session state persists across reloads.
npm run lint and npm run build succeed.
- No regression in existing chat, navigation, or wallet features.
📈 Expected Impact
High — Would significantly improve user experience