{tr('usage.title')}
{#if loading}
{:else if !usage}
{tr('usage.failedToLoad')}
{:else}
{tr('usage.overview')}
{formatNumber(usage.totals.lifetime_tokens)}
{tr('usage.lifetimeTokens')}
{formatNumber(usage.totals.peak_daily_tokens)}
{tr('usage.peakTokens')}
{formatDuration(usage.totals.longest_chat_seconds)}
{tr('usage.longestActiveChat')}
{usage.totals.current_streak.toLocaleString()}
{tr('usage.currentStreak')}
{usage.totals.longest_streak.toLocaleString()}
{tr('usage.longestStreak')}
{tr('usage.tokenActivity')}
{#each heatmapModes as mode}
(heatmapMode = mode.value)} > {tr(mode.label)}
{/each}
{#each heatmapCells as entry} {#if entry}
{:else}
{/if} {/each}
{#each monthLabels as month}
{month.label}
{/each}
{#if usage.top_models.length > 0}
{#each usage.top_models.slice(0, 6) as model}
{modelName(model.model_id)}
{/each}
{/if}
{#if !hasUsage}
{tr('usage.activity')}
{tr('usage.noData')}
{:else}
{tr('usage.activityInsights')}
{tr('usage.models')}
{usage.totals.models_used.toLocaleString()}
{tr('usage.averageTokensPerChat')}
{formatNumber(usage.insights.average_tokens_per_chat)}
{tr('usage.averageMessagesPerActiveDay')}
{usage.insights.average_messages_per_active_day.toLocaleString()}
{tr('usage.userMessages')}
{usage.totals.user_messages.toLocaleString()} · {usage.insights .user_message_share}%
{tr('usage.assistantMessages')}
{usage.totals.assistant_messages.toLocaleString()} · {usage.insights .assistant_message_share}%
{tr('usage.totalChats')}
{usage.totals.total_chats.toLocaleString()}
{tr('usage.topModels')}
{#if usage.top_models.length === 0}
{tr('usage.noModelUsage')}
{:else}
{#each usage.top_models as model}
{modelName(model.model_id)}
{model.messages.toLocaleString()} {tr('usage.messages')} · {formatNumber(model.total_tokens)}
{/each}
{/if}
{#if usage.top_tools.length > 0}
{tr('usage.mostUsedTools')}
{#each usage.top_tools as tool}
{tool.name}
{tool.count.toLocaleString()} {tr('usage.runs')}
{/each}
{/if} {/if}
{tr('usage.estimateNote')}
{/if}