Use archive totals on the dashboard and show basic metrics #17
Loading…
Reference in a new issue
No description provided.
Delete branch "b/dashboard-stats"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dashboard counts come from the statistics endpoint now instead of the first page of the document list, and a small metrics strip shows the file-type mix, OCR character volume and document-type count.
🤖 Claude AI Code Review
Summary
Dashboard now sources counts from the statistics endpoint and adds a small metrics strip. Clean, well-scoped change.
Code Quality ⭐⭐⭐⭐☆
Good use of parallel task fetching and sensible null-fallbacks for counts.
Issues
🟡 Home.razor —
_documentCountfallback uses_recentDocuments.Count(capped at 10) if statistics is null, which is exactly the paginated-page-size bug this PR aims to fix. Minor, but if the stats call fails the count silently reverts to being wrong. Acceptable as a degraded fallback, but consider showing an unknown/loading state instead.🟢 TargetFramework is
net11.0— verify this is intentional (net11.0 is not a released TFM at time of writing). Likely pre-existing and out of scope.Note: the
UserSecretsIdGUID is not a secret (it only maps to local secret storage), so no exposure concern.The fallback behavior is a reasonable degraded case and everything else is correct and well-scoped.
📊 Tokens: 5021 input + 389 output | 💰 Cost: ~$0.0348
Generated by Claude Opus 4.8 via Gitea Actions