How xdadik/family-tree works
This is a family-history web app for browsing and maintaining a shared family record: users enter through sign-in, navigate the home, tree, search, or settings screens, and open member, family, photo, event, and notification views. The app shell selects screens and mounts shared modals; FamilyContext provides the application state and local persistence. The graph also preserves onboarding, admin management, language/support, and relationship-calculation capabilities. Evidence is limited to the README (empty), source index, and shown excerpts; unsampled links are omitted where ownership is uncertain.
Main entry points: FamilyContext.tsx Family state · App.tsx App shell · HomeScreen.tsx Home screen · LanguageModal.tsx Language selection
Components 25
App shell
- App shell
src/App.tsx - Home screen
src/components/home/HomeScreen.tsx - Navigation
src/components/common/Navigation.tsx - Onboarding
src/components/onboarding/OnboardingScreen.tsx - Sign-in
src/components/auth/LoginModal.tsx - Admin management
src/components/auth/ManageAdminsModal.tsx
Family records
- Family tree
src/components/tree/FamilyTreeScreen.tsx - Family search
src/components/search/SearchScreen.tsx - Member profile
src/components/profile/MemberProfileModal.tsx - Member editor
src/components/forms/AddMemberModal.tsx - Family details
src/components/family/FamilyDetailsModal.tsx
Family activity
- Photo gallery
src/components/photos/PhotoGalleryModal.tsx - Family events
src/components/events/EventsModal.tsx - Notifications
src/components/notifications/NotificationCenterModal.tsx - Quick actions
src/components/common/QuickActionSheet.tsx
Shared services
- Settings
src/components/settings/SettingsScreen.tsx - Home header
src/components/common/Header.tsx - Language selection
src/components/common/LanguageModal.tsx - Support
src/components/common/SupportModal.tsx - Family state
src/context/FamilyContext.tsx - Starter family data
src/data/initialData.ts - Family data types
src/types/family.ts - Translations
src/utils/translations.ts - Relationship calculator
src/utils/relationshipEngine.ts
Other components
- Family user
Connections 40
- Family user → App shell: uses
- App shell → Family state: provides state
src/App.tsx - App shell → Sign-in: shows when signed out
src/App.tsx - App shell → Home screen: selects screen
src/App.tsx - App shell → Family tree: selects screen
src/App.tsx - App shell → Family search: selects screen
src/App.tsx - App shell → Settings: selects screen
src/App.tsx - App shell → Navigation: mounts
src/App.tsx - App shell → Member profile: mounts
src/App.tsx - App shell → Member editor: mounts
src/App.tsx - App shell → Family details: mounts
src/App.tsx - App shell → Photo gallery: mounts
src/App.tsx - App shell → Family events: mounts
src/App.tsx - App shell → Notifications: mounts
src/App.tsx - App shell → Quick actions: mounts
src/App.tsx - App shell → Language selection: mounts
src/App.tsx - App shell → Support: mounts
src/App.tsx - Home screen → Home header: renders
src/components/home/HomeScreen.tsx - Home screen → Family state: reads state
src/components/home/HomeScreen.tsx - Family tree → Family state: reads state
src/components/tree/FamilyTreeScreen.tsx - Family search → Family state: reads state
src/components/search/SearchScreen.tsx - Member profile → Family state: reads state
src/components/profile/MemberProfileModal.tsx - Member editor → Family state: updates records
src/components/forms/AddMemberModal.tsx - Family details → Family state: reads state
src/components/family/FamilyDetailsModal.tsx - Photo gallery → Family state: updates records
src/components/photos/PhotoGalleryModal.tsx - Family events → Family state: uses state
src/components/events/EventsModal.tsx - Notifications → Family state: updates state
src/components/notifications/NotificationCenterModal.tsx - Navigation → Family state: reads state
src/components/common/Navigation.tsx - Sign-in → Family state: uses auth state
src/components/auth/LoginModal.tsx - Admin management → Family state: uses admin state
src/components/auth/ManageAdminsModal.tsx - Settings → Family state: updates preferences
src/components/settings/SettingsScreen.tsx - Language selection → Family state: sets language
src/components/common/LanguageModal.tsx - Language selection → Translations: uses translations
src/components/common/LanguageModal.tsx - Quick actions → Family state: uses state
src/components/common/QuickActionSheet.tsx - Support → Family state: uses state
src/components/common/SupportModal.tsx - Family state → Starter family data: loads starter data
src/context/FamilyContext.tsx - Family state → Translations: uses translations
src/context/FamilyContext.tsx - Starter family data → Family data types: defines records as
src/data/initialData.ts - Relationship calculator → Family data types: calculates from
src/utils/relationshipEngine.ts - Family state → Family data types: stores typed records
src/context/FamilyContext.tsx