This commit is contained in:
parent
1ca5e4a3a8
commit
aa5741eafb
8 changed files with 76 additions and 59 deletions
|
|
@ -184,10 +184,6 @@ function DayTimeline({ recordings, onSelect }) {
|
|||
return Math.max((r.durationMinutes / 60) * HOUR_H, 8);
|
||||
}
|
||||
|
||||
function qualityColor(q) {
|
||||
const map = { excellent: 'var(--green)', good: 'var(--teal)', fair: 'var(--amber)', poor: 'var(--red)' };
|
||||
return map[q] || 'var(--text3)';
|
||||
}
|
||||
|
||||
const totalH = 24 * HOUR_H;
|
||||
|
||||
|
|
@ -230,7 +226,7 @@ function DayTimeline({ recordings, onSelect }) {
|
|||
<div
|
||||
key={r.id}
|
||||
onClick={() => onSelect(r)}
|
||||
title={`${r.source} · ${Math.floor(r.durationMinutes / 60)}h ${Math.round(r.durationMinutes % 60)}m · ${r.quality}`}
|
||||
title={`${r.source} · ${Math.floor(r.durationMinutes / 60)}h ${Math.round(r.durationMinutes % 60)}m`}
|
||||
style={{
|
||||
position: 'absolute',
|
||||
top: top + 1,
|
||||
|
|
@ -254,7 +250,6 @@ function DayTimeline({ recordings, onSelect }) {
|
|||
<span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--text2)', flexShrink: 0 }}>
|
||||
{Math.floor(r.durationMinutes / 60)}h {Math.round(r.durationMinutes % 60)}m
|
||||
</span>
|
||||
<span style={{ fontFamily: 'var(--font-mono)', fontSize: 10 }} className={`q-${r.quality}`}>{r.quality}</span>
|
||||
{r.highlights.length > 0 && (
|
||||
<span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--amber)' }}>◈ {r.highlights.length}</span>
|
||||
)}
|
||||
|
|
@ -321,7 +316,6 @@ function DayTimeline({ recordings, onSelect }) {
|
|||
<span style={{ fontFamily: 'var(--font-mono)', fontSize: 11, color: 'var(--text2)' }}>{Math.floor(r.durationMinutes / 60)}h {Math.round(r.durationMinutes % 60)}m</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: 10 }}>
|
||||
<span className={`q-${r.quality}`} style={{ fontFamily: 'var(--font-mono)', fontSize: 10 }}>{r.quality}</span>
|
||||
<span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--text3)' }}>{r.sampleRate / 1000}kHz · {r.bitDepth}bit · {r.fileSizeMB}MB</span>
|
||||
{r.hasTranscript && <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--text3)' }}>✦ transcript</span>}
|
||||
{r.highlights.length > 0 && <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--amber)' }}>◈ {r.highlights.length}</span>}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue