mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 00:14:15 +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:
1 parent
de23029b57
commit
890fd140f2
4 files changed
+13
-2
No files matched your search
@@ -2,6 +2,9 @@
|
|||||||
* Type definitions for Account Flow Visualization
|
* Type definitions for Account Flow Visualization
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Account tier for subscription level */
|
||||||
|
export type AccountTier = 'free' | 'pro' | 'ultra' | 'unknown';
|
||||||
|
|
||||||
/** Position offset for draggable cards */
|
/** Position offset for draggable cards */
|
||||||
export interface DragOffset {
|
export interface DragOffset {
|
||||||
x: number;
|
x: number;
|
||||||
@@ -17,6 +20,8 @@ export interface AccountData {
|
|||||||
lastUsedAt?: string;
|
lastUsedAt?: string;
|
||||||
color: string;
|
color: string;
|
||||||
paused?: boolean;
|
paused?: boolean;
|
||||||
|
/** Account tier (Antigravity only) */
|
||||||
|
tier?: AccountTier;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProviderData {
|
export interface ProviderData {
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ export function useAuthMonitorData(): AuthMonitorData {
|
|||||||
color: ACCOUNT_COLORS[colorIndex % ACCOUNT_COLORS.length],
|
color: ACCOUNT_COLORS[colorIndex % ACCOUNT_COLORS.length],
|
||||||
projectId: account.projectId,
|
projectId: account.projectId,
|
||||||
paused: account.paused,
|
paused: account.paused,
|
||||||
|
tier: account.tier,
|
||||||
};
|
};
|
||||||
accountsList.push(row);
|
accountsList.push(row);
|
||||||
providerData.accounts.push(row);
|
providerData.accounts.push(row);
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
* Type definitions for Auth Monitor components
|
* Type definitions for Auth Monitor components
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Account tier for subscription level */
|
||||||
|
export type AccountTier = 'free' | 'pro' | 'ultra' | 'unknown';
|
||||||
|
|
||||||
export interface AccountRow {
|
export interface AccountRow {
|
||||||
id: string;
|
id: string;
|
||||||
email: string;
|
email: string;
|
||||||
@@ -16,6 +19,8 @@ export interface AccountRow {
|
|||||||
projectId?: string;
|
projectId?: string;
|
||||||
/** Whether account is paused (skipped in quota rotation) */
|
/** Whether account is paused (skipped in quota rotation) */
|
||||||
paused?: boolean;
|
paused?: boolean;
|
||||||
|
/** Account tier (Antigravity only) */
|
||||||
|
tier?: AccountTier;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProviderStats {
|
export interface ProviderStats {
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ export interface OAuthAccount {
|
|||||||
paused?: boolean;
|
paused?: boolean;
|
||||||
/** ISO timestamp when account was paused */
|
/** ISO timestamp when account was paused */
|
||||||
pausedAt?: string;
|
pausedAt?: string;
|
||||||
/** Account tier: free or paid (Pro/Ultra combined) */
|
/** Account tier: free, pro, ultra, or unknown */
|
||||||
tier?: 'free' | 'paid' | 'unknown';
|
tier?: 'free' | 'pro' | 'ultra' | 'unknown';
|
||||||
/** GCP Project ID (Antigravity only) - read-only */
|
/** GCP Project ID (Antigravity only) - read-only */
|
||||||
projectId?: string;
|
projectId?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user