How jasonhukom/bible-plan works
Bible Plan is a React app for building and following customizable Scripture-reading schedules, reading Bible chapters, and saving verses. The main workflow is anonymous sign-in, plan generation and persistence, calendar-based chapter tracking, then reading chapters and saving verses; users can also upgrade their account and adjust profile or display settings. The graph reflects the sampled routing and calls plus README-described capabilities; some page-level persistence and interaction details are unsampled, so those links are left unasserted.
Main entry points: App.jsx Route dispatcher · AuthContext.jsx Authentication state · dataApi.js User data access · PlanPage.jsx Plan calendar
Components 23
App and navigation
- Route dispatcher
src/App.jsx - App layout
src/components/Layout.jsx - Navigation and plan controls
src/components/Sidebar.jsx
Reading plans
- Calendar view state
src/context/CalendarViewContext.jsx - Month grid
src/lib/calendarGrid.js - Plan calendar
src/pages/PlanPage.jsx - Plan onboarding
src/components/OnboardingModal.jsx - Plan state and actions
src/context/PlanContext.jsx - Schedule generator
src/lib/planGenerator.js - Book classification
src/lib/bibleBooks.js - Mini calendar
src/components/MiniCalendar.jsx
Bible and saves
- Bible reader
src/pages/BiblePage.jsx - Bible API client
src/lib/helloao.js - Saved verses view
src/pages/SavesPage.jsx
Accounts and preferences
- Profile management
src/pages/ProfilePage.jsx - Settings
src/pages/SettingsPage.jsx - Sign-in modal
src/components/LoginModal.jsx - Authentication state
src/context/AuthContext.jsx - Theme preferences
src/context/ThemeContext.jsx - User data access
src/lib/dataApi.js - Supabase client
src/lib/supabaseClient.js
Other components
- Reader
- Supabase auth and database
Connections 35
- Reader → Route dispatcher: opens
README.md - Route dispatcher → App layout: wraps routes
src/App.jsx - Route dispatcher → Plan calendar: routes to
src/App.jsx - Route dispatcher → Bible reader: routes to
src/App.jsx - Route dispatcher → Saved verses view: routes to
src/App.jsx - Route dispatcher → Profile management: routes to
src/App.jsx - Route dispatcher → Settings: routes to
src/App.jsx - App layout → Navigation and plan controls: renders
src/components/Layout.jsx - Navigation and plan controls → Mini calendar: renders
src/components/Sidebar.jsx - Navigation and plan controls → Plan state and actions: configures
src/components/Sidebar.jsx - Navigation and plan controls → Sign-in modal: opens
src/components/Sidebar.jsx - Plan calendar → Calendar view state: uses
src/pages/PlanPage.jsx - Plan calendar → Month grid: builds grid
src/pages/PlanPage.jsx - Mini calendar → Month grid: builds grid
src/components/MiniCalendar.jsx - Plan calendar → Plan state and actions: reads and updates
src/pages/PlanPage.jsx - Plan calendar → Plan onboarding: shows
src/pages/PlanPage.jsx - Plan state and actions → Authentication state: reads user
src/context/PlanContext.jsx - Plan state and actions → Schedule generator: generates schedule
src/context/PlanContext.jsx - Plan state and actions → User data access: loads and saves
src/context/PlanContext.jsx - Schedule generator → Bible API client: gets book data
src/lib/planGenerator.js - Schedule generator → Book classification: classifies books
src/lib/planGenerator.js - Bible reader → Bible API client: fetches Scripture
README.md - Bible reader → User data access: saves verses
src/pages/BiblePage.jsx - Saved verses view → User data access: loads saved verses
src/pages/SavesPage.jsx - Profile management → Authentication state: uses account
src/pages/ProfilePage.jsx - Profile management → Sign-in modal: opens
src/pages/ProfilePage.jsx - Settings → Authentication state: uses account
src/pages/SettingsPage.jsx - Settings → Theme preferences: updates preferences
src/pages/SettingsPage.jsx - Authentication state → Supabase client: uses client
src/context/AuthContext.jsx - Theme preferences → Authentication state: reads user
src/context/ThemeContext.jsx - Theme preferences → User data access: loads and saves theme
src/context/ThemeContext.jsx - User data access → Supabase client: uses client
src/lib/dataApi.js - Authentication state → Supabase auth and database: authenticates
src/context/AuthContext.jsx - User data access → Supabase auth and database: reads and writes
src/lib/dataApi.js - Bible API client → Reader: fetches Bible text
README.md