ID: 0d1af4f7-008 Priority: 96 Type: one_shot Status: done
Add interactive mermaid.js pathway diagrams showing disease mechanism cascades on hypothesis detail pages. Each hypothesis with a target_pathway or target_gene should display a relevant pathway diagram. This is D-PRIORITY for Quest 16 (Demo Showcase) and Quest 2 (Exchange).
graph; current backfilled diagrams commonly begin with flowchart TD, so those valid diagrams were silently skipped.api.py fix to normalize fenced Mermaid source first and accept both graph and flowchart syntax for the Curated Mechanism Pathway block.tests/test_hypothesis_pathway_diagrams.py for a live flowchart pathway diagram rendering on /hypothesis/{id}.flowchart diagrams affected by the previous guard.pytest -q tests/test_hypothesis_pathway_diagrams.py passed (1 test, warnings only).pytest -q tests/test_hypothesis_pathway_diagrams.py passed (1 test)6f2f76425 ([Demo] Render flowchart pathway diagrams on hypotheses [task:0d1af4f7-0084-4c5e-88df-5fc472934fe0]), merged as dd89155a9graph and flowchart syntax for pathway diagrams.git fetch origin main → already at 2ab493fd6 (same commit). pytest -q tests/test_hypothesis_pathway_diagrams.py → 1 passed..orchestra-slot.json modified by slot machinery).git fetch origin main → HEAD at 38360637e. pytest -q tests/test_hypothesis_pathway_diagrams.py → 1 passed in 54s. Test file exists on main.