Skip to content

fix: OpenRouter frontend + MiniMax zero-quota filter#48

Merged
prakersh merged 1 commit intomainfrom
fix/openrouter-frontend
Mar 29, 2026
Merged

fix: OpenRouter frontend + MiniMax zero-quota filter#48
prakersh merged 1 commit intomainfrom
fix/openrouter-frontend

Conversation

@prakersh
Copy link
Copy Markdown
Contributor

Summary

OpenRouter Frontend

  • Credits quota card with dollar amount display ($0.0000 / $0.2000)
  • Provider detection in getCurrentProvider() (was falling back to Synthetic)
  • Chart rendering with Usage, Daily Usage, and Usage % series
  • Cycle Overview with "Credits" period category
  • Session table with "Credits Used" / "Session Delta" / "Snapshots" headers
  • Menubar provider card showing Credits quota
  • Settings override dropdown entry
  • README documentation

MiniMax Zero-Quota Filter

  • Filters total=0 && used=0 models from current view, history, logging history, and tracker
  • Reduces card count from 6-7 to just the active models (e.g. MiniMax-M*)
  • Applied consistently across all endpoints including menubar

Test Plan

  • ./app.sh --test - all 14 packages pass with race detection
  • OpenRouter tab renders Credits card, insights, charts, cycle overview
  • MiniMax tab shows only active quota models
  • Menubar shows OpenRouter with Credits at correct percentage
  • No JS console errors
  • Anthropic/Codex/other tabs unaffected (regression check)

…dels

- Add OpenRouter provider detection in getCurrentProvider() JS function
- Add OpenRouter Credits quota card with dynamic rendering
- Add OpenRouter to chart initialization, history rendering, and cycle overview
- Add OpenRouter to menubar provider cards and settings dropdown
- Add 'credits' to renewalCategories and quota display names
- Filter out MiniMax models with zero quota (total=0, used=0) from
  current view, history charts, logging history, tracker, and menubar
- Strip non-chart fields (isFreeTier, limit, remaining) from OpenRouter
  history response to clean up chart legends
- Update README with OpenRouter setup instructions
@prakersh prakersh merged commit 88e345c into main Mar 29, 2026
5 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2026

Codecov Report

❌ Patch coverage is 4.76190% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/web/handlers.go 0.00% 10 Missing and 2 partials ⚠️
internal/web/menubar.go 14.28% 5 Missing and 1 partial ⚠️
internal/tracker/minimax_tracker.go 0.00% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

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