How rizapatiid/spahsppgtrangkil works
This is a role-based SPPG Trangkil volunteer operations application: administrators manage volunteers, divisions and accounts, while division staff record attendance and daily reports; supervisors review activity and issue coordination directions. Users access role-specific Next.js screens, which invoke server actions for operations. The tree also documents attendance summaries, history, profile management and printable exports. Sampled code confirms several client-to-action calls and the Cloudinary upload-signing flow. Most server-action implementations were not sampled, so their storage and service wiring is left unspecified.
Main entry points: clientUpload.ts Client uploads · LaporanClient.tsx Daily reports · page.tsx Login · route.ts Auth endpoint
Components 22
Access and profiles
- Login
src/app/login/page.tsx - Auth endpoint
src/app/api/auth/[...nextauth]/route.ts - Auth configuration
src/lib/auth.ts - Profile settings
src/components/ProfilClient.tsx - Password action
src/app/actions/profil.ts
Attendance and reports
- Staff dashboard
src/app/dashboard/page.tsx - Attendance entry
src/app/dashboard/absensi/actions.ts - Attendance screen
src/app/dashboard/absensi/AbsensiClient.tsx - Daily reports
src/app/dashboard/laporan/LaporanClient.tsx - Report actions
src/app/dashboard/laporan/actions.ts - Activity history
src/app/dashboard/riwayat/RiwayatClient.tsx - Print views
src/app/cetak-laporan/[id]/page.tsx
Administration
- Admin workspace
src/app/admin/page.tsx - Volunteer management
src/app/admin/relawan/RelawanClient.tsx - Accounts and divisions
src/app/admin/users/UsersClient.tsx - Attendance oversight
src/app/admin/absensi/AbsensiClient.tsx - Attendance matrix
src/app/admin/absensi-relawan/actions.ts
Coordination and media
- Coordination directions
src/app/admin/kordinasi/KordinasiClient.tsx
Shared services
- Upload signing
src/app/api/cloudinary/sign/route.ts - Client uploads
src/lib/clientUpload.ts - Cloudinary
Other components
- Staff user
Connections 22
- Staff user → Login: opens
- Login → Auth endpoint: signs in
- Auth endpoint → Auth configuration: uses
- Staff user → Staff dashboard: uses
- Staff user → Admin workspace: uses
- Profile settings → Password action: changes password
- Staff user → Attendance screen: records attendance
- Attendance screen → Attendance entry: submits
- Staff user → Daily reports: submits report
- Daily reports → Report actions: manages report
- Daily reports → Client uploads: uploads photos
- Coordination directions → Client uploads: uploads image
- Client uploads → Upload signing: requests signature
- Upload signing → Cloudinary: signs upload
- Client uploads → Cloudinary: uploads media
- Staff user → Activity history: reviews activity
- Staff user → Volunteer management: manages volunteers
- Staff user → Accounts and divisions: manages accounts
- Staff user → Attendance oversight: reviews attendance
- Attendance oversight → Attendance matrix: resets records
- Staff user → Coordination directions: manages directions
- Staff user → Print views: prints reports