Skip to content

fix(tui): ERR status, Decibel exchange, compact APR#14

Merged
zacharyr0th merged 6 commits intomainfrom
fix/tui-err-decibel-apr
Mar 3, 2026
Merged

fix(tui): ERR status, Decibel exchange, compact APR#14
zacharyr0th merged 6 commits intomainfrom
fix/tui-err-decibel-apr

Conversation

@zacharyr0th
Copy link
Member

Summary

  • Show ERR instead of DOWN for disconnected exchanges
  • Always register Decibel connector so it appears in the TUI exchange list even without credentials
  • Add T%/B%/M%/K% tiers to format_rate so large APR values display compactly instead of raw numbers
  • Use format_rate in the stats widget (was using raw format!)
  • Widen funding APR column from 9 to 10 chars

Test plan

  • Verify Decibel shows in exchange list with ERR status when no token set
  • Verify APR column shows compact values like +245M%, +24B%
  • Verify stats panel best/median use compact formatting
  • cargo check --workspace passes

Generated with Claude Code

zacharyr0th and others added 5 commits March 3, 2026 12:57
Full-terminal status dashboard with exchanges, credentials,
funding opportunities, and account overview panels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Modular rewrite with 6-panel dashboard: exchanges, credentials,
funding, account, stats, header/footer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replaces monolithic lib.rs with modular structure:
- helpers.rs: shared display formatters
- state.rs: centralized DashState
- layout.rs: grid proportions
- style.rs: semantic color constants
- widgets/: header, footer, exchanges, credentials, funding, account, stats

New panels: credentials & trading readiness, account overview.
New pollers: auth check (30s), account state (10s), circuit breakers, rate limits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add TerminalGuard for panic-safe terminal cleanup (Drop impl)
- Consolidate SPINNER_FRAMES into helpers module, remove duplication
- Fix time format from mixed %H:%M %p to %H:%M
- Fix header padding to use dynamic width calculation
- Fix dead block binding in funding widget loading state

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…l, compact APR display

- Change DOWN to ERR for disconnected exchange status
- Always register Decibel connector so it appears in TUI even without credentials
- Add T%/B% tiers to format_rate for compact display of large APR values
- Use format_rate in stats widget instead of raw formatting
- Widen funding APR column from 9 to 10 chars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
perps-website Ready Ready Preview, Comment Mar 3, 2026 11:19pm

Request Review

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zacharyr0th zacharyr0th merged commit 15e193d into main Mar 3, 2026
7 of 9 checks passed
@zacharyr0th zacharyr0th deleted the fix/tui-err-decibel-apr branch March 3, 2026 23:22
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.

1 participant