How bytecodx/nec-scs works
NEC-SCS is a campus achievement and certificate-verification portal with student, faculty, HOD, and administrator experiences. The principal workflow is student certificate submission, faculty review, and—when approved—an achievement appearing in the student wallet with points awarded. The graph also captures role-based access, administration, notifications, and private certificate-file handling. Evidence is limited: the README only names the product, and many listed routes and subsystems were not excerpted; those features are included where the tree or source index supports them, without assuming their internal calls.
Main entry points: store.ts Application data store · reviews.ts Review actions · session.ts Session and roles · client.ts File validation and signing
Components 24
Access and roles
- Sign-in page
app/(auth)/login/page.tsx - Authentication actions
actions/auth.ts - Session and roles
lib/auth/session.ts
Certificate workflow
- Certificate submission
components/forms/SubmitCertificateForm.tsx - Student portal
app/student/submit/page.tsx - File validation and signing
lib/storage/client.ts - File download route
app/api/files/download/route.ts - Faculty review queue
app/faculty/reviews/page.tsx - Review workbench
components/certificates/ReviewWorkbench.tsx - Review actions
actions/reviews.ts - Review validation
lib/validators/review.ts - Achievement wallet
app/student/achievements/page.tsx - Notifications
lib/notifications/dispatcher.ts
Campus operations
- Admin portal
app/admin/dashboard/page.tsx - Administration actions
actions/admin.ts - Department management
app/admin/departments/page.tsx - Faculty dashboard
app/faculty/dashboard/page.tsx - HOD portal
app/hod/dashboard/page.tsx - Reports and analytics
app/admin/reports/page.tsx
Data and services
- Application data store
lib/db/store.ts - Supabase storage
- Audit logging
lib/audit/logger.ts - Domain data types
types/database.types.ts
Other components
- Portal user
Connections 27
- Portal user → Sign-in page: signs in
app/(auth)/login/page.tsx - Sign-in page → Authentication actions: submits credentials
app/(auth)/login/page.tsx - Portal user → Student portal: submits certificate
- Student portal → Certificate submission: renders form
- Certificate submission → File validation and signing: validates file
- File validation and signing → Application data store: checks duplicate hash
lib/storage/client.ts - File validation and signing → Supabase storage: creates signed URL
lib/storage/client.ts - File validation and signing → File download route: fallback proxy URL
lib/storage/client.ts - File download route → Session and roles: checks current user
app/api/files/download/route.ts - Faculty review queue → Review workbench: uses workbench
- Review workbench → Review actions: submits review
- Review actions → Session and roles: requires reviewer role
actions/reviews.ts - Review actions → Application data store: reads and updates records
actions/reviews.ts - Review actions → Review validation: validates review data
actions/reviews.ts - Review actions → Notifications: sends outcome notice
actions/reviews.ts - Review actions → Audit logging: records audit events
actions/reviews.ts - Achievement wallet → Session and roles: gets current user
app/student/achievements/page.tsx - Achievement wallet → Application data store: reads approved certificates
app/student/achievements/page.tsx - Faculty dashboard → Session and roles: gets current user
app/faculty/dashboard/page.tsx - Faculty dashboard → Application data store: reads department records
app/faculty/dashboard/page.tsx - Admin portal → Session and roles: gets current user
app/admin/dashboard/page.tsx - Admin portal → Application data store: reads campus records
app/admin/dashboard/page.tsx - Department management → Administration actions: updates department
app/admin/departments/page.tsx - Administration actions → Application data store: administers records
- HOD portal → Application data store: accesses reporting data
- Reports and analytics → Application data store: uses reporting data
- Application data store → Domain data types: uses domain records