feat #14740: done only once uploaded

A done call only shows "fertig" once its transcript reached this
build's backend (uploaded_here); otherwise it's "bereit zum
Hochladen". The list row gets a blue dot for anything needing action
(ready to upload or not transcribed yet), and the sidebar header shows
"Gespräche · N offen".

Adds ListState/needs_action to CallListItem, computed in
recorder-core so the UI doesn't re-implement the rule.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-10 12:09:08 +01:00
co-authored by Claude Opus 5.5
parent 183c135b1d
commit 0ae6ed304f
5 changed files with 176 additions and 9 deletions
+19 -2
View File
@@ -326,13 +326,17 @@
// A failed start (e.g. missing key) also marks the call failed; its
// error is then shown once, in the failure box.
let shownActionError = $derived(actionError !== detail?.call.error ? actionError : '')
// Calls that still need the user's attention (not transcribed, or
// transcribed but not uploaded here) — shown as "Gespräche · N offen".
let openCount = $derived(calls.filter((c) => c.needs_action).length)
</script>
<main class="main">
<UpdateBanner />
<aside class="sidebar">
<header class="sidebar-header">
<h1>Gespräche</h1>
<h1>Gespräche{#if openCount > 0} <span class="open-count">· {openCount} offen</span>{/if}</h1>
<div class="header-actions">
<button
class="btn small record-btn"
@@ -381,7 +385,7 @@
<button class="edit-title" title="Titel ändern" onclick={startTitleEdit}>✎</button>
</h1>
{/if}
<StatusPill status={call.status} interrupted={call.interrupted} />
<StatusPill state={call.list_state} interrupted={call.interrupted} />
</div>
{#if editingTitle}
<p class="muted subline">Enter speichert, Esc bricht ab. Leer = Standardtitel.</p>
@@ -525,18 +529,31 @@
.sidebar-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 4px 8px;
padding: 14px 12px 10px 16px;
border-bottom: 1px solid var(--border);
}
.sidebar-header h1 {
flex: 1 1 auto;
min-width: 0;
font-size: 16px;
overflow-wrap: break-word;
}
.open-count {
font-size: 13px;
font-weight: 600;
color: var(--primary);
white-space: nowrap;
}
.header-actions {
display: flex;
flex-shrink: 0;
align-items: center;
gap: 6px;
}