Commit Graph

17 Commits

Author SHA1 Message Date
GuavaPopper 8476c5d643 feat: Plan 3 — Manajemen Pengguna (Admin User Management)
- Add AdminUserController: CRUD users, assign role, reset password,
  self-delete guard (403 on own account)
- Add admin route group under role:administrator middleware
  (GET/POST/PUT/DELETE /api/admin/users, PUT /api/admin/users/{id}/password)
- Add resources/views/admin/users.blade.php: DaisyUI table + 4 modals
  (create, edit, reset password, delete confirm), stats grid, toast
- Add Admin nav link (administrator-only) to map and data navbars
- 9 new tests covering page access, API CRUD, self-delete guard, password reset
- Mark Plan 3 complete in missing_features.md; update README page list
- Save plan3 to docs/ for reference

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 13:51:08 +07:00
GuavaPopper 2e2b42f96b feat: Plan 2 — Form Edit Rumah Ibadah & Keluarga Miskin + Ownership
- Add user_id FK (nullable) to rumah_ibadah for ownership tracking
- IbadahController: set user_id on store; enforce ownership on update/destroy
- Add edit modals to map and data views (ibadah + miskin)
- Popup and table row Edit buttons with per-record ownership check
- 7 new tests covering ownership and full-field updates
- Fix ExampleTest for auth-protected routes
- Fix UserFactory missing email_verified_at column
- Mark Plan 2 complete in missing_features.md; update README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 20:29:36 +07:00
GuavaPopper 15294a5d2f docs: update missing_features.md — mark Auth & RBAC complete, add ownership gap 2026-06-02 20:07:10 +07:00
GuavaPopper 38199d5860 feat: add demo accounts for all 4 roles in seeder 2026-06-02 19:55:25 +07:00
GuavaPopper 3310efe77e fix: restore Docker env settings and auto-seed on container start 2026-06-02 19:51:21 +07:00
GuavaPopper 5683cd3b0e feat: add auth navbar and role-aware UI to all views
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 19:34:17 +07:00
GuavaPopper f609c1efa7 feat: add custom login view with map background 2026-06-02 19:28:26 +07:00
GuavaPopper 42e8932482 feat: add AuthController, protect routes, move API to web middleware
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 19:22:46 +07:00
GuavaPopper 4b43f7617f feat: register spatie permission middleware aliases 2026-06-02 19:19:53 +07:00
GuavaPopper dda123d9aa feat: add roles seeder with 4 roles and default admin account
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 19:16:57 +07:00
GuavaPopper 3fd7845bc8 feat: add User model and users migration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 19:13:33 +07:00
GuavaPopper f82b36ccc7 feat: install spatie/laravel-permission 2026-06-02 19:06:46 +07:00
GuavaPopper 1ba5e33c26 refactor: remove unused index configuration files and associated logic 2026-05-02 14:58:49 +07:00
GuavaPopper d84874e60b docs: add philosophy and background section to project README 2026-05-02 14:08:43 +07:00
GuavaPopper ee4a890732 docs: migrate project documentation into README and remove redundant file 2026-05-02 14:06:06 +07:00
GuavaPopper 6f108afdba Migrasi ke Laravel dan penambahan dokumentasi 2026-05-02 14:03:04 +07:00
GuavaPopper 7759b83638 Implement reverse geocoding for Rumah Miskin 2026-04-28 10:08:31 +07:00