Skip to content

fix(dashboard): headline newest available run#137

Merged
mvalancy merged 1 commit into
devfrom
fix/dashboard-latest-available
Jun 19, 2026
Merged

fix(dashboard): headline newest available run#137
mvalancy merged 1 commit into
devfrom
fix/dashboard-latest-available

Conversation

@mvalancy

Copy link
Copy Markdown
Member

The live test dashboard set latest to the newest run unconditionally. When the newest entry is a cached re-stamp with no report.json on disk (available:false), the headline pointed at a run whose drill-down returns 404 ("unknown or unavailable run").

Fix: pure pickLatest() helper prefers the newest available run, falling back to newest overall, else null. Unit-tested in dashboard.test.mjs (32/32 pass). Read-only dashboard only — no data/graph/deletion paths touched.

🤖 Generated with Claude Code

The dashboard set `latest` to merged[0] unconditionally, so when the newest
run is a cached re-stamp with no report.json on disk (available:false) the
headline pointed at a run whose drill-down 404s. Add a pure pickLatest()
helper that prefers the newest available run, falling back to newest overall.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mvalancy mvalancy merged commit 71f3a80 into dev Jun 19, 2026
10 of 11 checks passed
@mvalancy mvalancy deleted the fix/dashboard-latest-available branch June 19, 2026 10:16
@github-actions

Copy link
Copy Markdown

🧪 Comprehensive Test Suite

  • Unit suites (Node 18.x & 20.x) — core, web, server, mcp-server: ✅ passed
  • Installer & deploy config: ✅ passed

Full-stack smoke gate runs in the CI workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant