Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b4280630c | ||
|
|
90acbcb968 | ||
|
|
f2f2be1305 | ||
|
|
f17694622c | ||
|
|
aa10f77776 |
@@ -429,7 +429,9 @@ struct SparklineView: View {
|
||||
|
||||
var body: some View {
|
||||
GeometryReader { geo in
|
||||
if data.count > 1 {
|
||||
let plotData = data.count == 1 ? [data[0], data[0]] : data
|
||||
if plotData.count > 1 {
|
||||
let data = plotData
|
||||
let w = geo.size.width
|
||||
let h = geo.size.height
|
||||
let minV = data.min() ?? 0
|
||||
@@ -1170,3 +1172,4 @@ struct UpdateSheet: View {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.1.3-beta.2</string>
|
||||
<string>1.1.3-beta.3</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>36</string>
|
||||
<string>37</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>13.0</string>
|
||||
<key>LSUIElement</key>
|
||||
@@ -45,3 +45,4 @@
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
|
||||
@@ -37,6 +37,9 @@ class UsageViewModel: ObservableObject {
|
||||
let saved = UserDefaults.standard.double(forKey: "refresh_interval")
|
||||
refreshInterval = saved > 0 ? saved : 60
|
||||
showInMenuBar = UserDefaults.standard.object(forKey: "show_in_menubar") as? Bool ?? true
|
||||
if let saved = UserDefaults.standard.object(forKey: "burn_history") as? [String: [Double]] {
|
||||
burnHistoryStore = saved
|
||||
}
|
||||
loadPlaceholderData()
|
||||
}
|
||||
|
||||
@@ -84,8 +87,9 @@ class UsageViewModel: ObservableObject {
|
||||
history.append(limits[i].usedPercent)
|
||||
if history.count > maxHistorySamples { history.removeFirst() }
|
||||
burnHistoryStore[key] = history
|
||||
if history.count > 1 { limits[i].burnHistory = history }
|
||||
limits[i].burnHistory = history
|
||||
}
|
||||
UserDefaults.standard.set(burnHistoryStore, forKey: "burn_history")
|
||||
checkLimitNotifications(for: limits)
|
||||
} catch AppError.notAuthenticated {
|
||||
isNotAuthenticated = true
|
||||
@@ -313,3 +317,4 @@ extension Notification.Name {
|
||||
static let limitReset = Notification.Name("limitReset")
|
||||
static let openUpdateSheet = Notification.Name("openUpdateSheet")
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
[](https://swift.org)
|
||||
[](https://github.com/superdooper86/claudechecker/releases)
|
||||
[](LICENSE)
|
||||
[](https://github.com/superdooper86/claudechecker/releases/tag/v1.1.3-beta.1) <!-- BETA_BADGE -->
|
||||
[](https://github.com/superdooper86/claudechecker/releases/tag/v1.1.3-beta.2) <!-- BETA_BADGE -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
+4
-1
@@ -2,4 +2,7 @@
|
||||
|
||||
### UI polish
|
||||
- Limit headers now read "5 Hour Limit" and "7 Day Limit" instead of "5hr"
|
||||
- Tapping anywhere on the blue update banner now opens the update window (not just the Update button)
|
||||
- Tapping anywhere on the blue update banner now opens the update window
|
||||
|
||||
### Session Diary fix
|
||||
- Burn history is now persisted across app launches — the sparkline populates immediately on first open instead of requiring a manual refresh
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "1.1.3-beta.1",
|
||||
"url": "https://github.com/superdooper86/claudechecker/releases/download/v1.1.3-beta.1/ClaudeChecker.zip",
|
||||
"notes": "## What's new in v1.1.3\n\n### Compact update banner\nThe in-app update banner no longer shows full release notes — it now shows a short message and lets you tap Update to read what's new in the install sheet. This prevents the banner from pushing content around when release notes are long."
|
||||
"version": "1.1.3-beta.2",
|
||||
"url": "https://github.com/superdooper86/claudechecker/releases/download/v1.1.3-beta.2/ClaudeChecker.zip",
|
||||
"notes": "## What's new in v1.1.3\n\n### UI polish\n- Limit headers now read \"5 Hour Limit\" and \"7 Day Limit\" instead of \"5hr\"\n- Tapping anywhere on the blue update banner now opens the update window (not just the Update button)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user