How harrymofoka/little-stars-creche-system works
Bright Beginnings Hub combines a public preschool website with a role-based LMS. The principal flow is account access, guided onboarding, then role-scoped dashboard work across learner records, attendance, fees, staff, reports, and notifications. The LMS uses browser localStorage-backed demo state rather than a backend. The README documents several capabilities whose route implementations were not sampled; those links are cited to the README, while implementation-level edges are limited to shown excerpts and indexed references.
Main entry points: lms-access.ts Role Data Scoping · dashboard/page.tsx Overview Dashboard · app/page.tsx Home and Marketing · onboarding/page.tsx Role Onboarding
Components 32
Public Website
- Home and Marketing
src/app/page.tsx - Programmes Fees
src/app/programmes/page.tsx - Tour Enquiry
src/app/contact/page.tsx - Preschool Approach
src/app/about/page.tsx - Brand Mark
src/components/site/BrandMark.tsx - Public Site Blocks
src/components/site/SiteBlocks.tsx - Site Footer
src/components/site/SiteFooter.tsx
Identity Onboarding
- Sign In Sign Up
src/app/login/page.tsx - Auth Screen Shell
src/components/site/AuthSplit.tsx - Accounts and Sessions
src/lib/auth.tsx - Role Onboarding
src/app/onboarding/page.tsx - Role Question Sets
src/lib/onboarding-questions.ts - Onboarding Summary
src/components/lms/OnboardingSummary.tsx - PDF Export
src/lib/onboarding-pdf.ts
LMS Operations
- Overview Dashboard
src/app/dashboard/page.tsx - Learner Records
src/app/dashboard/children/page.tsx - Learner Form
src/components/lms/ChildForm.tsx - Daily Attendance
src/app/dashboard/attendance/page.tsx - Fee Analytics
src/app/dashboard/fees/page.tsx - Staff Directory
src/app/dashboard/staff/page.tsx - Milestones Reports
src/app/dashboard/reports/page.tsx - Admin Console
src/app/dashboard/admin/page.tsx - Notifications Inbox
src/app/dashboard/notifications/page.tsx - Notification Panel
src/components/lms/NotificationsPanel.tsx
Shared State Components
- Role Data Scoping
src/lib/lms-access.ts - LMS Data Store
src/lib/lms-store.tsx - Demo LMS Records
src/data/lms.ts - Activity Notifications
src/lib/activity.tsx - Audit Log View
src/components/lms/AuditLog.tsx - Dashboard UI Blocks
src/components/lms/LmsBlocks.tsx - Sheet Primitive
src/components/ui/sheet.tsx
Other components
- Family or Staff
Connections 38
- Family or Staff → Home and Marketing: visits
- Family or Staff → Sign In Sign Up: signs in
- Home and Marketing → Public Site Blocks: renders
src/app/page.tsx - Home and Marketing → Site Footer: renders
src/app/page.tsx - Home and Marketing → Programmes Fees: links to
src/app/page.tsx - Home and Marketing → Tour Enquiry: links to
src/app/page.tsx - Sign In Sign Up → Auth Screen Shell: renders
src/app/login/page.tsx - Sign In Sign Up → Accounts and Sessions: uses
src/app/login/page.tsx - Auth Screen Shell → Brand Mark: renders
src/components/site/AuthSplit.tsx - Accounts and Sessions → Role Onboarding: routes onboarding
src/app/onboarding/page.tsx - Role Onboarding → Role Question Sets: loads questions
src/app/onboarding/page.tsx - Role Onboarding → Accounts and Sessions: saves progress
src/app/onboarding/page.tsx - Role Onboarding → LMS Data Store: syncs records
src/app/onboarding/page.tsx - Onboarding Summary → PDF Export: generates export
src/components/lms/OnboardingSummary.tsx - Overview Dashboard → Role Data Scoping: reads scoped data
src/app/dashboard/page.tsx - Overview Dashboard → Onboarding Summary: renders
src/app/dashboard/page.tsx - Overview Dashboard → Notification Panel: renders
src/app/dashboard/page.tsx - Overview Dashboard → Audit Log View: renders
src/app/dashboard/page.tsx - Learner Records → Learner Form: renders
src/app/dashboard/children/page.tsx - Learner Records → Role Data Scoping: reads scoped data
src/app/dashboard/children/page.tsx - Daily Attendance → Role Data Scoping: reads scoped data
src/app/dashboard/attendance/page.tsx - Fee Analytics → Role Data Scoping: reads scoped data
src/app/dashboard/fees/page.tsx - Fee Analytics → LMS Data Store: updates invoices
src/app/dashboard/fees/page.tsx - Staff Directory → Role Data Scoping: reads scoped data
src/app/dashboard/staff/page.tsx - Notifications Inbox → Activity Notifications: uses feed
src/app/dashboard/notifications/page.tsx - Notification Panel → Activity Notifications: reads notifications
src/components/lms/NotificationsPanel.tsx - Audit Log View → Activity Notifications: reads audit entries
src/components/lms/AuditLog.tsx - Role Data Scoping → LMS Data Store: reads records
src/lib/lms-access.ts - Role Data Scoping → Accounts and Sessions: checks role
src/lib/lms-access.ts - LMS Data Store → Demo LMS Records: initializes from
src/lib/lms-store.tsx - Learner Records → Dashboard UI Blocks: uses UI blocks
src/app/dashboard/children/page.tsx - Daily Attendance → Dashboard UI Blocks: uses UI blocks
src/app/dashboard/attendance/page.tsx - Fee Analytics → Dashboard UI Blocks: uses UI blocks
src/app/dashboard/fees/page.tsx - Staff Directory → Dashboard UI Blocks: uses UI blocks
src/app/dashboard/staff/page.tsx - Role Onboarding → Accounts and Sessions: completes onboarding
src/lib/auth.tsx - Admin Console → LMS Data Store: manages schedules
- Milestones Reports → Role Data Scoping: reads scoped data
- Overview Dashboard → Dashboard UI Blocks: uses UI blocks
src/app/dashboard/page.tsx