mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 20:15:40 +00:00
fix(ui): improve paused account display in Live Account Monitor
- Add Pause icon with amber color for paused accounts - Show styled "PAUSED" badge instead of plain error text - Distinguish paused state from other errors visually
This commit is contained in:
1 parent
a931bc9745
commit
502b30a589
1 file changed
+11
-4
@@ -10,7 +10,7 @@ import {
|
|||||||
getMinClaudeQuota,
|
getMinClaudeQuota,
|
||||||
} from '@/lib/utils';
|
} from '@/lib/utils';
|
||||||
import { PRIVACY_BLUR_CLASS } from '@/contexts/privacy-context';
|
import { PRIVACY_BLUR_CLASS } from '@/contexts/privacy-context';
|
||||||
import { GripVertical, Loader2, Clock } from 'lucide-react';
|
import { GripVertical, Loader2, Clock, Pause } from 'lucide-react';
|
||||||
import { useAccountQuota } from '@/hooks/use-cliproxy-stats';
|
import { useAccountQuota } from '@/hooks/use-cliproxy-stats';
|
||||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
|
||||||
|
|
||||||
@@ -202,9 +202,16 @@ export function AccountCard({
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
) : quota?.error ? (
|
) : quota?.error ? (
|
||||||
<div className="text-[8px] text-muted-foreground/60 truncate" title={quota.error}>
|
quota.error === 'Account is paused' ? (
|
||||||
{quota.error.length > 20 ? `${quota.error.slice(0, 18)}...` : quota.error}
|
<div className="flex items-center gap-1.5 text-amber-600 dark:text-amber-400">
|
||||||
</div>
|
<Pause className="w-3 h-3" />
|
||||||
|
<span className="text-[9px] font-medium uppercase tracking-wide">Paused</span>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div className="text-[8px] text-muted-foreground/60 truncate" title={quota.error}>
|
||||||
|
{quota.error.length > 20 ? `${quota.error.slice(0, 18)}...` : quota.error}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in new issue
Block a user