Skip to content

Show LLM credit balance in reef UI header#30

Merged
pranavpatilsce merged 1 commit intomainfrom
feat/show-llm-balance
Apr 8, 2026
Merged

Show LLM credit balance in reef UI header#30
pranavpatilsce merged 1 commit intomainfrom
feat/show-llm-balance

Conversation

@pranavpatilsce
Copy link
Copy Markdown
Contributor

Summary

Shows the LLM credit balance next to the + credits button in the reef header. Refreshes every 30s and immediately after a top-up.

What changed

  • New proxy route GET /ui/api/credits → forwards to vers-landing's /api/reef/credits
  • Balance label ($X.XX) displayed left of the + credits button with hover tooltip showing spend
  • refreshCreditBalance() called on init, every 30s, and after any successful top-up (header or inline)

Cross-repo context

Depends on vers-landing feat/dual-credit-balances which adds the /api/reef/credits endpoint.

- Balance displayed next to + credits button, refreshes every 30s
- Balance updates immediately after successful top-up (header and inline)
- New proxy route GET /ui/api/credits forwards to vers-landing
@pranavpatilsce pranavpatilsce merged commit 0b148f4 into main Apr 8, 2026
1 check passed
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