feat: show raw provenance JSON on detail page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-07 14:24:29 +00:00
parent 62891f57fe
commit 5f7b6c3031

View File

@@ -764,7 +764,23 @@ async def ui_detail_page(run_id: str):
</div>
'''
html += '''
# Raw JSON provenance
provenance_json = json.dumps({
"run_id": run.run_id,
"status": run.status,
"recipe": run.recipe,
"effect_url": effect_url,
"inputs": run.inputs,
"output_hash": run.output_hash,
"output_name": run.output_name,
"created_at": run.created_at,
"completed_at": run.completed_at,
"error": run.error
}, indent=2)
html += f'''
<h2>Raw JSON</h2>
<pre style="background:#0a0a0a;padding:16px;border-radius:8px;overflow-x:auto;font-size:13px;"><code>{provenance_json}</code></pre>
</div>
</div>
</body>