mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +00:00
feat(ui): add granular account tier types (pro/ultra/free)
- update AccountTier from binary to granular - add tier field to AccountRow and AccountData types - pass tier through hooks data flow
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
* Type definitions for Account Flow Visualization
|
||||
*/
|
||||
|
||||
/** Account tier for subscription level */
|
||||
export type AccountTier = 'free' | 'pro' | 'ultra' | 'unknown';
|
||||
|
||||
/** Position offset for draggable cards */
|
||||
export interface DragOffset {
|
||||
x: number;
|
||||
@@ -17,6 +20,8 @@ export interface AccountData {
|
||||
lastUsedAt?: string;
|
||||
color: string;
|
||||
paused?: boolean;
|
||||
/** Account tier (Antigravity only) */
|
||||
tier?: AccountTier;
|
||||
}
|
||||
|
||||
export interface ProviderData {
|
||||
|
||||
@@ -101,6 +101,7 @@ export function useAuthMonitorData(): AuthMonitorData {
|
||||
color: ACCOUNT_COLORS[colorIndex % ACCOUNT_COLORS.length],
|
||||
projectId: account.projectId,
|
||||
paused: account.paused,
|
||||
tier: account.tier,
|
||||
};
|
||||
accountsList.push(row);
|
||||
providerData.accounts.push(row);
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
* Type definitions for Auth Monitor components
|
||||
*/
|
||||
|
||||
/** Account tier for subscription level */
|
||||
export type AccountTier = 'free' | 'pro' | 'ultra' | 'unknown';
|
||||
|
||||
export interface AccountRow {
|
||||
id: string;
|
||||
email: string;
|
||||
@@ -16,6 +19,8 @@ export interface AccountRow {
|
||||
projectId?: string;
|
||||
/** Whether account is paused (skipped in quota rotation) */
|
||||
paused?: boolean;
|
||||
/** Account tier (Antigravity only) */
|
||||
tier?: AccountTier;
|
||||
}
|
||||
|
||||
export interface ProviderStats {
|
||||
|
||||
@@ -83,8 +83,8 @@ export interface OAuthAccount {
|
||||
paused?: boolean;
|
||||
/** ISO timestamp when account was paused */
|
||||
pausedAt?: string;
|
||||
/** Account tier: free or paid (Pro/Ultra combined) */
|
||||
tier?: 'free' | 'paid' | 'unknown';
|
||||
/** Account tier: free, pro, ultra, or unknown */
|
||||
tier?: 'free' | 'pro' | 'ultra' | 'unknown';
|
||||
/** GCP Project ID (Antigravity only) - read-only */
|
||||
projectId?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user