CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Improve visual hierarchy in Codex limit reset credit section

Open dstier-git opened this issue 5 months ago • 2 comments

Issue

Hi there, had a polish request for the look of the Codex limit reset credit section.

Though the string showing the number of resets remaining is vertically aligned by bottom with the section header, the difference in font size is visually unsettling.

The two smaller text sections being both right and below the section header lead to a lack of visual hierarchy that makes skimming take just a bit longer, especially because the current layout fails to highlight the actual number of remaining resets.

Proposed fix

  • Move the number of limit resets below the section header, either to the right of or below the next limit expiration
  • Change the color, place a badge around, or increase the size of the actual number of remaining resets

Current layout

Image

dstier-git avatar Jun 30 '26 07:06 dstier-git

Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 30, 2026, 3:52 AM ET / 07:52 UTC.

Summary Keep open: current main and v0.37.2 still render the Codex reset-credit count as small secondary trailing text beside the section title, so the visual hierarchy polish request remains valid and tightly scoped.

Reproducibility: yes. Source inspection confirms the reported layout: the reset count is a small secondary footnote on the title row and the expiry detail sits below.

Next step The affected SwiftUI view and focused tests make this a narrow UI polish candidate with no provider/auth behavior changes.

Review details

Best possible solution:

Update CodexResetCreditsContent so the available reset count becomes a primary visual element near the expiry detail, without changing Codex OAuth fetching, reset-credit data models, redemption, or settings policy.

Do we have a high-confidence way to reproduce the issue?

Yes. Source inspection confirms the reported layout: the reset count is a small secondary footnote on the title row and the expiry detail sits below.

Is this the best way to solve the issue?

Yes. The narrow maintainable path is a local SwiftUI composition change with focused menu-card/model coverage, not provider/auth or reset-credit data-model changes.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The visual treatment should preserve compact menu width, localization resilience, highlighted-state contrast, and the combined accessibility label.

Codex review notes: model internal, reasoning high; reviewed against f5340ad62732.

Label changes

Label justifications:

  • P3: This is a low-risk UI polish request for an existing Codex reset-credit section, not an urgent broken workflow.
  • impact:other: The issue affects how quickly users can identify available expiring reset credits in the Codex menu, which is meaningful UI impact outside the specific owned categories.
Evidence reviewed

Acceptance criteria:

  • swift test --filter CodexResetCreditsMenuCardTests
  • swift test --filter MenuCardHeightFingerprintTests
  • make check

What I checked:

Likely related people:

  • steipete: Current-main blame maps the reset-credit view and tests to the v0.37.2 release commit, and the merged reset-credit PR includes a hardening commit co-authored by this account. (role: recent area contributor and release owner; confidence: high; commits: f380287041b8, 57170e008edb, a3ea16743560; files: Sources/CodexBar/MenuCardView+CodexResetCredits.swift, Sources/CodexBar/MenuCardView.swift, Tests/CodexBarTests/CodexResetCreditsMenuCardTests.swift)
  • rogdex24: Authored the merged reset-credit display PR that introduced the reset-credit menu row, count text, expiry detail, CLI output, and focused tests that this issue asks to refine. (role: feature implementer; confidence: high; commits: a3ea16743560, 1ae28cfd50eb, cbd89aa02b89; files: Sources/CodexBar/MenuCardView+CodexResetCredits.swift, Sources/CodexBar/MenuCardView.swift, Tests/CodexBarTests/CodexResetCreditsMenuCardTests.swift)
  • brahimhamichan: Opened the broader reset-credit menu PR that touches the same reset-credit view and related menu paths, although that PR is about redemption and notifications rather than this visual hierarchy request. (role: adjacent follow-up contributor; confidence: medium; commits: f84a022d0452; files: Sources/CodexBar/MenuCardView+CodexResetCredits.swift, Sources/CodexBar/StatusItemController+CodexResetCredits.swift, Tests/CodexBarTests/CodexResetCreditsMenuCardTests.swift)
How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

clawsweeper[bot] avatar Jun 30 '26 07:06 clawsweeper[bot]

Revision to proposed fix: in order to avoid the same issue of confused visual hierarchy, make the string inclduing the remaining limit number bolder than the time til expiration

dstier-git avatar Jun 30 '26 19:06 dstier-git