feat: Plan 4 — Dashboard Statistik + Gap Analysis

- Add /dashboard route (all authenticated roles)
- Add dashboard view with Chart.js 4.4:
  - 4 stat cards (ibadah, miskin, jiwa, % terjangkau)
  - Donut chart: ibadah per jenis
  - Horizontal bar chart: miskin per kondisi rumah
  - Gap Analysis: Turf.js coverage computation, doughnut chart,
    per-ibadah coverage table sorted by KK count, uncovered family list
  - esc() helper applied to all user-data innerHTML
- Add Dashboard nav link to map, data, and admin views
- 5 new tests: unauthenticated redirect + all 4 roles can access
- Mark K-02 and K-03 complete in missing_features.md
- Update README with new page and feature section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
GuavaPopper
2026-06-03 14:19:37 +07:00
parent c1c1fae93c
commit f855f7e027
8 changed files with 488 additions and 8 deletions
+1
View File
@@ -18,6 +18,7 @@ Route::middleware('auth')->group(function () {
Route::get('/', fn() => view('welcome'));
Route::get('/map', fn() => view('map'));
Route::get('/data', fn() => view('data'));
Route::get('/dashboard', fn() => view('dashboard'))->name('dashboard');
// API routes moved here for session + CSRF middleware
Route::prefix('api')->group(function () {