mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-21 04:59:53 +02:00
onboarding + eq fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useEffect } from 'react';
|
||||
import { InteractionManager } from 'react-native';
|
||||
import { Alert, InteractionManager } from 'react-native';
|
||||
import { useRouter } from 'expo-router';
|
||||
import {
|
||||
SettingsNavRow,
|
||||
@@ -10,6 +10,7 @@ import { formatRelativeTime } from '@/lib/format';
|
||||
import { useColors } from '@/theme/themed';
|
||||
import { useDesktopRemoteStore } from '@/stores/desktopRemoteStore';
|
||||
import { useDesktopSyncStore } from '@/stores/desktopSyncStore';
|
||||
import { useOnboardingStore } from '@/stores/onboardingStore';
|
||||
|
||||
export default function ExperimentalSettingsScreen() {
|
||||
const colors = useColors();
|
||||
@@ -31,6 +32,17 @@ export default function ExperimentalSettingsScreen() {
|
||||
const desktopRemoteSubtitle = desktopRemoteConnection
|
||||
? `${desktopRemoteConnection.desktopName ?? 'Astra Desktop'}: ${desktopRemoteState === 'connected' ? 'connected' : desktopRemoteState}`
|
||||
: 'Pair with Astra Desktop to control playback from this phone.';
|
||||
const replayOnboarding = () => {
|
||||
Alert.alert(
|
||||
'Replay onboarding?',
|
||||
'The first-run setup wizard will show again the next time you return to the home screen. Your library and settings are kept.',
|
||||
[
|
||||
{ text: 'Cancel', style: 'cancel' },
|
||||
{ text: 'Replay', onPress: () => void useOnboardingStore.getState().reset() },
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
const desktopSyncSubtitle = !desktopRemoteConnection
|
||||
? 'Sync favorites and playlists with Astra Desktop.'
|
||||
: desktopSyncConflictCount > 0
|
||||
@@ -57,6 +69,14 @@ export default function ExperimentalSettingsScreen() {
|
||||
subtitleColor={desktopSyncConflictCount > 0 ? colors.warning : undefined}
|
||||
onPress={() => router.push('/desktop-sync' as never)}
|
||||
/>
|
||||
|
||||
<SettingsSectionLabel>DEVELOPER</SettingsSectionLabel>
|
||||
<SettingsNavRow
|
||||
icon="refresh-outline"
|
||||
title="Replay onboarding"
|
||||
subtitle="Show the first-run setup wizard again."
|
||||
onPress={replayOnboarding}
|
||||
/>
|
||||
</SettingsSectionScreen>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user