The Problem
Local community learning groups (kelompok pengajian) manage recurring attendance across age tiers (Balita, Caberawit, Pra Remaja, Remaja, Pra Nikah, Dewasa), track Shodaqoh and Zakat distributions, and reconcile monthly Kas Utama balances. In practice, coordinators relied on paper registers, manual WhatsApp summaries, and separate spreadsheet files, creating duplicate member records and slow end-of-month financial recaps.
My Role & Constraints
I designed and built the Sambung Ngaji PWA across React 18 + TypeScript + Vite frontend screens (with TanStack Query IndexedDB offline caching via idb-keyval and virtualized member lists via @tanstack/react-virtual), containerized Go Fiber (1.26 / Fiber v2) REST APIs (pgx v5), PostgreSQL relational schemas, and Google OAuth authentication.
Key constraints shaping the mobile experience:
- Phone-first usage during live sessions: coordinators take attendance (
HADIR / IJIN / SAKIT / ALPAmapped to compactH / I / S / Ataps) while standing in front of a classroom on mid-range Android devices. - Strict role-based access control: SUPER_ADMIN, ADMIN, TIM_KU (treasury), TIM_ABSENSI, TIM_PNKB, PENGAWAS, and Member accounts share one PWA shell while accessing scoped views (Manajemen User, QR Pendaftaran, Import Jamaah, Posting ke Kas).
- Auditable community finance: Shodaqoh targets, Zakat percentage splits (Mustahik 45% · Sabilillah 40% · Amil 15%), and Kas Utama rollbacks require clear audit trails and WhatsApp-ready summaries.
Key Decisions
1. App-shell PWA navigation with 5 focused bottom tabs
Rather than burying daily actions inside nested desktop sidebars, the mobile shell pins five core workflows (Beranda, Jamaah, Absensi, Keuangan, Lainnya) at thumb reach alongside quick floating triggers for creation and AI-assisted queries.
- Trade-off: Limiting top-level tabs meant secondary admin screens (Kelola Jadwal, Rekap Absensi, Petugas Jumat, QR Pendaftaran) sit one tap inside Lainnya, but daily attendance and cash entry stay instant.
2. Single-tap H / I / S / A attendance matrix with batch override
Attendance screens pre-filter by active schedule (Rabu - Sambung Kelompok) and age/gender chips so coordinators can mark Hadir semua in one tap and adjust exceptions individually rather than opening modal forms per person.
Designing attendance around four color-coded status buttons reduced per-session check-in from minutes of scrolling to seconds of tapping.
Replacing multi-minute manual check-ins with a 1-tap matrix
Designed for coordinators standing in front of a class on mid-range Android phones.
Manual rolls & chat recaps
Coordinators crossed paper lists by hand and re-typed attendance summaries into WhatsApp.
- Duplicate member names across spreadsheets
- No role separation for Pengawas vs Admin
- Slow monthly attendance percentages
Minutes per session + error-prone retyping
Schedule filter + H / I / S / A taps
Active session chip pre-loads the right age tier for instant bulk attendance.
3. Explicit posting & percentage-lock workflow for Zakat and Shodaqoh
Financial inflows (Infak IR, Uang Sambung, Jimpitan, Siar-Siar) stay clearly separated from Kas Utama until explicitly posted (Pindah ke Kas) or rolled back, while Zakat distributions display live preview splits before locking records.
Percentage-locked Zakat splits and explicit Kas Utama commits
Keeping Shodaqoh inflows separate from main cash until verified by treasurers.
Inflow Capture
Records Infak IR, Uang Sambung, Jimpitan, and Siar-Siar separately from Kas Utama.
Explicit Posting Gate
Treasurers review totals before tapping 'Pindah ke Kas' (or rolling back mistakes).
Ledger & WA Recap
Go Fiber persists PostgreSQL transactions and generates WhatsApp-ready summaries.
Locked Zakat Distribution Rule (Auto-Calculated)
The Build
On the backend, containerized Go Fiber services handle Google OAuth login, JWT session validation, and transactional PostgreSQL updates across member, attendance, and ledger tables:
// Verified backend/frontend attendance codes (H / I / S / A UI pills)
export type AttendanceCode = "HADIR" | "IJIN" | "SAKIT" | "ALPA";
export interface AttendanceRecordInput {
scheduleId: string;
memberId: string;
status: AttendanceCode;
recordedAtIso: string;
}
export function summarizeAttendance(records: AttendanceRecordInput[]) {
const presentCount = records.filter((r) => r.status === "HADIR").length;
return {
total: records.length,
presentCount,
ratePct: records.length ? Math.round((presentCount / records.length) * 100) : 0,
};
}Outcome
- Deployed as an installable PWA at sambung-ngaji.pages.dev backed by containerized Go Fiber + PostgreSQL APIs.
- Unified Dashboard metrics, Jamaah directory & QR registration, Absensi quick-tap tracking, and Keuangan (Kas Utama, Shodaqoh & Infaq, Zakat Walikan) into one mobile workflow.
- Eliminated manual WhatsApp recap formatting via built-in copy & WhatsApp share actions directly on collection cards.
Reflection
Observing real coordinators use the mobile PWA highlighted how much screen density matters on 360px viewports: keeping numeric balances scannable, floating actions clear of the bottom tab bar, and status chips unambiguous makes day-to-day adoption stick.



