feat(stats): wire totalStories stat tile in reader dashboard

Manually adds totalStories to generated StatsDTO type and wires it from
readerStats into ReaderStatsStrip — resolves @Elicit: stories tile was
permanently showing "—".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-07 22:19:17 +02:00
committed by marcel
parent 9b5547757a
commit 1f592958d7
2 changed files with 3 additions and 1 deletions

View File

@@ -2141,6 +2141,8 @@ export interface components {
totalPersons?: number;
/** Format: int64 */
totalDocuments?: number;
/** Format: int64 */
totalStories: number;
};
PersonSummaryDTO: {
title?: string;

View File

@@ -41,7 +41,7 @@ const greetingText = $derived.by(() => {
<ReaderStatsStrip
documents={data.readerStats?.totalDocuments ?? null}
persons={data.readerStats?.totalPersons ?? null}
stories={null}
stories={data.readerStats?.totalStories ?? null}
/>
{#if data.canBlogWrite}