5 Commits

Author SHA1 Message Date
5de0b0ecaf refactor: merge admin/learning into admin-api/learning, restore API isolation
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 11s
- Move AdminLearningService + DTOs to learning-session module
- Merge 21 new endpoints into existing admin-api/learning controller
- Add analysis and ai-usage methods to unified service
- Delete admin-learning module (no longer needed)
- Revert JwtAuthGuard /api/admin bypass (was breaking isolation)
- Fix: /api/* now exclusively serves user/iOS traffic again

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-18 19:26:04 +08:00
a2cb0681d9 feat: RecordPage with filter + detail drawer (ADMIN-INFO-008)
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 8s
- Add userId filter input to LearningRecord list
- Add click-to-view detail Drawer with full record info
- Fix occurredAt formatting to use dayjs
- Add scroll for narrow displays

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-15 21:26:44 +08:00
ea73400857 fix: resolve TypeScript build errors in admin learning pages
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
- Remove 5 unused antd imports (Card, Descriptions, message, Spin, Alert)
- Add PaginatedResponse<T> interface for typed API responses
- Add explicit return types to all learningAdminAPI functions
- Remove unused isLoading from UserDiagnosePage / MaterialDiagnosePage

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-10 22:42:59 +08:00
e4ab4bb02b fix: admin audit — use actual API pattern + fix lazy imports
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
- Replace non-existent apiGet/apiPost with inline fetch
- Fix lazy(() => import()).then() → lazy(() => import().then())

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 22:00:11 +08:00
a9a7d651bb feat: ADMIN-INFO admin learning dashboard frontend (21/21)
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 8s
- Dashboard page with statistics cards
- Data pages: ReadingEvents, Sessions, Progress, DailyActivities, Records
- Diagnostic: Anomalies, User/Material Diagnose
- API service: learningAdmin.ts
- Routes: /learning/*

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-09 21:55:52 +08:00