Skip to content

refactor: compact reset credits menu rows and simplify copy - #30

Merged
lonewolfyx merged 1 commit into
mainfrom
refactor/reset-credits-row-layout
Jul 15, 2026
Merged

lonewolfyx merged 1 commit into
mainfrom
refactor/reset-credits-row-layout

Conversation

@lonewolfyx

@lonewolfyx lonewolfyx commented Jul 15, 2026 •

Copy link
Copy Markdown
Member
  • collapse reset credit rows from a stacked to a horizontal layout and reduce row height (68→28)
  • pin the credit title to a fixed "Full reset" label and drop the now-unused resetCreditDefaultTitle localization
  • shorten the reset credit expiration wording ("Expires on X" → "Expires X", "将于 X 到期" → "X 到期")
  • apply monospaced digits and layout priority to the expiration subtitle for stable alignment

Summary by CodeRabbit

  • UI Improvements
    • Updated the reset credits menu layout for a more compact and consistent presentation.
    • Improved reset-credit row alignment, text truncation, and subtitle formatting.
    • Standardized the full reset option’s title.
    • Simplified expiration messages in English and Simplified Chinese.

- collapse reset credit rows from a stacked to a horizontal layout and reduce row height (68→28)
- pin the credit title to a fixed "Full reset" label and drop the now-unused resetCreditDefaultTitle localization
- shorten the reset credit expiration wording ("Expires on X" → "Expires X", "将于 X 到期" → "X 到期")
- apply monospaced digits and layout priority to the expiration subtitle for stable alignment
@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8f92547c-8530-4fde-b1a3-2895fee3ceba

📥 Commits

Reviewing files that changed from the base of the PR and between 2505f16 and bd7cce5.

📒 Files selected for processing (2)
  • Sources/AgentBar/Localization/I18n.swift
  • Sources/AgentBar/UI/QuotaPopoverView.swift

📝 Walkthrough

Walkthrough

Reset-credit localization strings and expiration formatting were updated. The quota popover now uses a fixed full-reset title, reduced menu row height, and horizontally arranged detail rows with revised truncation and subtitle formatting.

Changes

Reset credit updates

Layer / File(s) Summary
Localized reset credit labels
Sources/AgentBar/Localization/I18n.swift
Removes the unused default reset-credit title and shortens English and Simplified Chinese expiration labels.
Reset credit menu layout
Sources/AgentBar/UI/QuotaPopoverView.swift
Adds a fixed full-reset title, reduces menu row height, and updates detail rows to use horizontal layout, truncation, monospaced digits, and layout priority.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/reset-credits-row-layout

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lonewolfyx
lonewolfyx merged commit 344cf9a into main Jul 15, 2026
1 check was pending
@lonewolfyx
lonewolfyx deleted the refactor/reset-credits-row-layout branch July 15, 2026 06:45
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