How maciekt07/todoapp works
This is a React todo PWA. Users create and manage tasks and categories, then can share tasks, transfer or sync data between devices, and customize their profile and settings. The runtime entry mounts the app and router; task and user state are persisted locally, with profile images stored separately in IndexedDB. The README documents major features whose implementation was not sampled, so those branches are shown at the documented capability level rather than as verified internal call paths.
Main entry points: router.tsx Route selection · UserProvider.tsx User state · SettingsDialog.tsx App settings · TasksList.tsx Task management
Components 23
Application shell
- React entry
src/main.tsx - App shell
src/App.tsx - Route selection
src/router.tsx
Tasks and categories
- Task home
src/pages/Home.tsx - Task management
src/components/tasks/TasksList.tsx - Task state
src/contexts/TaskProvider.tsx - Browser storage
src/hooks/useStorageState.ts - Categories
src/pages/Categories.tsx - Add task
src/pages/AddTask.tsx - Task details
src/pages/TaskDetails.tsx
Sharing and transfer
- Task sharing
src/pages/Share.tsx - Peer sync
src/pages/Sync.tsx - Import and export
src/pages/Transfer.tsx
Profile and preferences
- User state
src/contexts/UserProvider.tsx - User profile
src/pages/UserProfile.tsx - Profile image store
src/utils/profilePictureStorage.ts - App settings
src/components/settings/SettingsDialog.tsx - AI emoji suggestions
src/components/EmojiPicker.tsx - Read aloud
src/components/settings/tabs/ReadAloudTab.tsx - Theme configuration
src/theme/themeConfig.ts
Other components
- App user
- Browser platform
- Other device
Connections 26
- App user → React entry: opens
- React entry → App shell: mounts
src/main.tsx - App shell → Route selection: renders
src/App.tsx - Route selection → Task home: routes to
src/router.tsx - Route selection → Add task: routes to
src/router.tsx - Route selection → Categories: routes to
src/router.tsx - Route selection → Task details: routes to
src/router.tsx - Route selection → Task sharing: routes to
src/router.tsx - Route selection → Peer sync: routes to
src/router.tsx - Route selection → Import and export: routes to
src/router.tsx - Route selection → User profile: routes to
src/router.tsx - Task home → Task management: shows tasks
- Task management → Task state: uses task state
src/components/tasks/TasksList.tsx - Task state → Browser storage: persists state
src/contexts/TaskProvider.tsx - User state → Browser storage: persists state
- Categories → User state: reads user data
src/pages/Categories.tsx - Task management → User state: reads user data
src/components/tasks/TasksList.tsx - Task sharing → App user: shares by link or QR
- Peer sync → Other device: syncs with
- Peer sync → User state: syncs user data
- Import and export → App user: imports or exports
- User profile → Profile image store: stores images
src/pages/UserProfile.tsx - Profile image store → Browser platform: uses IndexedDB
src/utils/profilePictureStorage.ts - App settings → Theme configuration: offers themes
- App settings → Read aloud: configures speech
- App settings → AI emoji suggestions: offers suggestions