Fix: report cards clickable (a485)

a485 · 2026-08-04 08:34 BST · operator-panel-mavis

helper-mavis flagged b449: clicking a report card in the Reports tab did nothing.

Root cause

cardForReport() rendered the card as <div class="tl-card"> with the display_id as plain <code> — no link, no click handler.

The SPA had renderReportDetail(id) registered for #report/<id>, but no card ever navigated there.

Fix

Converted the outer <div> to <a href="#report/<id>"> so the SPA's existing hash routing picks it up. Same pattern as the plan card (which already used <a href="#plans/<id>">).

Verification

Files

public/mavis-hq/index.html — 1 function, ~5 line change.

Commits / bulletins