feat: add kependudukan seeders, API routes, year filter, and navbar menu

- Add Prisma models: DataBanjar, DistribusiAgama, DistribusiUmur, MigrasiPenduduk, DinamikaPenduduk
- Create seeders for all kependudukan models with year 2026 data
- Register Kependudukan API routes in route.ts
- Update API findMany endpoints to make tahun parameter optional
- Add YearFilter reusable component for admin pages
- Update 4 kependudukan admin pages with year filter UI
- Fix Mantine color array in AdminThemeProvider (add 10th element)
- Fix invalid Mantine color scale in paguTable.tsx (gray.50 -> gray.1)
- Add Kependudukan menu to navbar-list-menu.ts
- Fix Bun JSON import resolution with loadJsonData helper
- Update 74 seeder files to use dynamic JSON loading

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-04-10 11:54:36 +08:00
parent 5e822f0b05
commit 8b14c6ce44
146 changed files with 3051 additions and 201 deletions

View File

@@ -0,0 +1,7 @@
[
{
"id": "grafik-jk-001",
"perempuan": "45%",
"laki": "55%"
}
]

View File

@@ -0,0 +1,9 @@
[
{
"id": "grafik-responden-001",
"sangatbaik": "40%",
"baik": "35%",
"kurangbaik": "15%",
"tidakbaik": "10%"
}
]

View File

@@ -0,0 +1,9 @@
[
{
"id": "grafik-umur-001",
"remaja": "15%",
"dewasa": "45%",
"orangtua": "25%",
"lansia": "15%"
}
]

View File

@@ -0,0 +1,17 @@
[
{
"id": "ikm-001",
"label": "Kepuasan Pelayanan Administrasi",
"kepuasan": "85%"
},
{
"id": "ikm-002",
"label": "Kepuasan Pelayanan Kesehatan",
"kepuasan": "90%"
},
{
"id": "ikm-003",
"label": "Kepuasan Pelayanan Pendidikan",
"kepuasan": "88%"
}
]