This commit is contained in:
2026-07-07 15:28:28 +02:00
parent 499f91e16a
commit 32c8bbe0a9
52 changed files with 3420 additions and 328 deletions
@@ -26,10 +26,16 @@
{% endif %}
</header>
{% if synthesis == "heuristic" %}
<section class="ds-card ds-degraded">
<strong>Degraded report.</strong> Automatic synthesis failed for this run, so the sections below show raw source material instead of an analysed report. Re-run the research to try again.
</section>
{% endif %}
{% if summary %}
<section class="ds-card">
<h2>Summary</h2>
<div class="ds-summary rendered-content">{{ render_content(summary) }}</div>
<h2>{{ "Report" if synthesis == "agents" else "Summary" }}</h2>
<div class="ds-summary rendered-content">{{ link_citations(render_content(summary), sources|length) }}</div>
</section>
{% endif %}
@@ -43,30 +49,28 @@
<span class="ds-finding-title">{{ finding.title }}</span>
<span class="ds-finding-confidence">{{ finding.confidence }}</span>
</summary>
<div class="ds-finding-detail">{{ finding.detail }}</div>
<div class="ds-finding-detail">{{ link_citations(finding.detail|e, sources|length) }}</div>
{% if finding.citations %}
<div class="ds-finding-cites">
{% for cite in finding.citations %}
{% if cite is number and cite >= 1 and cite <= sources|length %}
<a class="ds-cite" href="#ds-source-{{ cite }}" data-cite="{{ cite }}">[{{ cite }}]</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</details>
{% endfor %}
</div>
</section>
{% endif %}
{% if gaps %}
<section class="ds-card">
<h2>Open gaps</h2>
<ul class="ds-gaps">
{% for gap in gaps %}
<li>{{ gap }}</li>
{% endfor %}
</ul>
</section>
{% endif %}
{% if sources %}
<section class="ds-card">
<h2>Sources</h2>
<ol class="ds-sources">
{% for source in sources %}
<li>
<li id="ds-source-{{ loop.index }}">
<a href="{{ source.url }}" target="_blank" rel="noopener nofollow">{{ source.title or source.url }}</a>
<span class="ds-source-tag">{{ source.source }}</span>
</li>