feat(kesehatan): refactor ringkasan kesehatan to auto-derived stats

- Add IbuHamil and Balita models to schema.prisma
- Implement IbuHamil and Balita API modules (CRUD)
- Implement /stats endpoint for aggregated health KPIs
- Refactor ringkasan-kesehatan admin page to dashboard-style UI
- Update sidebar with Ibu Hamil and Balita entries
- Fix type errors and icon exports in admin UI
- Bump version to 0.1.52
This commit is contained in:
2026-05-04 16:52:14 +08:00
parent fc6846f7a1
commit dccba1f82b
30 changed files with 2706 additions and 197 deletions

View File

@@ -171,6 +171,16 @@ export const devBar = [
id: "Kesehatan_8",
name: "Ringkasan Kesehatan",
path: "/admin/kesehatan/ringkasan-kesehatan"
},
{
id: "Kesehatan_9",
name: "Ibu Hamil",
path: "/admin/kesehatan/ibu-hamil"
},
{
id: "Kesehatan_10",
name: "Balita",
path: "/admin/kesehatan/balita"
}
]
},
@@ -612,6 +622,16 @@ export const navBar = [
id: "Kesehatan_8",
name: "Ringkasan Kesehatan",
path: "/admin/kesehatan/ringkasan-kesehatan"
},
{
id: "Kesehatan_9",
name: "Ibu Hamil",
path: "/admin/kesehatan/ibu-hamil"
},
{
id: "Kesehatan_10",
name: "Balita",
path: "/admin/kesehatan/balita"
}
]
},
@@ -1287,6 +1307,16 @@ export const role2 = [
id: "Kesehatan_8",
name: "Ringkasan Kesehatan",
path: "/admin/kesehatan/ringkasan-kesehatan"
},
{
id: "Kesehatan_9",
name: "Ibu Hamil",
path: "/admin/kesehatan/ibu-hamil"
},
{
id: "Kesehatan_10",
name: "Balita",
path: "/admin/kesehatan/balita"
}
]
},