← Back to Pull requests

fix(test-details): show tree breadcrumbs without navigation context #2222

Closed
unknown closed this pull request without merging on Nov 10, 2026 22:05 UTC
View on GitHub
unknown unknown commented on Nov 07, 2026 20:50 UTC
Author

Opening a copied test URL currently removes the breadcrumb row because the page depends on browser history state. This change shows Trees > Trees Details > Test Details using the test's checkout metadata when that context is missing.

Existing Hardware and Trees navigation keeps its breadcrumbs. Fallback links use the checkout origin rather than stale listing state or the test origin. If the commit hash is missing, Trees Details stays visible as text without a broken link.

Issue #2001 has remained unaddressed for some time, so I am taking over the fix.

Closes #2001.

Validation

  • Production build and TypeScript checks passed.

  • ESLint passed for the changed files.

  • All 168 Vitest tests passed.

  • Five Playwright tests passed with mocked API responses, covering direct links, reload, breadcrumb navigation, incomplete checkout metadata, existing context, and copied URLs in a new tab.

  • Screenshots are attached in a PR comment. They show the local frontend with deterministic API data. Production browser verification was blocked by Anubis.
  • Reproduce

    From dashboard/, install dependencies with pnpm install --frozen-lockfile and install Chromium with pnpm exec playwright install chromium if needed.

    1. Start the frontend with VITE_API_BASE_URL=http://127.0.0.1:5173 pnpm dev --host 127.0.0.1 --port 5173.
    2. In another terminal, run PLAYWRIGHT_TEST_BASE_URL=http://127.0.0.1:5173 pnpm e2e test-breadcrumb.spec.ts. These tests provide their own API responses, so no backend is needed.
    3. With a working API, open a test through Hardware and confirm its Hardware breadcrumbs. Copy the final test URL into a fresh tab and confirm the Trees fallback appears. Follow Trees Details and check that it opens the test's commit under the checkout origin.

    Diff: 222 lines (+166 / -56) across 2 files Reviewer: nuclearcat Review duration: 4395m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 222 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.323
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2222"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.8% (MEDIUM) · Higher = larger blast radius
    36.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.5% · Safe to merge
    14.5%