style: Fix inconsistent indentation in components and imports

This commit is contained in:
gsxdsm
2026-02-15 22:50:01 -08:00
parent ac2e8cfa88
commit bea26a6b61
2 changed files with 26 additions and 30 deletions

View File

@@ -307,16 +307,16 @@ export function UsagePopover() {
const codexMaxPercentage = codexUsage?.rateLimits const codexMaxPercentage = codexUsage?.rateLimits
? Math.max( ? Math.max(
codexUsage.rateLimits.primary?.usedPercent || 0, codexUsage.rateLimits.primary?.usedPercent || 0,
codexUsage.rateLimits.secondary?.usedPercent || 0 codexUsage.rateLimits.secondary?.usedPercent || 0
) )
: 0; : 0;
const zaiMaxPercentage = zaiUsage?.quotaLimits const zaiMaxPercentage = zaiUsage?.quotaLimits
? Math.max( ? Math.max(
zaiUsage.quotaLimits.tokens?.usedPercent || 0, zaiUsage.quotaLimits.tokens?.usedPercent || 0,
zaiUsage.quotaLimits.mcp?.usedPercent || 0 zaiUsage.quotaLimits.mcp?.usedPercent || 0
) )
: 0; : 0;
// Gemini quota from Google Cloud API (if available) // Gemini quota from Google Cloud API (if available)
@@ -346,31 +346,31 @@ export function UsagePopover() {
const indicatorInfo = const indicatorInfo =
activeTab === 'claude' activeTab === 'claude'
? { ? {
icon: AnthropicIcon, icon: AnthropicIcon,
percentage: claudeSessionPercentage, percentage: claudeSessionPercentage,
isStale: isClaudeStale, isStale: isClaudeStale,
title: `Session usage (${CLAUDE_SESSION_WINDOW_HOURS}h window)`, title: `Session usage (${CLAUDE_SESSION_WINDOW_HOURS}h window)`,
} }
: activeTab === 'codex' : activeTab === 'codex'
? { ? {
icon: OpenAIIcon, icon: OpenAIIcon,
percentage: codexWindowUsage ?? 0, percentage: codexWindowUsage ?? 0,
isStale: isCodexStale, isStale: isCodexStale,
} }
: activeTab === 'zai' : activeTab === 'zai'
? { ? {
icon: ZaiIcon, icon: ZaiIcon,
percentage: zaiMaxPercentage, percentage: zaiMaxPercentage,
isStale: isZaiStale, isStale: isZaiStale,
title: `Usage (z.ai)`, title: `Usage (z.ai)`,
} }
: activeTab === 'gemini' : activeTab === 'gemini'
? { ? {
icon: GeminiIcon, icon: GeminiIcon,
percentage: geminiMaxPercentage, percentage: geminiMaxPercentage,
isStale: isGeminiStale, isStale: isGeminiStale,
title: `Usage (Gemini)`, title: `Usage (Gemini)`,
} }
: null; : null;
const statusColor = getStatusInfo(indicatorInfo.percentage).color; const statusColor = getStatusInfo(indicatorInfo.percentage).color;

View File

@@ -41,11 +41,7 @@ import type {
Notification, Notification,
} from '@automaker/types'; } from '@automaker/types';
import type { Message, SessionListItem } from '@/types/electron'; import type { Message, SessionListItem } from '@/types/electron';
import type { import type { ClaudeUsageResponse, CodexUsageResponse, GeminiUsage } from '@/store/app-store';
ClaudeUsageResponse,
CodexUsageResponse,
GeminiUsage,
} from '@/store/app-store';
import type { WorktreeAPI, GitAPI, ModelDefinition, ProviderStatus } from '@/types/electron'; import type { WorktreeAPI, GitAPI, ModelDefinition, ProviderStatus } from '@/types/electron';
import type { ModelId, ThinkingLevel, ReasoningEffort, Feature } from '@automaker/types'; import type { ModelId, ThinkingLevel, ReasoningEffort, Feature } from '@automaker/types';
import { getGlobalFileBrowser } from '@/contexts/file-browser-context'; import { getGlobalFileBrowser } from '@/contexts/file-browser-context';