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:
kaitranntt
2026-01-28 16:30:41 -05:00
parent de23029b57
commit 890fd140f2
4 changed files with 13 additions and 2 deletions
@@ -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 {
+2 -2
View File
@@ -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;
}