106 Commits

Author SHA1 Message Date
35a3f40ef8 feat: M4-02 — LearningData admin page with sessions, analysis, AI usage tabs
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 17:45:53 +08:00
2118adfb66 fix: add missing userTrend/aiCallTrend fields to dashboard stats response
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 17:41:32 +08:00
b26bcba774 fix: update mock data to match new DashboardStats type fields
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 17:39:41 +08:00
eb2764518d feat: M4-01 — add cost, import, task, expiration metric cards to dashboard
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 7s
- Update DashboardStats type with new fields
- Add 4 new metric cards: today's AI cost, import tasks, failed tasks, upcoming expirations

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 17:36:26 +08:00
d3665e9a02 fix: pass generic type to api.get<T>() calls in admin pages
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 17:29:17 +08:00
cf1ea873e0 refactor: replace any with proper types in admin page api calls
Some checks failed
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
All checks were successful
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
Some checks failed
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
03c38f5d4c feat: M3-04/05/06 — Workspace Experience, Notification, Cache Module
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
- M3-04: Workspace Module (RecentItem, Favorite, SearchHistory, Tags, Search, Dashboard)
- M3-05: Notification Module (Preferences, PushToken, Templates, Admin endpoints)
- M3-06: Cache Module (CacheService with wrap/penetration protection, Admin cache management)
- E2E: 27 new tests for M3-04/05/06 (35/36 passing overall)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 16:00:29 +08:00
d77423ef95 feat: M2-07 audit — admin chat log viewer page
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:58:40 +08:00
1c864f0de1 feat: M2-08 admin — KnowledgeOps page (candidates, chunks, RAG debug)
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:42:54 +08:00
237913468c feat: M2-04 admin — ImportMonitor page with detail drawer
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:12:04 +08:00
0b0612760c feat: M2-02/03 admin KB page — source list + reference tracking drawer
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:34:00 +08:00
ce00b58c4a feat: M2-01 member management — membership + deletion review page
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:19:18 +08:00
92653385ea feat: M1-06 billing page — AI cost report tab + CSV export
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:04:00 +08:00
6812d8038d feat: M1-05 metrics page — AI + Worker performance tabs
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:56:45 +08:00
d71bb5f4d8 feat: M1-04 content safety — reports + violations management tabs
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:52:39 +08:00
bf79178546 fix: regenerate package-lock.json with prisma dependency restored
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
npm ci was failing because prisma was missing from the lockfile after
adding @qdrant/js-client-rest. Reinstalled to rebuild from package.json.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:34:00 +08:00
8464640e5d fix: TypeScript build errors — unused imports, unknown types
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
- Remove unused imports from AiGateway (Space, EditOutlined, etc.)
- Add type annotations in Events page (batch retry, failed jobs)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:23:10 +08:00
f6917d63d3 feat: M1-01~03 admin pages — AI Gateway, Vector, Events deepening
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 7s
M1-01 AI Gateway:
- Tab-based layout: Overview, Routes CRUD, Provider toggle, Fallback logs

M1-02 Vector:
- New VectorAdmin page: collection stats, info panel, reindex trigger
- Route /vector + menu entry under 系统运维

M1-03 Events:
- Tab-based layout: Queue overview (with batch retry), Task statistics
- Worker status panel, 16 task type configs table

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:18:22 +08:00
6020867060 fix: remove unused App import
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
2026-05-23 20:47:49 +08:00
64a77791c1 feat: M0-04+M0-05 — security events + throttle admin pages
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 7s
2026-05-23 20:47:34 +08:00
c803fefde6 fix: add back icon imports
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
2026-05-23 20:38:14 +08:00
64f7ac12b1 fix: remove unused import
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
2026-05-23 20:37:37 +08:00
11297127d6 feat: M0-12 secrets admin page
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 6s
2026-05-23 20:37:26 +08:00
a0be7bf832 fix: remove duplicate menu entries
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
2026-05-23 20:32:44 +08:00
d051fa7e39 fix: add MembershipPage import
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
2026-05-23 20:19:14 +08:00
75babd294e fix: replace membership placeholder with real page
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
2026-05-23 20:18:55 +08:00
bc9ad19426 feat: M0-11 membership + quota + cost admin web page
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
2026-05-23 20:15:24 +08:00
2769f108f6 fix: restore Typography
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
2026-05-23 09:45:21 +08:00
ce55715574 fix: imports
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Has been cancelled
2026-05-23 09:45:09 +08:00
5d6b803f66 feat: M0-09 admin files page
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Has been cancelled
2026-05-23 09:44:58 +08:00
38cc2ff74c fix: add AiGatewayPage import
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 11s
2026-05-23 09:40:05 +08:00
badf4258b1 feat: M0-08 AI Gateway admin web page
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Has been cancelled
2026-05-23 09:39:53 +08:00
b90ac755c4 fix: remove App import
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
2026-05-22 23:21:47 +08:00
bf907196d0 fix: imports + types
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
2026-05-22 23:21:30 +08:00
2413cdf561 feat: M0-06+M0-07 admin web — Content Safety + Metrics pages
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 5s
2026-05-22 23:21:15 +08:00
e28f962147 feat: feature flag user whitelist support
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
2026-05-22 23:00:31 +08:00
6d2921e3e0 feat: preset config dropdown with auto-fill default values
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
2026-05-22 22:46:09 +08:00
f5882c8ee6 feat: config page with tooltips, help tab, and parameter docs
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
2026-05-22 22:44:19 +08:00
f2f427bbe8 fix: add ConfigPage lazy import
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
2026-05-22 22:37:45 +08:00
a5483cf37f feat: M0-03 config management admin page
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 6s
2026-05-22 22:37:28 +08:00
13834af55d fix: EventsPage import + unused imports
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
2026-05-22 22:32:04 +08:00
af76de4ff7 feat: events queue page + restructure under 系统运维
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 7s
2026-05-22 22:31:46 +08:00
31fa5d836a perf: code-split vendor chunks — react/antd/echarts/markdown
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
2026-05-22 19:23:43 +08:00
085d65d05d fix: split combined statement in tool.completed
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
2026-05-22 19:13:43 +08:00
62b4963bb8 fix: expand switch cases
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 4s
2026-05-22 19:13:22 +08:00
0efc78c656 fix: right-aligned user bubbles + no labels + Chinese + copy btn
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 4s
2026-05-22 19:13:06 +08:00
f9c99dbd32 fix: remove unused imports
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
2026-05-22 19:09:33 +08:00
427691290b feat: pixel-level DeepSeek UI clone
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 6s
2026-05-22 19:09:17 +08:00