From 255f3f6cd53d98c41254fb0ecb4b159b08761e0a Mon Sep 17 00:00:00 2001 From: superdooper86 Date: Thu, 7 May 2026 13:44:05 +0200 Subject: [PATCH] =?UTF-8?q?v2.0.2=20=E2=80=94=20Fix=20unlimited=20monthly?= =?UTF-8?q?=20limit=20display=20in=20extra=20usage=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ClaudeChecker/ContentView.swift | 20 +++++++++++++++----- ClaudeChecker/Info.plist | 4 ++-- README.md | 2 +- version.json | 6 +++--- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/ClaudeChecker/ContentView.swift b/ClaudeChecker/ContentView.swift index f4b15b7..ad39ef0 100644 --- a/ClaudeChecker/ContentView.swift +++ b/ClaudeChecker/ContentView.swift @@ -504,12 +504,22 @@ struct ExtraUsageRow: View { .font(.system(size: 12, weight: .semibold)) .foregroundColor(.secondary) Spacer() - Text("\(extra.currency ?? "") \(String(format: "%.2f", (extra.usedCredits ?? 0) / 100)) / \(String(format: "%.2f", (extra.monthlyLimit ?? 0) / 100))") - .font(.system(size: 11.5, weight: .medium).monospacedDigit()) - .foregroundColor(color) + Group { + let spent = String(format: "%.2f", (extra.usedCredits ?? 0) / 100) + let currency = extra.currency ?? "" + if let limit = extra.monthlyLimit { + Text("\(currency) \(spent) / \(String(format: "%.2f", limit / 100))") + } else { + Text("\(currency) \(spent) / Unlimited") + } + } + .font(.system(size: 11.5, weight: .medium).monospacedDigit()) + .foregroundColor(color) + } + if extra.monthlyLimit != nil { + ProgressBar(value: pct / 100, color: color) + .frame(height: 4) } - ProgressBar(value: pct / 100, color: color) - .frame(height: 4) } .padding(12) .background(Color.primary.opacity(0.04)) diff --git a/ClaudeChecker/Info.plist b/ClaudeChecker/Info.plist index 252f067..815cac7 100644 --- a/ClaudeChecker/Info.plist +++ b/ClaudeChecker/Info.plist @@ -15,9 +15,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.0.1 + 2.0.2 CFBundleVersion - 8 + 9 LSMinimumSystemVersion 13.0 LSUIElement diff --git a/README.md b/README.md index 983df95..7dc070b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![macOS](https://img.shields.io/badge/macOS-13.0+-000000?style=flat&logo=apple&logoColor=white)](https://www.apple.com/macos/) [![Swift](https://img.shields.io/badge/Swift-5.9-F05138?style=flat&logo=swift&logoColor=white)](https://swift.org) -[![Version](https://img.shields.io/badge/version-2.0.1-orange?style=flat)](https://github.com/superdooper86/claudechecker/releases) +[![Version](https://img.shields.io/badge/version-2.0.2-orange?style=flat)](https://github.com/superdooper86/claudechecker/releases) [![License](https://img.shields.io/badge/license-MIT-blue?style=flat)](LICENSE) diff --git a/version.json b/version.json index f225dbf..173a6e0 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "2.0.1", - "url": "https://github.com/superdooper86/claudechecker/releases/download/v2.0.1/ClaudeChecker.zip", - "notes": "Notification fixes." + "version": "2.0.2", + "url": "https://github.com/superdooper86/claudechecker/releases/download/v2.0.2/ClaudeChecker.zip", + "notes": "Fixed extra usage section." }