- PRD: vollständige Produktspezifikation (5 Module, Scope, Akzeptanzkriterien) - ARCHITECTURE: Tech Stack, Ordnerstruktur, Multi-Tenancy, Push, Kosten - DATABASE_SCHEMA: Vollständiges SQL-Schema mit RLS Policies und Views - USER_STORIES: 40+ Stories nach Rolle (Admin, Mitglied, Azubi, Obermeister) - PERSONAS: 5 detaillierte Nutzerprofile mit Alltag, Zitaten und Erwartungen - BUSINESS_MODEL: Preistabellen, Unit Economics, Revenue-Projektionen, Distribution - ROADMAP: 6 Phasen, Sprint-Planung, Meilensteine und KPIs - COMPETITIVE_ANALYSIS: Wettbewerbsmatrix, USPs, Preispositionierung - API_DESIGN: Supabase Query Patterns, Edge Functions, Realtime Subscriptions - ONBOARDING_FLOWS: 7 User Flows von Setup bis Fehlerfall - GTM_STRATEGY: 3-Phasen-Vertrieb, Outreach-Sequenz, Einwandbehandlung - AZUBI_MODULE: Video-Feed, 1-Click-Apply, Chat, Berichtsheft, Quiz - DSGVO_KONZEPT: Rechtsgrundlagen, TOMs, AVV, Minderjährige, Incident Response - FEATURES_BACKLOG: 72 Features nach MoSCoW + Technische Schulden Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import '../global.css'
|
|
import { useEffect } from 'react'
|
|
import { Stack } from 'expo-router'
|
|
import { SplashScreen } from 'expo-router'
|
|
import { QueryClientProvider } from '@tanstack/react-query'
|
|
import { queryClient } from '@/lib/trpc'
|
|
import { TRPCProvider } from '@/lib/trpc'
|
|
import { useAuthStore } from '@/store/auth.store'
|
|
import { setupPushNotifications } from '@/lib/notifications'
|
|
|
|
SplashScreen.preventAutoHideAsync()
|
|
|
|
export default function RootLayout() {
|
|
const initAuth = useAuthStore((s) => s.initialize)
|
|
const isInitialized = useAuthStore((s) => s.isInitialized)
|
|
|
|
useEffect(() => {
|
|
initAuth().finally(() => SplashScreen.hideAsync())
|
|
}, [initAuth])
|
|
|
|
useEffect(() => {
|
|
setupPushNotifications().catch(console.error)
|
|
}, [])
|
|
|
|
if (!isInitialized) return null
|
|
|
|
return (
|
|
<TRPCProvider>
|
|
<Stack screenOptions={{ headerShown: false }}>
|
|
<Stack.Screen name="index" />
|
|
<Stack.Screen name="(auth)" options={{ animation: 'fade' }} />
|
|
<Stack.Screen name="(app)" options={{ animation: 'fade' }} />
|
|
<Stack.Screen name="stellen-public" />
|
|
</Stack>
|
|
</TRPCProvider>
|
|
)
|
|
}
|