]> acesimba.cloud Git - words.git/commit
V2: Daily Batch 学习模型完整实现
authorCodeBuddy <codebuddy@local>
Thu, 20 Aug 2026 05:07:46 +0000 (13:07 +0800)
committerCodeBuddy <codebuddy@local>
Thu, 20 Aug 2026 05:07:46 +0000 (13:07 +0800)
commit7a150327e2dce48535cd45bbedcedc686991883c
treec5efe810da917734e0beeb3b6b518cf7c60e69be
parent6c4ead2d4282a5bcf4342a2cf7a4d4e23be1db3c
V2: Daily Batch 学习模型完整实现

- 数据库: init_v2_db.py 导入词库(1852词, spell 560/recognize 1292) + 新列 + 5 张 V2 表(word_progress/daily_plans/daily_plan_items/learning_events/study_sessions)
- 后端: 动态 Daily Batch 调度器(预算/成本权重/15分钟上限) + UUID 事件幂等 + 主动时长会话 + 5 类综合题库(best-effort, 标记待校对) + V2 日历聚合(legacy 历史合并)
- 前端: Home 改动态仪表盘; 新增 DailyBatch 会话(spell/recognize 新学+复习 + 5 综合题 + 错词队尾重测 + Active Time); V2 日历(时长/新/复/题 + 日详情); GroupView 只读带 memory_type
- 同步: UUID 事件/会话/计划 离线优先, 取代 (group,op) 去重
- 隔离: 独立 DB(bcd_v2.db)/端口(1061)/路径(/v2)/IndexedDB(words-pwa-v2)/SW cache(words-pwa-v2)/token
- V1 不受影响(独立分支/服务/库)
19 files changed:
backend/init_v2_db.py [new file with mode: 0644]
backend/main.py
frontend/public/sw.js
frontend/src/App.js
frontend/src/activeTime.js [new file with mode: 0644]
frontend/src/api.js
frontend/src/components/DailyBatch.js [new file with mode: 0644]
frontend/src/components/GroupView.css
frontend/src/components/GroupView.js
frontend/src/components/Home.css
frontend/src/components/Home.js
frontend/src/components/StudyCalendar.css
frontend/src/components/StudyCalendar.js
frontend/src/components/StudyMode.css
frontend/src/components/StudyMode.js [deleted file]
frontend/src/components/SyncNotifications.js
frontend/src/components/TestMode.js [deleted file]
frontend/src/db.js
frontend/src/sync.js