Commit Graph

19 Commits

Author SHA1 Message Date
6ace5b5d1c feat(noc): integrate DocumentStat model and sync with external NOC API 2026-03-31 15:04:51 +08:00
1b1dc71225 tasks/noc-integration/setup-skills-and-notifications/20260330-1610 2026-03-30 16:58:30 +08:00
f066defcba fix(noc): resolve 401 error on sync endpoint and allow public GET access to monitoring 2026-03-30 14:56:43 +08:00
65844bac7e feat(noc): implement sync management UI and backend integration 2026-03-30 14:48:47 +08:00
3125bc1002 feat(noc): implement NOC API module and sync strategy task 2026-03-30 14:32:12 +08:00
8e2608a2be fix: complaint trends API response type
- Changed response type from strict object to t.Any()
- Fixes 422 Unprocessable Entity error
- Allows flexible response format matching generated types

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 16:29:28 +08:00
0736df8523 feat: connect pengaduan-layanan-publik to live database
New API Endpoint:
- GET /api/complaint/trends - Fetch complaint trends for last 7 months

Component Updates:
- Removed hardcoded trenData array (7 months mock data)
- Removed hardcoded ideInovatif array (2 mock ideas)
- Added API calls to /api/complaint/trends and /api/complaint/innovation-ideas
- Added loading states for trend chart and innovation ideas
- Added empty states for both sections
- Connected LineChart to real complaint data
- Connected Innovation Ideas list to real InnovationIdea model

Features Added:
- Real-time complaint trend visualization
- Real innovation ideas from database
- Proper TypeScript typing for API responses
- Loading skeletons during data fetch
- Empty state messages when no data

Files changed:
- src/api/complaint.ts: Added /trends endpoint
- src/components/pengaduan-layanan-publik.tsx: Connected to APIs
- generated/api.ts: Regenerated types

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 16:26:24 +08:00
75c7bc249e feat: connect kinerja divisi components to live database
New API Endpoints (src/api/division.ts):
- GET /api/division/discussions - Fetch recent discussions with sender info
- GET /api/division/documents/stats - Fetch document counts by type
- GET /api/division/activities/stats - Fetch activity status breakdown with percentages

Components Connected to Database:
- discussion-panel.tsx: Now fetches from /api/division/discussions
- document-chart.tsx: Now fetches from /api/division/documents/stats
- progress-chart.tsx: Now fetches from /api/division/activities/stats

Features Added:
- Loading states with Loader component
- Empty states with friendly messages
- Date formatting using date-fns with Indonesian locale
- Real-time data from database instead of hardcoded values
- Proper TypeScript typing for API responses

Files changed:
- src/api/division.ts: Added 3 new API endpoints
- src/components/kinerja-divisi/discussion-panel.tsx
- src/components/kinerja-divisi/document-chart.tsx
- src/components/kinerja-divisi/progress-chart.tsx

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 15:43:58 +08:00
b77822f2dd fix: chart surat BigInt serialization error
Root Cause:
- PostgreSQL COUNT(*) returns BigInt (1n)
- Elysia cannot serialize BigInt to JSON
- Frontend receives error instead of data

Solution:
- Cast COUNT(*) to INTEGER in SQL query
- Changed: COUNT(*) as count
- To: COUNT(*)::INTEGER as count
- Now returns regular number instead of BigInt

Files changed:
- src/api/complaint.ts: Fixed service-trends endpoint

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 15:04:53 +08:00
44b6b158ef [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>
2026-03-27 12:14:19 +08:00
0d0dc187a5 chore: fix linting and type safety across the project 2026-03-26 15:51:45 +08:00
ec057ef2e5 feat(dashboard): connect dashboard components to database 2026-03-26 14:28:09 +08:00
0900b8f199 feat(database): implement resident and complaint API and connect DemografiPekerjaan 2026-03-26 14:17:41 +08:00
aeedb17402 fix(header): fix missing Divider, Badge, IconUserShield and navigate 2026-03-26 14:13:59 +08:00
bipproduction
0f71798389 feat: simplify testing structure into api and e2e categories 2026-02-08 11:01:55 +08:00
bipproduction
4640b72ca6 feat: complete OpenAPI migration and add test suite 2026-02-07 23:57:37 +08:00
bipproduction
f0c317837f feat: migrate from Elysia Eden to Contract-First API (OpenAPI) 2026-02-07 18:12:52 +08:00
bipproduction
6abd32650d chore: prepare for migration to OpenAPI 2026-02-07 18:04:37 +08:00
bipproduction
b9abcaadde Initial commit: Setup Bun, Elysia, Vite, React, TanStack Router, Mantine, and Biome 2026-02-07 02:15:29 +08:00