Commit Graph

74 Commits

Author SHA1 Message Date
7c71ffcf31 fix(card): use RELEARNING_STEPS for relearning card interval preview 2026-03-13 15:44:06 +08:00
12e502313b feat(memorize): enhance review UI with dynamic intervals and keyboard shortcuts
- Add keyboard shortcuts: Space/Enter to show answer, 1-4 for responses
- Display dynamic preview intervals on answer buttons (1m, 6m, 4d, etc.)
- Add card type indicator (New/Learning/Review/Relearning) with color badges
- Highlight Good button as recommended option with ring and icon
- Show keyboard hint on Show Answer button

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 15:07:49 +08:00
13e8f51ada feat(memorize): add interval preview calculation utility
- Add calculatePreviewIntervals for Again/Hard/Good/Easy buttons
- Support NEW, LEARNING, RELEARNING, and REVIEW card types
- Use SM2_CONFIG constants for accurate interval calculation
- All intervals returned in minutes for consistent formatting

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-13 15:07:32 +08:00
4d4062985d fix: 修复 React Compiler 严格模式下的 lint 错误
- Memorize: 将 loadCards 内联到 useEffect 中避免变量提升问题
- DecksClient: 修复 effect 中异步加载,创建 deck 后使用 actionGetDeckById
- LanguageSettings: 使用 effect 设置 cookie 避免 render 期间修改
- theme-provider: 修复 hydration 逻辑避免 render 期间访问 ref
2026-03-11 09:51:25 +08:00
57ad1b8699 refactor: 完全重构为 Anki 兼容数据结构
- 用 Deck 替换 Folder
- 用 Note + Card 替换 Pair (双向复习)
- 添加 NoteType (卡片模板)
- 添加 Revlog (复习历史)
- 实现 SM-2 间隔重复算法
- 更新所有前端页面
- 添加数据库迁移
2026-03-10 19:20:46 +08:00
9b78fd5215 feat: 添加 OCR 词汇提取功能
新增 OCR 页面,用户可上传教材词汇表截图,使用 GLM-4.6V 视觉模型
提取单词-释义对并保存到指定文件夹。

- AI 管道: src/lib/bigmodel/ocr/ (orchestrator, types)
- 后端模块: src/modules/ocr/ (action-service-repository 架构)
- 前端页面: src/app/(features)/ocr/ (拖拽上传、folder 选择)
- i18n: 8 种语言翻译支持
2026-03-10 15:21:45 +08:00
abcae1b8d1 feat: 添加移动端下拉菜单和主题色设置
- 新增 MobileMenu 组件,小屏幕使用汉堡菜单替代多个按钮
- 重构 LanguageSettings 为统一下拉框样式
- 新增设置页面,支持主题色切换
- 翻译页添加源语言选择器
- 更新 8 种语言的 i18n 翻译
2026-03-10 13:44:52 +08:00
fb4346377a feat(explore): 添加文件夹详情页面
- 修复 folder-aciton.ts 文件名拼写错误为 folder-action.ts
- 修复所有导入路径中的拼写错误
- 添加 repoGetPublicFolderById 和 actionGetPublicFolderById
- 创建 ExploreDetailClient 详情页组件
- /explore/[id] 现在显示文件夹详情和链接到 /folders/[id]
- 添加 exploreDetail 中英文翻译
2026-03-09 19:39:03 +08:00
c83aefabfa fix: 修复代码审查发现的所有 bug
Critical 级别:
- zhipu.ts: 添加 API 响应边界检查
- DictionaryClient.tsx: 添加 entries 数组边界检查
- subtitleParser.ts: 修复 getNearestIndex 逻辑错误

High 级别:
- text-speaker/page.tsx: 修复非空断言和 ref 检查
- folder-repository.ts: 添加 user 关系 null 检查

Medium 级别:
- InFolder.tsx: 修复 throw result.message 为 throw new Error()
- localStorageOperators.ts: 返回类型改为 T | null,添加 schema 验证
- SaveList.tsx: 处理 data 可能为 null 的情况
2026-03-09 19:11:49 +08:00
020744b353 fix(i18n): 补充页面缺失的中英文翻译并修复登录重定向循环
- 补充 login/signup/dictionary/srt-player/alphabet 页面的翻译
- 修复登录页面邮箱登录时 password 参数错误
- 修复登录/注册页面的无限重定向循环问题
- 调整登录/注册卡片宽度为 w-96
2026-03-09 18:41:41 +08:00
6ba5ae993a fix: language selector mutual exclusion with preset buttons
- When "Other" is selected, preset language buttons are deselected
- Only one option can be selected at a time
- Refactor dictionary page with zustand store
- Add custom language input option to dictionary
- Fix multiple issues in dictionary bigmodel pipeline
2026-03-08 16:10:41 +08:00
b643205f72 refactor(folders): 优化刷新逻辑,只更新特定文件夹而非全量刷新
- FoldersClient: 使用 onUpdateFolder/onDeleteFolder 回调局部更新
- ExploreClient: 使用 onUpdateFavorite 只更新收藏数
- FavoritesClient: 使用 onRemoveFavorite 从列表移除,避免重新请求
2026-03-08 15:07:05 +08:00
c6878ed1e5 style(explore): 将公开文件夹改为网格布局展示
- 移除 CardList 组件,改用 CSS Grid
- 响应式网格: 1/2/3/4 列 (sm/lg/xl)
- 重新设计卡片样式:圆角边框、hover 效果
- 文件夹图标移至左上角,收藏按钮移至右上角
2026-03-08 15:03:35 +08:00
e74cd80fac style(explore): 移动收藏数到文件夹名左侧 2026-03-08 15:01:29 +08:00
d7149366e9 feat(folders): 完善公开文件夹功能 - 添加 /explore 和 /favorites 页面
- 新增 /explore 页面:浏览和搜索公开文件夹
- 新增 /explore/[id] 页面:以只读模式查看公开文件夹
- 新增 /favorites 页面:管理收藏的文件夹
- 重构 /folders 页面:仅显示当前用户的文件夹
- 更新导航栏:添加 Explore 和 Favorites 链接
- 添加 i18n 翻译:explore 和 favorites 相关文本
- 更新 AGENTS.md:添加数据库迁移规范(必须使用 migrate dev)
2026-03-08 14:47:35 +08:00
67ac0bf7b6 Sun Mar 8 09:35:08 AM CST 2026 2026-03-08 09:35:08 +08:00
dd1c6a7b52 Sun Mar 8 09:25:22 AM CST 2026 2026-03-08 09:25:22 +08:00
e2d8e17f62 Sun Mar 8 08:27:26 AM CST 2026 2026-03-08 08:27:26 +08:00
613df6824b Wed Mar 4 09:32:00 AM CST 2026 2026-03-04 09:32:00 +08:00
bf80e17514 eslint 2026-02-24 21:22:14 +08:00
d71c79c87a srt 2026-02-24 21:18:30 +08:00
94840c1b0a abstract range 2026-02-24 08:02:39 +08:00
72ced7866e flatten folder design-system 2026-02-24 07:56:21 +08:00
6dc933dc1e remove all index.ts 2026-02-24 07:43:29 +08:00
8f25791fa1 less buttons 2026-02-14 02:08:40 +08:00
b8cb884e9e Design System 重构继续完成 2026-02-10 04:58:50 +08:00
fe5e8533b5 layout 2026-02-06 04:41:59 +08:00
12eb5c412a layout 2026-02-06 04:36:06 +08:00
3635fbd256 button 2026-02-06 04:13:50 +08:00
058ecf7e39 button 2026-02-06 04:01:41 +08:00
9d42a45bb1 ... 2026-02-03 20:29:55 +08:00
c4a9247cad ... 2026-02-03 19:18:29 +08:00
eaf97b8279 ... 2026-02-02 23:57:01 +08:00
76749549ff ... 2026-02-02 23:32:39 +08:00
fa6301538b ... 2026-01-22 16:01:07 +08:00
ec265be26b 重构 2026-01-14 16:57:35 +08:00
804baa64b2 重构 2026-01-13 23:02:07 +08:00
f1d706e20c ... 2026-01-13 14:46:27 +08:00
c7cdf40f2f change varchar to text 2026-01-08 10:18:05 +08:00
a55e763525 解决dictionary搜索框溢出问题 2026-01-08 09:45:08 +08:00
504ecd259d 增加翻译缓存 2026-01-06 19:11:21 +08:00
b093ed2b4f 补全翻译 2026-01-06 16:04:53 +08:00
37e221d8b8 ... 2026-01-06 15:41:11 +08:00
f1dcd5afaa ... 2026-01-05 18:37:12 +08:00
be3eb17490 重构了tts
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-05 17:34:15 +08:00
bd7eca1bd0 before refractor 2026-01-05 16:55:34 +08:00
3bc804c5e8 ... 2026-01-05 14:31:18 +08:00
f3b7f86413 取消了memorize folder界面的身份验证
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-04 20:06:57 +08:00
6c4a73d857 优化细节
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-04 16:54:31 +08:00
7c70ec1028 ...
All checks were successful
continuous-integration/drone/push Build is passing
2025-12-29 17:48:04 +08:00