Skip to content

第一阶段:可交互前端原型(日/西/法 · 中英界面) - #1

Open
devin-ai-integration[bot] wants to merge 8 commits into
mainfrom
devin/1796518837-frontend-prototype
Open

devin-ai-integration[bot] wants to merge 8 commits into
mainfrom
devin/1796518837-frontend-prototype

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Summary

第一阶段:纯前端可交互原型,用来在写后端之前把产品细节"摸得到"。全部主要界面可点击,覆盖日语 / 西语 / 法语三门语言,界面中英文可切换,按手机视口 390×844 设计。数据为示例数据,生成、批改、对话由本地模拟代替,但模拟数据的形状与 SPEC 一致(例如批改输出 {is_correct, corrected, errors[{span,type,grammar_point_id,explanation}]})。

覆盖的流程

  • 新手流程 → 今日首页(§4.2 推荐规则、主题推进三条件、本周格子)→ 兴趣输入(安全检查 / 注入当数据)→ 学习段 A:流水线进度 → 读和听 → 语法聚焦 + 练习 → 生词入库 → 输出批改 → 完成
  • 复习段 B:R1/R2/R3/K/G/E 六种卡,用 ts-fsrs 实时算间隔,累计答错 3 次的卡显示口诀入口
  • 输出段 C:写作批改、跟读(真实录音和回放)、最小对立对(静音模式下改为看字形)
  • AI 情景对话(脚本)+ 对话报告;旅程图 / 打卡格子 / 每周已掌握词数;文本库与重读对比;入门模块(46 个平假名,各配一个"源自哪个汉字"的口诀);分级测试;设置;管理视图(周报、诊断卡、实验、评测、审核队列、成本、flags)

原型里已经是真实实现、后续会保留的部分

  • lib/core/*:与语言无关的规则:推荐、段长和复习卡数裁剪、休息日额度连续天数、主题推进、FSRS 封装、重音判分(只差重音判"差一点")、罗马字转假名(含 shimbun → しんぶん)。全部有单元测试(pnpm test,31 条)
  • 守卫测试:zh/en 翻译键完全一致(AC-F19.3);页面和组件里没有散落的色值,只用 app/globals.css 中的 tokens(AC-11.2);lib/core 不引用语言包(AC-F16.1)

需要注意的地方

  • 示例文本(每门语言 2 篇)由我编写,只用到当前主题允许的语法。上线前仍需按 §7.5 交给母语者核对
  • 文本生成目前是按关键词匹配示例:话题包含"咖啡"或"猫"时显示对应文本,其他话题都回退到咖啡这一篇
  • TTS 暂用浏览器语音合成,发音评分按 AC-F8.5 先不显示

部署:.github/workflows/pages.yml 在合并到 main 时发布到 GitHub Pages,需要先在仓库设置中把 Pages 的 Source 设为 "GitHub Actions"。ci.yml 会跑 lint、类型检查、测试和构建。

阅读器(振假名、生词高亮) 语法聚焦 输出批改 今日首页

Link to Devin session: https://app.devin.ai/sessions/c5fe463810b1472ca4004dce8016ed0f
Open in Devin Desktop: https://app.devin.ai/desktop/session/c5fe463810b1472ca4004dce8016ed0f?variant=devin
Requested by: @houx15


🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

…/en UI

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

houx15 and others added 4 commits December 6, 2026 01:06
…shadowing

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… known words out of new-word list

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

houx15 and others added 3 commits December 6, 2026 01:11
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…nswers

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant