2026-03-29Dashboards, Statistics, & Revision Queue Modal (7 sessions)
Full dashboard and statistics feature suite. Book overview dashboard shows pipeline progress, word counts per chapter, revision task completion, recent file activity, and project health. Writing statistics view powered by Recharts with token usage trends, per-agent/per-phase breakdowns, word count history, and cost estimates. Revision queue refactored from full-page view to a slide-over modal accessible from any view. New domain types, services, IPC channels, preload bridge endpoints, and Zustand stores.
src/domain/types.ts— BookDashboardData, BookStatistics, RecentFile, RevisionTaskItem, UsageTimePoint, AgentUsageBreakdown, PhaseUsageBreakdown, WordCountSnapshot typessrc/domain/interfaces.ts— IDashboardService, IStatisticsService interfacessrc/application/DashboardService.ts— Book overview data aggregationsrc/application/StatisticsService.ts— Usage trends, cost estimatessrc/infrastructure/database/DatabaseService.ts— Dashboard & statistics queriessrc/renderer/components/Dashboard/DashboardView.tsx— Book overview dashboardsrc/renderer/components/Statistics/StatisticsView.tsx— Writing statistics with chartssrc/renderer/components/RevisionQueue/RevisionQueueModal.tsx— Slide-over revision queuesrc/renderer/stores/dashboardStore.ts,statisticsStore.ts,rightPanelStore.ts— New Zustand stores
src/main/index.ts— Instantiates DashboardService, StatisticsServicesrc/main/ipc/handlers.ts— Added dashboard:getData, statistics:get, statistics:recordSnapshot handlerssrc/preload/index.ts— Added dashboard, statistics namespacessrc/renderer/components/Layout/AppLayout.tsx— Dashboard and statistics views in routingsrc/renderer/stores/viewStore.ts— Added 'dashboard' and 'statistics' view types