Repository navigation
Dashboard: real metrics, "needs your attention" panel, next-step actions - #5
Conversation
Real numbers instead of placeholders:
- OCR confidence card showed a hard-coded 99.4%; Tesseract's mean word
confidence is now stored per document (ocr_text.mean_confidence, computed
from the same image_to_data pass) and averaged, or "—" before any OCR
- Archive card said "PDF/A-1b"; it now counts real archive packages and how
many are PDF/A-2b vs standard PDF
- GET /api/projects includes title, has_archive, archive_format and
mean_confidence so the dashboard needs no extra requests
What needs me next:
- The large hero banner is replaced by a one-line status ("3 documents
waiting on you") and the main actions; export moves into an Export menu
- New panel: "Processing now" shows background OCR jobs with live progress
and Stop (polled via useActiveJobs); "Up next" lists documents waiting on
the user, oldest first, each with its next action
- Every card and table row has an always-visible next-step button (Run OCR,
Review text, Add metadata, Create archive, View archive); a running
document shows its job progress instead
- Tabs, counts and labels all derive from one helper (utils/workflow.js), so
"metadata saved but not archived" is no longer shown as Archived
- Upload page accepts ?project=<id>: "Run OCR" continues that document (it
used to open an empty upload form), and a running job reattaches to its
live progress
- Empty state explains the three steps instead of showing zeroed metrics
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jze3nDgZGqUXGceiu5RCAf
ECC Tools / Security EvidenceCommit: Security scanner evidence required (action_required) Detected 1 security-sensitive predictive risk signal(s) without scanner evidence. Mode: enforce Findings:
Touched security-sensitive paths:
Expected evidence:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 2 PR taxonomy bucket(s): Security Evidence, CI/CD Recommendation. Scanned 12 changed file(s). Roadmap taxonomy buckets: Security EvidenceSecurity-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence. Signals:
Paths:
CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 12 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 12 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
Implements dashboard improvements 1–3 from the UX review.
1. Real numbers instead of placeholders
ocr_text.mean_confidence. The value comes from the sameimage_to_datapass, so OCR does no extra work. Before any OCR it shows "—".GET /api/projectsnow includestitle,has_archive,archive_formatandmean_confidence, so the dashboard needs no extra requests.2. Lead with "what needs me next"
useActiveJobshook polls every 1.5 s while jobs run and every 8 s when idle, and reloads documents when a job finishes.3. One obvious next step per document
src/utils/workflow.js). A document with metadata saved but no package built no longer shows as "Archived".?project=<id>. "Run OCR" from the dashboard continues that document (before, it opened an empty upload form). If its OCR is already running, the page reattaches to the live progress.Testing
mean_confidence(80–100 for a clean scan) andhas_archive/archive_formatin the project list./upload?project=4with that document loaded.Known, not in scope
Below about 400 px wide the sidebar covers the whole page. This predates this PR. It only affects the web build, because the desktop window has a 1200 px minimum.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Jze3nDgZGqUXGceiu5RCAf
Generated by Claude Code