Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(usage): deduplicate CLI proxy subscription accounts #9584

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/9584/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 48 additions and 41 deletions (loading 2).

x
0 of 5 viewed, 5 left
16 additions and 7 deletionsapps/mobile/src/features/usage/UsageLimitsSection.tsxModified
View file
@@ -28,6 +28,7 @@
import { SettingsSection } from "../settings/components/SettingsSection";
​
const PACE_LABEL = { ahead: "ahead of pace", on: "on pace", under: "under pace" } as const;
+const DRIVER_LABEL: Partial<Record<string, string>> = { codex: "Codex", claudeAgent: "Claude" };
​
/**
* One window as a bar spanning its whole duration: the fill is quota spent,
@@ -74,6 +75,7 @@
​
function AccountLimits(props: {
readonly label: string;
+ readonly instanceLabel: string;
readonly detail: string | undefined;
readonly limits: ServerProvider["usageLimits"];
readonly now: number;
@@ -85,10 +87,13 @@
const notice = limitsNotice(limits);
return (
<View className={props.first ? "gap-3 p-4" : "gap-3 border-t border-border-subtle p-4"}>
- <View className="flex-row items-baseline gap-2">
+ <View className="flex-row flex-wrap items-baseline gap-x-2 gap-y-1">
<Text className="text-lg text-foreground">{props.label}</Text>
+ {props.instanceLabel !== props.label ? (
+ <Text className="shrink text-xs text-foreground-tertiary">· {props.instanceLabel}</Text>
+ ) : null}
{props.detail ? (
- <Text className="text-sm text-foreground-muted">{props.detail}</Text>