Skip to content

Show DeepSeek balance without quota progress bar#856

Open
jb381 wants to merge 1 commit intosteipete:mainfrom
jb381:fix/deepseek-balance-row
Open

Show DeepSeek balance without quota progress bar#856
jb381 wants to merge 1 commit intosteipete:mainfrom
jb381:fix/deepseek-balance-row

Conversation

@jb381
Copy link
Copy Markdown

@jb381 jb381 commented May 7, 2026

Summary

  • Render the DeepSeek menu card balance row as plain balance text
  • Avoid showing a quota-style progress bar / 100% left label for DeepSeek
  • Add model coverage for the DeepSeek balance row

Why

DeepSeek only exposes account balance data via its balance API. It does not expose a
session, weekly, monthly, or total quota denominator.

Showing 100% left can imply there is a fixed quota/limit, which is misleading for a
prepaid balance-style provider.

Screenshot

Before:

DeepSeek balance row with 100 percent left progress
bar

After:

DeepSeek balance row without quota progress bar

Testing

  • swift test --filter MenuCardModelTests
  • Local app build via ./Scripts/compile_and_run.sh

Copilot AI review requested due to automatic review settings May 7, 2026 07:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the DeepSeek usage menu card to display balance as plain status text instead of rendering a quota-style progress bar and “% left” label, since DeepSeek provides balance-only data (no quota denominator).

Changes:

  • Render DeepSeek’s primary metric row using statusText (and clear detailText) to bypass the progress bar UI.
  • Add a unit test asserting DeepSeek shows “Balance” with status text and no detail/reset labels.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Sources/CodexBar/MenuCardView.swift Special-cases DeepSeek primary metric to use statusText, which makes the UI render plain text instead of a percent/progress bar row.
Tests/CodexBarTests/MenuCardModelTests.swift Adds coverage ensuring the DeepSeek primary metric is surfaced as balance status text with no percentage detail/reset text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants