127 Commits

Author SHA1 Message Date
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
8144bdc42f fix: 从密钥/账单下拉框移除已到期的 MiniMax
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-06-06 12:23:36 +08:00
7dbfb2751d feat: 项目中心简化为直接嵌入 Gitea iframe
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
- 移除仓库列表/Issues/里程碑/Release/Runner 等所有 API 数据面板
- 移除页面标题行和面包屑导航
- 侧边栏点击「项目中心」直接全屏展示 Gitea

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 12:11:10 +08:00
6bcda17894 fix(admin): 普通用户页面显示 C 端真实用户列表
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
- /users/members 路由改为使用 MemberManagement 组件
- 新增"用户列表"Tab:调用 /admin-api/users 展示所有 C 端用户
- 显示邮箱、昵称、角色、状态、最后登录、注册时间
- 保留原有会员管理和注销审核 Tab

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 21:17:26 +08:00
60a9438176 fix: review status filter — change 全部 value from undefined to empty string
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 21:03:33 +08:00
d1661c0072 feat: add queue description column to events 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 21:00:32 +08:00
5edc467d19 fix: add Chinese labels for import status, type, and step fields
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 20:58:09 +08:00
3b936d6cb0 fix: set global Empty description to 暂无数据 in ConfigProvider
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 20:56:34 +08:00
b80b5e0c13 fix: TS errors — missing useState import, unused imports, Promise type issues
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 20:06:33 +08:00
9ed1a64929 fix: project center — repo selector dropdown, fix Gitea tab, clean UI
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 8s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 20:03:29 +08:00
e85ffc1bcf perf: add staleTime to ReviewAdmin query to prevent unnecessary refetches
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 7s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 19:56:06 +08:00
7e5ec80456 fix: M4 audit — add DELETE decisions, PATCH user-agreements, regular user list endpoint
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 8s
- ReleaseController: add DELETE decisions/:id
- ComplianceController: add PATCH user-agreements/:id
- AdminUsersMgmtController: add GET /admin-api/users (regular user listing with search)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:44:11 +08:00
050fb554f0 feat: M4-09 — compliance admin page (policies, agreements, filings, data requests, security)
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 7s
- ComplianceAdmin page with 6 tabs: privacy policies, user agreements, filings, data deletion, data export, security events

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:19:51 +08:00
adfeeaa657 feat: M4-08 — release admin page (changelogs, ADR, checklist)
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
- ReleaseAdmin page with 3 tabs: version logs, architecture decisions, release checklist
- CRUD modals for changelogs and decisions
- Checklist with check/uncheck toggle

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:15:42 +08:00
8b6c957a30 feat: M4-07 — Hermes agent tasks + artifacts tabs with approval buttons
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
- Replace iframe-only HermesSettings with 3-tab page
- Agent tasks table with approve/reject buttons
- Agent artifacts table with type labels
- Keep Hermes panel iframe tab

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:11:04 +08:00
cb83928d7a fix: remove unused BranchesOutlined import and unused render param
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 18:07:39 +08:00
471669c6cf feat: M4-06 — project center page with repos/issues/milestones/releases/runners
Some checks failed
Deploy Admin Frontend / build-and-deploy (push) Failing after 6s
- Replace GiteaEmbed iframe with full ProjectCenter page
- Tabs: repos, issues, milestones, releases, runners, Gitea embed
- Rename menu 代码仓库 → 项目中心

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:06:38 +08:00
8795b4d045 fix: use correct token key for CSV download auth
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 18:02:57 +08:00
4b14178574 feat: M4-05 — reporting admin page with CSV download buttons
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
- ReportingAdmin page: download user/learning/review CSV with day range selector

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:01:38 +08:00
b36924d9b3 feat: M4-04 — backup & cleanup admin page
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 11s
- Add BackupAdmin page with backup/cleanup tabs
- Trigger buttons for mysql/qdrant/files backup and soft-delete/api-metrics/task-logs cleanup

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 17:57:50 +08:00
8145279626 feat: M4-03 — health check status section in Servers page
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 10s
- Add getServerHealth API function with types
- Add health check status tags below server cards

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 17:51:44 +08:00
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