How bryanna-21/unilink-admin-panel works
UNILINK-ADMIN-PANEL is a role-protected university administration console. Administrators sign in, enter a shared dashboard shell, and use separate operational pages to manage people, university structure, schedules, moderation, reports, and platform oversight; screens retrieve or mutate backend data through the authenticated API client, while notifications also have a socket path. The sampled material confirms the shell, dashboard, timetable, and moderation flows. Many other capabilities are identifiable from routes and the source index, but their internal calls were not sampled, so those links are left out.
Main entry points: axios.ts API client · auth.store.ts Auth state · page.tsx Dashboard · socket-provider.tsx Live notifications
Components 27
Access and shell
- Sign-in
src/app/login/page.tsx - Admin shell
src/components/layout/dashboard-layout.tsx - Role guard
src/components/auth/auth-guard.tsx
People and structure
- User administration
src/app/users/page.tsx - Student records
src/app/students/page.tsx - Admin accounts
src/app/admins/page.tsx - Lecturer accounts
src/app/lecturers/page.tsx - University structure
src/components/structure/structure-page.tsx - Universities
src/app/universities/page.tsx
Campus operations
- Timetables
src/app/timetables/page.tsx - Content moderation
src/app/moderation/page.tsx - Penalties and appeals
src/app/penalties/page.tsx - Emergency reports
src/app/reports/page.tsx - Announcements
src/app/announcements/page.tsx - Community tools
src/app/posts/page.tsx
Insights and oversight
- Dashboard
src/app/dashboard/page.tsx - Analytics
src/app/analytics/page.tsx - Audit logs
src/app/audit-logs/page.tsx - System health
src/app/system-health/page.tsx
Shared runtime
- Auth state
src/store/auth.store.ts - API client
src/lib/axios.ts - Dashboard data
src/hooks/use-dashboard.ts - Dashboard service
src/services/dashboard.service.ts - Live notifications
src/providers/socket-provider.tsx - Socket client
src/services/socket.ts
Other components
- Administrator
- UniLink backend
Connections 17
- Administrator → Sign-in: signs in
- Sign-in → Auth state: sets session
- Dashboard → Admin shell: renders
src/app/dashboard/page.tsx - Admin shell → Role guard: wraps
src/components/layout/dashboard-layout.tsx - Role guard → Auth state: checks session
src/components/auth/auth-guard.tsx - Dashboard → Dashboard data: loads metrics
src/app/dashboard/page.tsx - Dashboard data → Dashboard service: uses
src/hooks/use-dashboard.ts - Dashboard service → API client: requests data
- Dashboard → API client: fetches stats
src/app/dashboard/page.tsx - API client → UniLink backend: sends requests
src/lib/axios.ts - Timetables → API client: reads and updates
src/app/timetables/page.tsx - Content moderation → API client: reviews reports
src/app/moderation/page.tsx - Penalties and appeals → API client: manages cases
src/app/penalties/page.tsx - Auth state → UniLink backend: authenticates via client
- Live notifications → Socket client: uses
src/providers/socket-provider.tsx - Live notifications → Auth state: reads session
src/providers/socket-provider.tsx - Socket client → UniLink backend: connects live