Skip to content

Add a low-balance warning banner on Dashboard with one-click Deposit CTA #183

Description

@greatest0fallt1me

Description

This is a UI/UX issue. Users currently learn about low vault balance only when a call fails. Add a dismissible warning banner at the top of Dashboard.tsx when the balance falls below a configurable threshold, with a primary "Deposit USDC" button that opens the existing deposit modal.

Requirements and Context

  • Reference: src/components/Dashboard.tsx, src/components/Dashboard.css, deposit modal in src/App.tsx
  • Threshold sourced from src/config/constants.ts
  • Banner uses role="status" and is dismissable for the session
  • Survives at 360px without overlap
  • Must be secure, tested, and documented
  • Should be efficient and easy to review

Suggested Execution

  1. Fork the repo and create a branch
    git checkout -b feature/low-balance-banner
  2. Implement changes
    • src/components/LowBalanceBanner.tsx
    • src/components/Dashboard.tsx — render conditionally
    • src/config/constants.ts — add LOW_BALANCE_USD
  3. Test and commit
    • Mock balance below threshold and confirm banner
    • Confirm dismiss state persists in sessionStorage only

Example commit message

feat: low-balance warning banner on Dashboard

Acceptance Criteria

  • Banner appears only below threshold
  • Deposit CTA opens existing modal
  • Dismiss persists per session, not forever
  • AA contrast on warning surface in both themes

Guidelines

  • Use --warning token (add if missing)
  • Document threshold constant
  • Clear documentation and inline comments
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

GRANTFOX OSSGrantFox open-source campaign taskMAYBE REWARDEDMay be rewarded under the GrantFox campaignOFFICIAL CAMPAIGNOfficial GrantFox campaign issueStellar WaveIssues in the Stellar wave programdesignVisual/design-system workenhancementNew feature or improvementui/uxUI/UX design, usability, and visual polish

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions