How elwinmusadi/portal-uptdkotakupang works
PINTU is a prototype information-and-services portal for Samsat Kota Kupang, with this React app providing its staff content-management dashboard. Staff enter through the portal login; the dashboard checks the browser session, routes to management pages, and supports a documented draft-to-publication workflow. The README also identifies operational tools such as field attendance and a PKB calculator. Dashboard data is currently stored in browser IndexedDB, with REST API support described as a future connection. Some capability links are documented rather than verified in sampled page implementations.
Main entry points: router.tsx Page router · client.ts Data API contract · alur.tsx Publication workflow · daftar.tsx News and notices
Components 21
Dashboard entry
- Session check
dashboard-app/src/lib/auth.ts - Dashboard app
dashboard-app/src/main.tsx - Page router
dashboard-app/src/app/router.tsx - Dashboard layout
dashboard-app/src/app/layout.tsx
Publishing workflow
- Publication workflow
dashboard-app/src/components/alur/alur.tsx - Review queue
dashboard-app/src/components/antrean-kerja.tsx
Portal content
- News and notices
dashboard-app/src/pages/berita/daftar.tsx - Service requirements
dashboard-app/src/pages/layanan/daftar.tsx - Service schedules
dashboard-app/src/pages/jadwal/jam.tsx - Profile and pages
dashboard-app/src/pages/halaman/daftar.tsx - Messages and complaints
dashboard-app/src/pages/pesan.tsx - Regulations and downloads
dashboard-app/src/pages/unduhan.tsx - Service statistics
dashboard-app/src/pages/statistik.tsx
Staff operations
- Field attendance
dashboard-app/src/pages/absensi.tsx - PKB calculator
dashboard-app/src/pages/kalkulator.tsx
Data services
- Data API contract
dashboard-app/src/lib/api/client.ts - Local data store
dashboard-app/src/lib/api/local.ts - Initial portal data
dashboard-app/src/lib/api/seed.ts - REST API adapter
dashboard-app/src/lib/api/http.ts
Other components
- Staff user
- Browser IndexedDB
Connections 25
- Staff user → Session check: signs in
README.md - Dashboard app → Session check: checks session
dashboard-app/src/main.tsx - Dashboard app → Page router: mounts routes
dashboard-app/src/main.tsx - Page router → Dashboard layout: renders layout
dashboard-app/src/app/router.tsx - Page router → News and notices: routes to
dashboard-app/src/app/router.tsx - Page router → Service requirements: routes to
dashboard-app/src/app/router.tsx - Page router → Service schedules: routes to
dashboard-app/src/app/router.tsx - Page router → Profile and pages: routes to
dashboard-app/src/app/router.tsx - Page router → Messages and complaints: routes to
dashboard-app/src/app/router.tsx - Page router → Regulations and downloads: routes to
dashboard-app/src/app/router.tsx - Page router → Service statistics: routes to
dashboard-app/src/app/router.tsx - Page router → Field attendance: routes to
dashboard-app/src/app/router.tsx - Page router → PKB calculator: routes to
dashboard-app/src/app/router.tsx - Review queue → Publication workflow: offers actions
dashboard-app/src/components/antrean-kerja.tsx - News and notices → Publication workflow: follows stages
README.md - Service requirements → Publication workflow: follows stages
README.md - Profile and pages → Publication workflow: follows stages
README.md - News and notices → Data API contract: uses data service
- Service requirements → Data API contract: uses data service
- Messages and complaints → Data API contract: uses data service
- Field attendance → Data API contract: uploads attendance photo
dashboard-app/src/pages/absensi.tsx - Data API contract → Local data store: local implementation
dashboard-app/src/lib/api/local.ts - Data API contract → REST API adapter: server implementation
- Local data store → Initial portal data: initializes from
dashboard-app/src/lib/api/local.ts - Local data store → Browser IndexedDB: reads and writes
dashboard-app/src/lib/api/local.ts