Commit Graph

7 Commits

Author SHA1 Message Date
hiderfong 3b50ccc7e1 feat: dashboard & report APIs with real DB stats
Backend:
- Add /dashboard/stats API (data_sources, tables, columns, labeled, sensitive, projects)
- Add /dashboard/distribution API (level/cat/source distribution, project progress, heatmap)
- Add /reports/stats API (total/auto/manual/reviewed counts + level distribution)
- Fix report download: add template relationship to ClassificationProject
- All stats computed from real DB queries

Frontend:
- Dashboard.vue: replace all hardcoded data with API-driven computed charts
- Report.vue: replace all hardcoded data with API-driven charts
- Add dashboard.ts and report.ts API clients
2026-04-23 11:10:16 +08:00
hiderfong 5119ca775b fix: classification results empty and res.data access issues
Backend:
- Add GET /classifications/results endpoint with project/level/keyword filters
- Add column relationship to ClassificationResult model
- Fix test data generator to fetch column IDs from DB after bulk insert

Frontend:
- Fix request.ts interceptor to return full response body (keep total/pagination)
- Fix all pages to use res.data instead of res
- Add getClassificationResults API in classification.ts
- Implement fetchData in Classification.vue with proper filtering and pagination
- Fix same res.data issue in Category.vue, Metadata.vue, Project.vue, DataSource.vue, Dashboard.vue, Task.vue
2026-04-23 10:46:51 +08:00
hiderfong 4b08bb5057 feat: add test data generator script
Generate 35,000+ realistic test records:
- 12 data sources (PostgreSQL, MySQL, Oracle, SQL Server, DM)
- 31 databases, 863 tables, 17,152 columns
- 81 users across 13 departments
- 8 classification projects, 24 tasks
- 12,000 classification results with varied confidence levels
- 5,000 operation logs

Covers all insurance domains: policy, claim, customer, finance, channel, actuary, regulatory, vehicle
2026-04-22 18:16:44 +08:00
hiderfong cc7ee0c0a6 fix: make auth tests pass with initial data setup 2026-04-22 17:24:05 +08:00
hiderfong fb4aaad9fc feat: Phase 3-5 - workflow, labeling, reports, dashboard enhancement, tests 2026-04-22 17:22:11 +08:00
hiderfong e71b13fe39 chore: add .gitignore and remove venv/node_modules from tracking 2026-04-22 17:08:15 +08:00
hiderfong 1773bda06b feat: initial commit - Phase 1 & 2 core features 2026-04-22 17:07:33 +08:00