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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user