diff --git a/src/screens/HistoryScreen.tsx b/src/screens/HistoryScreen.tsx
index 55c59d5..504a4d1 100644
--- a/src/screens/HistoryScreen.tsx
+++ b/src/screens/HistoryScreen.tsx
@@ -16,6 +16,8 @@ import {
type ContinuousUsageBlock,
} from '../training/continuousUsage';
import { TrainingChart } from '../components/TrainingChart';
+import { TrackRow } from '../components/TrackRow';
+import { EmptyState } from '../components/EmptyState';
import { colors, spacing, typography } from '../theme';
type HistoryMode = 'windows' | 'continuous' | 'range';
@@ -360,46 +362,25 @@ function WindowHistory({
- {sessions.map(session => {
+ {sessions.map((session, index) => {
const isOpen = selectedId === session.id;
return (
- onOpenSession(session)}
- style={({ pressed }) => [
- styles.sessionStrip,
- pressed ? styles.pressed : null,
+ onOpenSession(session)}
+ title={session.deviceName || 'Cinta cardíaca BLE'}
+ trackNumber={index + 1}
>
-
-
- {formatSessionDay(session.startedAt)}
-
-
- {formatSessionHour(session.startedAt)}
-
-
-
-
- {session.deviceName || 'Cinta cardíaca BLE'}
-
-
- {formatDuration(session.durationMs)} · {session.sampleCount}{' '}
- amostras · toque para detalhes
-
-
-
- MÉD {session.averageBpm}
-
-
- PICO {session.peakBpm}
-
- MIN {session.minBpm}
-
-
- {isOpen ? : }
-
{isOpen ? (
) : null}
+
);
})}
@@ -465,50 +447,30 @@ function ContinuousHistory({
- {blocks.map(block => {
+ {blocks.map((block, index) => {
const isOpen = selectedUsageId === block.id;
return (
- onOpenBlock(block)}
- style={({ pressed }) => [
- styles.sessionStrip,
- pressed ? styles.pressed : null,
+ onOpenBlock(block)}
+ title={block.deviceName || 'Uso contínuo'}
+ trackNumber={index + 1}
>
-
-
- {formatSessionDay(block.startedAt)}
-
-
- {formatSessionHour(block.startedAt)}
-
-
-
-
- {block.deviceName || 'Uso contínuo'}
-
-
- {formatUsageRange(block)} · {block.sampleCount} amostras ·
- toque para detalhes
-
-
-
- MÉD {block.averageBpm}
-
-
- PICO {block.peakBpm}
-
- MIN {block.minBpm}
-
-
- {isOpen ? : }
-
{isOpen && selectedBlock ? (
) : null}
+
);
})}
@@ -591,11 +553,12 @@ function EmptyHistory({
readonly title: string;
}) {
return (
-
- {eyebrow}
- {title}
- {copy}
-
+
);
}