Skip to content

Update COMMIT_MESSAGE.txt#353

Open
ayaoba24 wants to merge 2 commits into
CalloraOrg:mainfrom
ayaoba24:low-balance
Open

Update COMMIT_MESSAGE.txt#353
ayaoba24 wants to merge 2 commits into
CalloraOrg:mainfrom
ayaoba24:low-balance

Conversation

@ayaoba24

@ayaoba24 ayaoba24 commented Jun 30, 2026

Copy link
Copy Markdown

closes #183

This PR introduces a dismissible warning banner to the top of the Dashboard component, alerting users when their vault balance falls below a configured threshold. This improves the user experience by proactively warning users of low balances before they encounter failed API calls.
Key Changes:

  • Configuration: Added a LOW_BALANCE_USD threshold constant to src/config/constants.ts.
  • Component: Created the LowBalanceBanner.tsx component. It features a status warning, informative text, and a primary "Deposit USDC" CTA button that triggers the existing deposit modal.
  • Session Persistence: Banner dismissal is tracked via sessionStorage so that the dismissal persists only for the current browser session.
  • Styling & Responsiveness: Styled the banner using the system --warning CSS token and ensured the layout stacks vertically to prevent overlap at small viewports (e.g., 360px).

@drips-wave

drips-wave Bot commented Jul 2, 2026

Copy link
Copy Markdown

@ayaoba24 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! 🚀

Learn more about application limits

@ayaoba24

ayaoba24 commented Jul 2, 2026

Copy link
Copy Markdown
Author

please kindly review and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant