diff --git a/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.js b/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.js index fedb61ea..2365645c 100644 --- a/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.js +++ b/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.js @@ -19,7 +19,13 @@ export async function load({ params }) { // Normalise shape: merge records into run as dashboards for the report page const run = runDetail.run || runDetail; const records = runDetail.records || []; - run.dashboards = records; + + // Normalise field names from backend API shape to frontend template keys + run.dashboards = records.map((rec) => ({ + ...rec, + screenshots: rec.screenshots || rec.screenshot_paths || rec.tab_screenshots || [], + logs_sent: rec.logs_sent || rec.logs_sent_to_llm || [], + })); return { run }; }