+ {loading &&
Loading…
}
+ {error &&
{error}
}
+
+ {!loading && !activeSession && (
+
No active session.
+ )}
+
+ {!loading && activeSession && summaries.length === 0 && (
+
+
◈
+
No summaries yet for this session.
+
+ Summaries generate automatically once a session accumulates enough conversation.
+
+
+ )}
+
+ {summaries.map(summary => (
+
+ {/* Card header */}
+
setExpanded(expanded === summary.id ? null : summary.id)}
+ style={{ display: 'flex', alignItems: 'center', gap: '10px', padding: '10px 14px', cursor: 'pointer' }}
+ >
+
+ Episodes {summary.episode_range}
+
+ {formatTimestamp(summary.created_at)}
+
+ {expanded === summary.id ? '▲' : '▼'}
+
+
+
+ {/* Expanded content */}
+ {expanded === summary.id && (
+
+
(
+
+ {children}
+
+ ),
+ }}>
+ {summary.content}
+
+ {summary.token_count > 0 && (
+
+ {summary.token_count.toLocaleString()} tokens covered
+
+ )}
+
+ )}
+
+ ))}
+