refactor: extract player components, add stack headers, add tests

- Extract player UI into src/features/player/ components (TimerRing, BurnBar, etc.)
- Add transparent stack headers for workout/[id] and program/[id] screens
- Refactor workout/[id], program/[id], complete/[id] screens
- Add player feature tests and useTimer integration tests
- Add data layer exports and test setup improvements
This commit is contained in:
Millian Lamiaux
2026-03-26 10:46:47 +01:00
parent 569a9e178f
commit 8926de58e5
22 changed files with 2930 additions and 1335 deletions

View File

@@ -119,6 +119,13 @@ function RootLayoutInner() {
<Stack.Screen
name="workout/[id]"
options={{
headerShown: true,
headerTransparent: true,
headerBlurEffect: colors.colorScheme === 'dark' ? 'dark' : 'light',
headerShadowVisible: false,
headerTitle: '',
headerBackButtonDisplayMode: 'minimal',
headerTintColor: colors.colorScheme === 'dark' ? '#FFFFFF' : '#000000',
animation: 'slide_from_right',
}}
/>
@@ -128,6 +135,19 @@ function RootLayoutInner() {
animation: 'slide_from_right',
}}
/>
<Stack.Screen
name="program/[id]"
options={{
headerShown: true,
headerTransparent: true,
headerBlurEffect: colors.colorScheme === 'dark' ? 'dark' : 'light',
headerShadowVisible: false,
headerTitle: '',
headerBackButtonDisplayMode: 'minimal',
headerTintColor: colors.colorScheme === 'dark' ? '#FFFFFF' : '#000000',
animation: 'slide_from_right',
}}
/>
<Stack.Screen
name="collection/[id]"
options={{