How lord-sampad/history-app works
This Expo app is a historical-learning and collecting experience: users browse historical events and reference material, ask AI-assisted questions, save discoveries, and build presentation boards or media vaults. The tree also shows distinct wiki, map, profile, and notification areas. The available excerpts confirm the archive’s saved-chat browsing, wiki search results, board persistence, authentication, and theme application; other feature branches are represented from their routes and component paths, but their runtime connections are not asserted where source was not shown.
Main entry points: today.tsx Home and events · index.tsx Archive hub · useAuthStore.ts Authentication · ThemeContext.tsx Theme context
Components 26
Historical discovery
- Home and events
src/app/today.tsx - Archive hub
src/app/archive/index.tsx - Archive chat
src/app/archive/chat.tsx - AI responses
src/services/geminiService.ts - Wiki search
src/app/wiki/index.tsx - Wiki articles
src/app/wiki/[title].tsx - Historical map
src/components/map/HistoricalMapView.tsx - Saved discoveries
src/app/saved.tsx - Custom events
src/store/useCustomEventStore.ts
Boards and vaults
- Presentation boards
src/components/board/BoardScreenContent.tsx - Narrative blocks
src/components/board/blocks/ParagraphBlock.tsx - Exhibit browser
src/components/exhibits/ExhibitScreenContent.tsx - Media vaults
src/store/useVaultStore.ts - Museum sources
src/services/metMuseumService.ts - Image search
src/services/googleImageSearch.ts - Video archive
src/app/archive/videos.tsx
Account and preferences
- Profile settings
src/components/profile/ProfileDashboard.tsx - Authentication
src/store/useAuthStore.ts
Shared services
- Chat sessions
src/store/useChatStore.ts - Wikipedia service
src/services/wikipedia.ts - Board state
src/store/useBoardStore.ts - Supabase
src/services/supabase.ts - Theme context
src/context/ThemeContext.tsx - Theme engine
src/services/themeEngine.ts - Notifications
src/services/notificationService.ts
Other components
- App user
Connections 18
- App user → Home and events: browses
- App user → Archive hub: opens
- Archive hub → Chat sessions: reads saved chats
src/app/archive/index.tsx - Archive hub → Wiki articles: opens article viewer
src/app/archive/index.tsx - App user → Wiki search: searches
- Wiki search → Wikipedia service: searches pages
src/app/wiki/index.tsx - App user → Presentation boards: creates boards
- Presentation boards → Board state: loads and saves
- Narrative blocks → Board state: updates block
src/components/board/blocks/ParagraphBlock.tsx - App user → Exhibit browser: browses media
- Exhibit browser → Media vaults: manages vaults
- App user → Profile settings: manages profile
- Profile settings → Authentication: uses account state
- Authentication → Supabase: authenticates and syncs
src/store/useAuthStore.ts - Theme context → Authentication: reads preferences
src/context/ThemeContext.tsx - Theme context → Theme engine: applies theme
src/context/ThemeContext.tsx - Home and events → Wikipedia service: loads historical entries
src/app/today.tsx - Home and events → Custom events: shows custom events