cf1ea873e0
refactor: replace any with proper types in admin page api calls
...
Deploy Admin Frontend / build-and-deploy (push) Failing after 7s
- Add CacheStats, NotificationTemplate, NotificationLog, ReviewCardItem to types/api.ts
- Use PaginatedResult<T> for ReviewAdmin pagination
- All queryFn now declare explicit Promise<T> return type
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 16:22:47 +08:00
11287e2c4f
fix: TS errors in admin pages — unused imports, wrong api import path, implicit any types
...
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
- Fix api import: @/lib/api → @/services/http-client
- Fix api.get usage: remove unsupported params arg, use URL params
- Fix unused imports (React, Card, Input)
- Add explicit generic types to api.get calls
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 16:20:42 +08:00
9d080bf9e8
fix: M3 audit — scheduleState persistence, AI→ReviewCard subscriber, ActiveRecall queue, streak bug, domain events, admin pages
...
Deploy Admin Frontend / build-and-deploy (push) Failing after 8s
- M3-02: Add scheduleState to ReviewCard Prisma model + persist in updateCard/insertCard
- M3-02: Add ReviewCardSubscriber (OnEvent 'ai.analysis.completed' → generateCards)
- M3-02: Add AdminReviewController (GET /admin-api/reviews)
- M3-01: ActiveRecall now enqueues via AiAnalysisService instead of direct workflow call
- M3-01: FocusItem model adds source field, worker uses status:'open'
- M3-03: Fix streak calculation (break on gap), add StreakUpdatedEvent
- M3-03: Add LearningGoal/StreakRecord/LearningStats to Prisma
- M3-03: Fix FocusItem recommendation query (status:'pending' → 'open')
- Admin pages: ReviewAdmin, NotificationAdmin, CacheAdmin
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 16:17:00 +08:00