[Frontend] Format large stream balances with compact notation (1.2M, 450K) and exact tooltip
Overview
Streams with large token values (e.g. 1,450,293.4910293 USDC) cause table columns to wrap or overflow container widths on laptop and mobile screens.
Problem
- Unformatted long decimals degrade readability in stream cards and overview tables.
Proposed Changes
- Implement
formatTokenCompact(amount, decimals)usingIntl.NumberFormat('en', { notation: 'compact' }). - Wrap formatted numbers in a Tooltip displaying the full exact decimal precision on hover.
Acceptance Criteria
- [ ] Values over 10,000 format cleanly (e.g. "12.5K", "1.45M").
- [ ] Hovering displays the full unrounded token quantity.
- [ ] Zero layout overflow on mobile screens.
@emmzydagreat has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hello Maintainer, I’m interested in picking up this issue. I’ve checked the requirements and am ready to investigate, implement, and test the changes.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @emmzydagreat to this issue.
@chidii has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hello Maintainer, I've reviewed this issue thoroughly and I'm well positioned to resolve it — experienced across the relevant stack and comfortable navigating the existing codebase. Ready to start right away.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @chidii to this issue.
Congratulations, @chidii! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @chidii: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
🎉 This issue has been marked as completed on GrantFox!
@chidii's PR #1580 was approved and merged by @K1NGD4VID.
🏆 @chidii: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,505 total points). Track your full progress on GrantFox.
👏 Great work, @chidii! Keep contributing to LabsCrypt.
This issue has been marked as completed by a Drips Wave moderator for @chidii as part of the Stellar Wave Program's 9th Wave 🥳
Moderator's reason: [Auto-assessed] The PR was merged by @K1NGD4VID (evidenced by mergedAt timestamp and issue completion notice), and directly addresses Issue #1509 by implementing formatTokenCompact and the CompactAmount component with full test coverage.
😎 @chidii: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
ℹ️ Note: This issue was marked complete via moderation. Points were issued even though the GitHub issue remains open.