How tahuatautempeh/ppk-praktikum-after-uts works
Presensi Praktikum is a mobile and web attendance app for laboratory classes. Assistants manage classes, participants, laboratories and sessions; opening a session enables enrolled students to submit location-checked attendance. Assistants review leave requests, then close sessions; attendees can submit session feedback, scored by an on-device sentiment model. Firebase Authentication and Firestore provide identity and shared records, with push notifications handled by the app and optional server-side workers. The map and administration capabilities are included as distinct branches. Some service and screen implementations were not excerpted, so those links rely on README statements rather than inspected implementation.
Main entry points: firestore.ts Cloud Firestore · session-manage-list-screen.tsx Session management · attendance-service.ts Attendance submission · auth-context.tsx Authentication and profile
Components 23
Identity and access
- Sign in and register
src/app/(auth)/login.tsx - Authentication and profile
src/context/auth-context.tsx - User administration
src/app/asisten/(tabs)/admin.tsx
Class and session operations
- Classes and enrollment
src/lib/enrollment-service.ts - Session management
src/screens/asisten/sesi/session-manage-list-screen.tsx - Session controls
src/screens/asisten/session-screen.tsx - Laboratory management
src/lib/laboratory-service.ts - Leave review
src/screens/asisten/izin/review-izin.tsx
Student attendance
- Attendance submission
src/lib/attendance-service.ts - Location validation
src/lib/geo.ts - Leave requests
src/lib/permission-service.ts - Attendance history
src/screens/praktikan/riwayat-screen.tsx
Maps and feedback
- Laboratory map
src/screens/peta/peta-screen.tsx - Session recap
src/screens/asisten/recap-screen.tsx - Session feedback
src/lib/kesan-pesan-service.ts - On-device sentiment
ai/sentiment.js
Firebase and notifications
- Firebase Authentication
src/lib/firebase/auth.ts - Cloud Firestore
src/lib/firebase/firestore.ts - Push notification service
src/lib/notification-service.ts - Notification handlers
functions/src/notification-handlers.ts - Notification worker
functions/src/worker.ts
Other components
- Assistant
- Student
Connections 36
- Student → Sign in and register: registers or signs in
README.md - Assistant → Sign in and register: signs in
README.md - Sign in and register → Authentication and profile: uses identity
- Authentication and profile → Firebase Authentication: authenticates
src/context/auth-context.tsx - Authentication and profile → Cloud Firestore: loads profile
src/context/auth-context.tsx - Assistant → User administration: manages roles
README.md - User administration → Cloud Firestore: updates user roles
README.md - Assistant → Classes and enrollment: manages participants
README.md - Classes and enrollment → Cloud Firestore: reads and writes enrollments
src/lib/enrollment-service.ts - Assistant → Session management: manages sessions
README.md - Session management → Session controls: opens session controls
- Session management → Classes and enrollment: loads class data
src/screens/asisten/sesi/session-manage-list-screen.tsx - Session management → Laboratory management: loads laboratories
src/screens/asisten/sesi/session-manage-list-screen.tsx - Session management → Cloud Firestore: creates and updates sessions
README.md - Assistant → Leave review: reviews leave
README.md - Leave review → Cloud Firestore: records review
README.md - Student → Attendance submission: submits attendance
README.md - Attendance submission → Session controls: checks open session
README.md - Attendance submission → Location validation: validates location
README.md - Attendance submission → Classes and enrollment: checks enrollment
README.md - Attendance submission → Cloud Firestore: writes attendance
README.md - Student → Leave requests: requests leave
README.md - Leave requests → Cloud Firestore: stores request
README.md - Student → Attendance history: views attendance
README.md - Attendance history → Cloud Firestore: reads attendance
- Student → Laboratory map: views laboratories
README.md - Assistant → Laboratory map: views laboratories
README.md - Assistant → Session recap: reviews attendance
README.md - Student → Session feedback: submits session feedback
README.md - Session feedback → On-device sentiment: scores sentiment
README.md - Session feedback → Cloud Firestore: stores feedback
- Authentication and profile → Push notification service: registers push token
src/context/auth-context.tsx - Push notification service → Cloud Firestore: stores token
- Notification worker → Notification handlers: dispatches handlers
functions/src/worker.ts - Notification handlers → Cloud Firestore: reads events and logs
functions/src/notification-handlers.ts - Notification handlers → Student: sends push alerts
README.md