Commitf077ea5unknown_key
fix(dashboard): "Coach me" button — link to /health (GET route exists) not /explain
fix(dashboard): "Coach me" button — link to /health (GET route exists) not /explain
The Coach me button on the dashboard's Health insights widget linked
to GET /:username/:repo/explain, but only POST /:owner/:repo/explain
exists (src/routes/ask.tsx:406 — file-explainer JSON endpoint, wrong
shape for a button click). Result: clicking the button hit a 404 and
the back button got into a broken history state.
Fix: link to the existing GET /:owner/:repo/health page, which already
renders the health score breakdown + AI suggestions — exactly what
the button text and surrounding copy promise ("Health score X/100
— open the repo to see breakdown + AI suggestions").1 file changed+2−2f077ea54beab9e88ee9c86fa20e139cdd1dcfa57
1 changed file+2−2
Modifiedsrc/routes/dashboard.tsx+2−2View fileUnifiedSplit
@@ -1021,10 +1021,10 @@ const HealthCoach = ({
10211021 </div>
10221022 </div>
10231023 <a
1024 href={`/${username}/${p.repo.name}/explain`}
1024 href={`/${username}/${p.repo.name}/health`}
10251025 class="btn"
10261026 style="font-size: 12px; padding: 4px 10px"
1027 title="Run AI explain on this repo"
1027 title="Open health score with AI suggestions"
10281028 >
10291029 Coach me
10301030 </a>
10311031