π Phase 3 β Connect Admin UI to Real Backend APIs
Semua halaman admin saat ini masih menggunakan hardcoded/mock data. Backend API sudah fully implemented sejak Phase 2. Issue ini melacak pekerjaan menghubungkan UI ke API yang sudah ada.
Scope Checklist
A. UsersPage
B. DevicesPage
C. SchedulesPage
D. AttendancePage
E. Dashboard Stats
F. Shared Infrastructure
API yang Sudah Ada di Backend
| Endpoint |
Method |
Dipakai di |
/api/v1/users |
GET, POST |
UsersPage |
/api/v1/users/{id} |
DELETE |
UsersPage |
/api/v1/devices |
GET, POST |
DevicesPage |
/api/v1/devices/{id} |
DELETE |
DevicesPage |
/api/v1/schedules |
GET, POST |
SchedulesPage |
/api/v1/schedules/{id} |
PUT, DELETE |
SchedulesPage |
/api/v1/attendance |
GET |
AttendancePage |
/api/v1/reports/attendance/daily |
GET |
Dashboard |
/api/v1/reports/attendance/export |
GET |
AttendancePage |
/api/v1/tenants |
GET |
SuperAdmin |
Definition of Done
- Tidak ada lagi hardcoded
ROWS, DEVICES, SCHEDULES array di UI
- Semua halaman menampilkan data dari backend yang berjalan
- Auth token dikirim di setiap request
- Loading dan error state di-handle dengan baik
- TypeScript tidak ada
any baru
π Phase 3 β Connect Admin UI to Real Backend APIs
Semua halaman admin saat ini masih menggunakan hardcoded/mock data. Backend API sudah fully implemented sejak Phase 2. Issue ini melacak pekerjaan menghubungkan UI ke API yang sudah ada.
Scope Checklist
A. UsersPage
GET /api/v1/usersβ render tabel user nyataPOST /api/v1/users(form modal)DELETE /api/v1/users/{id}B. DevicesPage
GET /api/v1/devicesβ render daftar kiosk nyataPOST /api/v1/devices(form modal)DELETE /api/v1/devices/{id}C. SchedulesPage
GET /api/v1/schedulesβ render jadwal shift nyataPOST /api/v1/schedulesPUT /api/v1/schedules/{id}DELETE /api/v1/schedules/{id}D. AttendancePage
GET /api/v1/attendanceβ render data absensi nyataGET /api/v1/reports/attendance/export?format=csvE. Dashboard Stats
GET /api/v1/reports/attendance/dailyβ stat cards nyataGET /api/v1/tenantsF. Shared Infrastructure
authStore)API yang Sudah Ada di Backend
/api/v1/users/api/v1/users/{id}/api/v1/devices/api/v1/devices/{id}/api/v1/schedules/api/v1/schedules/{id}/api/v1/attendance/api/v1/reports/attendance/daily/api/v1/reports/attendance/export/api/v1/tenantsDefinition of Done
ROWS,DEVICES,SCHEDULESarray di UIanybaru