feat: add connect-wallet CTA to disconnected account overview state - #1143
Open
T-kesh wants to merge 1 commit into
Open
feat: add connect-wallet CTA to disconnected account overview state#1143T-kesh wants to merge 1 commit into
T-kesh wants to merge 1 commit into
Conversation
Contributor
|
@T-kesh is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
@Jagadeeshftw I apologize for their late response. Please kindly review |
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.
Description
This PR addresses the issue where components/dashboard/account-overview.tsx previously rendered blank or placeholder figures when the wallet was disconnected. It introduces a clear, accessible call-to-action (CTA) prompting the user to connect their wallet when no active connection is detected.
Changes Made:
account-overview.tsx
: Replaced empty/placeholder balance data with a prominent "Connect Wallet" CTA card when the wallet context reports a disconnected state.
account-overview.test.tsx
: Added test coverage to ensure the CTA card renders correctly in the disconnected state and connects correctly when interacted with.
dashboard-redesign.md
: Documented the Disconnected State CTA, outlining accessibility annotations and responsive behavior guidelines.
Accessibility (WCAG 2.1 AA)
Contrast: Utilizes high-contrast colors (bg-zinc-900 / dark:bg-white and text-white / dark:text-zinc-900) for the CTA button to meet compliance.
Keyboard Navigation: The button leverages native functionality with a visible focus ring (focus-visible:ring-2) to ensure full keyboard operability.
ARIA: Decorative icons inside the CTA are properly marked with aria-hidden="true".
Testing
Validated responsive behavior across all breakpoints (sm, md, lg, xl).
Handled edge cases including disconnected rendering and interactions.
All unit tests passing.
closes #720