Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(usage): keep hub accounts visible through quota failures #32803

ClosedDJProspero1(GitHub profile, opens in a new tab)wants to merge 14 commits intomain fromrefs/pull/32803/headopened View on GitHub

Showing 9 changed files with 98 additions and 6 deletions (loading 6).

x
0 of 9 viewed, 9 left
24 additions and 0 deletionsapps/mobile/src/features/usage/UsageLimitsPooled.tsxModified
View file
@@ -444,6 +444,30 @@
{providerClients.get(pool.driver)?.label ?? pool.driver}
</Text>
</View>
+ {pool.accounts
+ .filter(
+ (account) =>
+ account.limits.windows.length === 0 ||
+ account.limits.unavailable?.reason === "probeFailed",
+ )
+ .map((account) => (
+ <View
+ key={account.key}
+ className="flex-row items-center gap-3 rounded-[24px] border-continuous bg-grouped-card p-4"
+ >
+ <Text
+ numberOfLines={1}
+ className="min-w-0 flex-1 text-sm font-t3-medium text-foreground"
+ >
+ {accountName(account)}
+ </Text>
+ <Text className="text-xs text-foreground-muted">
+ {account.limits.windows.length > 0
+ ? "Last known limits"
+ : "Limits unavailable"}
+ </Text>
+ </View>
+ ))}
{windows.map((window) => {
const details =