Skip to content

fix(dashboard): compact run labels#1337

Merged
christso merged 1 commit into
mainfrom
fix/av-a15-compact-run-labels
Jun 9, 2026
Merged

fix(dashboard): compact run labels#1337
christso merged 1 commit into
mainfrom
fix/av-a15-compact-run-labels

Conversation

@christso

@christso christso commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a shared Dashboard run display helper that returns primary text, secondary context, a one-line label, and tooltip/audit title text.
  • Updates RunList table/mobile cards and Sidebar to use compact primary/secondary run labels instead of one long timestamp-heavy string.
  • Preserves remote benchmark.json metadata.display_name in the run list so remote and local rows use the same friendly-name convention when the artifact provides one.
  • Keeps Local/Remote source as the badge and preserves raw remote run IDs/display names in link title text.

Root Cause

Remote run metadata can surface timestamp-only display_name / run IDs such as 2026-03-27T05-00-00-000Z. The old formatter trusted that as the primary run name and then appended the formatted timestamp again, producing crowded labels like the reported remote screenshot while local runs with human display names looked fine.

The remote git-listing path also forced display_name to the run directory basename, so a remote artifact with metadata.display_name could still lose its friendly label before the Dashboard formatter saw it.

Reported evidence:

Validation

  • bun test packages/core/test/evaluation/results-repo.test.ts (11 pass)
  • bun test apps/dashboard/src/lib/run-label.test.ts apps/dashboard/src/components/RunList.mobile.spec.tsx (12 pass)
  • bunx biome check packages/core/src/evaluation/results-repo.ts packages/core/test/evaluation/results-repo.test.ts apps/dashboard/src/lib/run-label.ts apps/dashboard/src/lib/run-label.test.ts apps/dashboard/src/components/RunList.tsx apps/dashboard/src/components/RunList.mobile.spec.tsx apps/dashboard/src/components/Sidebar.tsx
  • bun --filter @agentv/core build
  • bun --filter @agentv/dashboard build
  • bun --filter agentv build
  • Browser dogfood with isolated AGENTV_HOME / AGENTV_DATA_DIR and a throwaway local+remote fixture. API had a local display_name: local fixture run and a remote metadata.display_name: remote fixture run under a timestamp-only remote run directory; screenshots confirmed friendly primary labels for both, separate source badges, no horizontal overflow, and tooltip raw-ID auditability.

Private Evidence

  • Bead: av-a15
  • Private repo branch: EntityProcess/agentv-private dogfood/av-a15-compact-run-labels
  • Private evidence commit: c6381597d0649374674c6a6679f501b3421133189
  • Friendly-label evidence paths:
    • dogfood/av-a15/dashboard-friendly-run-labels-desktop.png
    • dogfood/av-a15/dashboard-friendly-run-labels-mobile-scrolled.png
  • Earlier timestamp-only fallback evidence commit: 2093088c1e499f3af520a6889d5634fd963d2039

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7e89f2e
Status: ✅  Deploy successful!
Preview URL: https://ba182b95.agentv.pages.dev
Branch Preview URL: https://fix-av-a15-compact-run-label.agentv.pages.dev

View logs

@christso christso force-pushed the fix/av-a15-compact-run-labels branch from cc2a886 to 7e89f2e Compare June 9, 2026 09:45
@christso christso marked this pull request as ready for review June 9, 2026 09:47
@christso christso merged commit 98665e9 into main Jun 9, 2026
8 checks passed
@christso christso deleted the fix/av-a15-compact-run-labels branch June 9, 2026 09:48
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