feat(web): a spot shows the words before it, and an empty list shows no section (ADR-035)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 09:01:21 +02:00
co-authored by Claude Sonnet 5.5
parent 24d1a99ed0
commit cd7595a048
2 changed files with 174 additions and 151 deletions
+6 -2
View File
@@ -160,13 +160,17 @@ templ reconciliationNote(r *domain.Reconciliation) {
{ strconv.Itoa(r.Adjudicated) } decided by the model ({ r.Reconciler }),
{ strconv.Itoa(r.Unsure) } uncertain.
</p>
if len(r.Contested) > 0 {
if len(shownSpots(r)) > 0 {
<details>
<summary>Spots to check against the audio</summary>
<ul>
for _, c := range shownSpots(r) {
<li>
{ minuteMark(c.Seconds) }: { c.Base } / { c.Alt } —
{ minuteMark(c.Seconds) }:
if c.Before != "" {
<span class="muted">…{ c.Before }</span>
}
{ c.Base } / { c.Alt } —
if c.Unsure {
<span class="chip chip-warn">uncertain</span> kept { c.Used }
} else {