Merge nucleic/sleek-opal-seal into dev
This commit is contained in:
@@ -108,9 +108,9 @@ struct QuotaCard: View {
|
|||||||
// MARK: - Codex quota card (the Mac's CodexUsageCard, dashboard form)
|
// MARK: - Codex quota card (the Mac's CodexUsageCard, dashboard form)
|
||||||
|
|
||||||
/// The Codex counterpart to `QuotaCard`, rendered from `DashboardSnapshot.codexUsage` — the
|
/// The Codex counterpart to `QuotaCard`, rendered from `DashboardSnapshot.codexUsage` — the
|
||||||
/// rolling windows the host's `codex` agent reported (`primary` ≈ 5-hour, `secondary` ≈ weekly).
|
/// rolling weekly window the host's `codex` agent reported (its short ~5-hour window has been
|
||||||
/// Renders nothing until a Codex chat has reported usage, so Claude-only users never carry an
|
/// retired). Renders nothing until a Codex chat has reported usage, so Claude-only users never
|
||||||
/// empty card. Same thresholds, icons, and copy as the Claude card.
|
/// carry an empty card. Same thresholds, icons, and copy as the Claude card.
|
||||||
struct CodexQuotaCard: View {
|
struct CodexQuotaCard: View {
|
||||||
let usage: CodexUsage?
|
let usage: CodexUsage?
|
||||||
|
|
||||||
@@ -122,9 +122,7 @@ struct CodexQuotaCard: View {
|
|||||||
Image(systemName: "gauge.with.dots.needle.67percent").foregroundStyle(.secondary)
|
Image(systemName: "gauge.with.dots.needle.67percent").foregroundStyle(.secondary)
|
||||||
Text("Codex").font(.headline)
|
Text("Codex").font(.headline)
|
||||||
}
|
}
|
||||||
windowRow(usage.primary, fallbackLabel: "5-hour limit",
|
windowRow(usage.weekly, fallbackLabel: "Weekly limit",
|
||||||
icon: QuotaFormat.fiveHourIcon, now: context.date)
|
|
||||||
windowRow(usage.secondary, fallbackLabel: "Weekly limit",
|
|
||||||
icon: QuotaFormat.weeklyIcon, now: context.date)
|
icon: QuotaFormat.weeklyIcon, now: context.date)
|
||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|||||||
Reference in New Issue
Block a user