How smokeyy444/smart-student-manager works
This is a student academic-management web app: students create an account, then manage semesters, subjects, grades, attendance, events, reminders, and profile settings through dashboard-linked views. Server actions provide the application’s data operations, with authentication and Prisma persistence underneath. The README is a generic Next.js template and does not document product capabilities; relationships below rely on sampled excerpts and SOURCE INDEX references, so unsampled integrations are omitted where their wiring is not shown.
Main entry points: events.ts Event actions · guards.ts Access guards · prisma.ts Prisma database · academic.ts Academic actions
Components 27
Access and identity
- Registration
src/app/register/page.tsx - Login
src/app/login/page.tsx - Auth actions
src/lib/actions/auth.ts - Session cookies
src/lib/auth/session.ts - Access guards
src/lib/auth/guards.ts
Academic tracking
- Grades view
src/components/grades/grades-view.tsx - Academic actions
src/lib/actions/academic.ts - Grade calculations
src/lib/calculations/gpa.ts - Attendance view
src/components/attendance/attendance-view.tsx - Attendance actions
src/lib/actions/attendance.ts - Attendance calculations
src/lib/calculations/attendance.ts - Smart import
src/components/ai/smart-import-modal.tsx - Import processing
src/lib/ai/smart-import.ts - Gemini integration
src/lib/ai/gemini.ts - Record matching
src/lib/ai/matching.ts
Events and alerts
- Events cockpit
src/components/events/events-cockpit.tsx - Event actions
src/lib/actions/events.ts - Event editor
src/components/events/event-form-modal.tsx - Reminder center
src/components/reminders/reminder-center.tsx - Browser notifications
src/lib/notifications/browser.ts
Application platform
- Dashboard
src/components/dashboard/dashboard-view.tsx - Dashboard data
src/lib/actions/dashboard.ts - Profile settings
src/app/profile/profile-form.tsx - User settings
src/app/settings/settings-form.tsx - App layout
src/components/layout/app-layout.tsx - Prisma database
src/lib/prisma.ts
Other components
- Student
Connections 33
- Student → Registration: creates account
src/app/register/page.tsx - Student → Login: signs in
- Registration → Auth actions: registers via
src/app/register/page.tsx - Login → Auth actions: authenticates via
src/app/login/page.tsx - Auth actions → Session cookies: sets or clears
src/lib/actions/auth.ts - Auth actions → Prisma database: creates and reads
src/lib/actions/auth.ts - Session cookies → Access guards: provides identity
src/lib/auth/guards.ts - Access guards → Prisma database: loads user
src/lib/auth/guards.ts - Student → Dashboard: views progress
- Dashboard data → Access guards: gets current user
- Grades view → Academic actions: manages academics
src/app/grades/page.tsx - Academic actions → Access guards: checks user
src/lib/actions/academic.ts - Academic actions → Prisma database: reads and writes
src/lib/actions/academic.ts - Academic actions → Grade calculations: calculates grades
src/lib/actions/academic.ts - Attendance view → Attendance actions: manages attendance
src/app/attendance/page.tsx - Attendance actions → Attendance calculations: calculates attendance
- Student → Smart import: imports records
- Smart import → Import processing: submits import
src/components/ai/smart-import-modal.tsx - Import processing → Gemini integration: extracts with
src/lib/ai/smart-import.ts - Import processing → Record matching: matches records
src/lib/ai/smart-import.ts - Import processing → Prisma database: persists import
src/lib/ai/smart-import.ts - Events cockpit → Event actions: loads event data
src/app/events/page.tsx - Event editor → Event actions: creates events
src/components/events/event-form-modal.tsx - Event actions → Access guards: checks user
src/lib/actions/events.ts - Event actions → Prisma database: reads and writes
src/lib/actions/events.ts - Reminder center → Event actions: loads reminders
src/components/reminders/reminder-center.tsx - Reminder center → Browser notifications: dispatches alerts
src/components/reminders/reminder-center.tsx - Profile settings → Student: edits profile
- User settings → Student: edits preferences
- App layout → Student: frames app views
- Student → Profile settings: updates profile
- Student → User settings: updates settings
- Student → App layout: uses workspace