[darmasaba-dashboard][2026-03-27] feat: modular seeders and database-backed dashboard
- Split seeders into modular files per feature category - Added seed:auth, seed:demographics, seed:divisions, seed:services, seed:dashboard commands - Connected dashboard components to live database (Budget, SDGs, Satisfaction) - Added API endpoints: /api/dashboard/budget, /api/dashboard/sdgs, /api/dashboard/satisfaction - Updated prisma schema with dashboard metrics models - Added loading states to dashboard components - Fixed header navigation to /admin Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -14,7 +14,12 @@
|
||||
"test:e2e": "bun run build && playwright test",
|
||||
"build": "bun build ./src/index.html --outdir=dist --sourcemap --target=browser --minify --define:process.env.NODE_ENV='\"production\"' --env='VITE_*' && cp -r public/* dist/ 2>/dev/null || true",
|
||||
"start": "NODE_ENV=production bun src/index.ts",
|
||||
"seed": "bun prisma/seed.ts"
|
||||
"seed": "bun prisma/seed.ts",
|
||||
"seed:auth": "bun prisma/seed.ts auth",
|
||||
"seed:demographics": "bun prisma/seed.ts demographics",
|
||||
"seed:divisions": "bun prisma/seed.ts divisions",
|
||||
"seed:services": "bun prisma/seed.ts services",
|
||||
"seed:dashboard": "bun prisma/seed.ts dashboard"
|
||||
},
|
||||
"dependencies": {
|
||||
"@better-auth/cli": "^1.4.18",
|
||||
|
||||
Reference in New Issue
Block a user