fix(test-details): show tree breadcrumbs without navigation context #2222
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
nuclearcat
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 Detailsusing 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
Reproduce
From
dashboard/, install dependencies withpnpm install --frozen-lockfileand install Chromium withpnpm exec playwright install chromiumif 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.