Skip to content

feat(mobile): show Codex weekly usage in chat header - #210

Open
jarynclouatre wants to merge 2 commits into
K9i-0:mainfrom
jarynclouatre:feat/codex-usage-chat-header
Open

feat(mobile): show Codex weekly usage in chat header#210
jarynclouatre wants to merge 2 commits into
K9i-0:mainfrom
jarynclouatre:feat/codex-usage-chat-header

Conversation

@jarynclouatre

Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in Usage setting for Codex chat headers
  • show only the compact weekly quota remaining percentage in Codex chats
  • refresh usage through the Bridge and clear stale values across reconnects
  • localize the setting and accessibility label in English, Japanese, Korean, and Chinese

Responsive behavior

The badge is limited to 44 px and scales its percentage text down when needed. A widget test covers a 320 px-wide app bar with a long chat title and existing actions.

Claude usage

Claude subscription usage remains linked to the official Claude Usage page. Anthropic currently has no supported API for individual Pro or Max subscription quota percentages, so this PR does not query undocumented endpoints or show estimated Claude quota.

Verification

  • dart format apps/mobile
  • dart analyze apps/mobile (no new issues; existing info-level lints remain)
  • flutter test
  • flutter test test/codex_weekly_usage_badge_test.dart
  • independent self-review: LGTM

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