Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.2.4</string>
<string>0.2.5</string>
<key>CFBundleVersion</key>
<string>5</string>
<string>6</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions Sources/CodexLimits/AnalyticsWorkspace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ struct AccountTokenActivityRange: Equatable, Sendable {
let day: TimeInterval = 86_400
self.days = days
.filter {
$0.date < interval.end
&& $0.date.addingTimeInterval(day) > interval.start
$0.date >= interval.start
&& $0.date.addingTimeInterval(day) <= interval.end
}
.sorted { $0.date < $1.date }

Expand Down
6 changes: 4 additions & 2 deletions Sources/CodexLimits/MenuContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1601,8 +1601,10 @@ private struct TokenActivityWorkspace: View {
if range.days.isEmpty {
WorkspaceMessage(
icon: "chart.xyaxis.line",
title: "No account token activity",
message: "Codex did not return daily totals for this range."
title: "No complete daily totals",
message: store.state.timeRange == .currentWindow
? "Choose 4 weeks to see account history."
: "Codex did not return a complete day for this range."
) {
EmptyView()
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/CodexLimitsTests/AnalyticsWorkspaceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ final class AnalyticsWorkspaceTests: XCTestCase {
interval: interval
)

XCTAssertEqual(range.days.count, 4)
XCTAssertEqual(range.days.map(\.tokens), [200, 300])
XCTAssertEqual(range.completeDayCount, 2)
XCTAssertEqual(range.completeTokens, 500)

Expand Down