Skip to content

feat: 学習教材の演習に所要時間の目安を出す - #199

Merged
Tatsu723 merged 1 commit into
mainfrom
feat/practice-estimate
Nov 26, 2026
Merged

Tatsu723 merged 1 commit into
mainfrom
feat/practice-estimate

Conversation

@Tatsu723

Copy link
Copy Markdown
Contributor

概要

UI/UX改善計画書の C4。「練習を始める」の下の「○問から 10 問を出題します」に、どのくらい時間がかかるかが書かれていませんでした。

#193(B4、feat/section-card-progress)の上に積んでいます。同じセクションカードの進み具合の行に足しているためです。#193 をマージしたら base を main に変えてください。

変更

  • 「練習を始める」の下を「37 問から 10 問を出題します(約2分)」にする。1問あたり選択式10秒・入力式20秒で見積もる(問題数・答え方を変えると追従する)
  • 漢字クイズ(中国語 06)は独自の設定画面なので、「クイズを始める」の下に同じ行を足す
  • セクション一覧のカードの進み具合の行に「・10問・約2分」を添える(演習のあるセクションだけ。作文・翻訳・読み物には出さない)
    • 答え方(初期値)は各セクションの route.tsx が practiceKind を export し、getSections が title・description と一緒に取り込む
  • 見積もりは lib/shared/learn/practice-estimate.ts の純粋関数にし、unit test を足した

確認

  • lint / typecheck / unit 通過
  • E2E(学習教材・穴埋め・数字・発音・ページ切り替え)19件通過
  • スマホ幅(390px)でカードと設定画面を目で確認

🤖 Generated with Claude Code

「練習を始める」の下には「37 問から 10 問を出題します」とだけあり、どのくらい時間がかかるか分からなかった。

- 「練習を始める」の下に「(約2分)」を足す。1問あたり、選択式は10秒、入力式は20秒で見積もる
- 漢字クイズ(中国語 06)の「クイズを始める」の下にも同じ行を出す
- セクション一覧のカードに、演習のあるセクションだけ「10問・約2分」を添える。
  答え方は各セクションの route.tsx が practiceKind で export する

UI/UX改善計画書 C4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 50.52% 1731 / 3426
🔵 Statements 50.02% 1942 / 3882
🔵 Functions 38.21% 376 / 984
🔵 Branches 37.35% 889 / 2380
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
app/components/practice/Quiz.tsx 2.77% 0% 0% 3.22% 79-84, 87-547
app/lib/shared/learn/content.ts 72.72% 87.5% 60% 72.72% 69-72
app/lib/shared/learn/practice-estimate.ts 100% 100% 100% 100%
app/routes/learn._chinese.chinese.03/route.tsx 75% 100% 0% 75% 13
app/routes/learn._chinese.chinese.05/route.tsx 100% 100% 100% 100%
app/routes/learn._chinese.chinese.06/HanziQuiz.tsx 4.05% 0% 0% 4.61% 28-241
app/routes/learn._chinese.chinese.06/route.tsx 100% 100% 100% 100%
app/routes/learn._french.french.03/route.tsx 75% 100% 0% 75% 13
app/routes/learn._french.french.05/route.tsx 100% 100% 100% 100%
app/routes/learn._french.french.06/route.tsx 100% 100% 100% 100%
app/routes/learn._french.french.07/route.tsx 100% 100% 100% 100%
app/routes/learn._french.french.08/route.tsx 100% 100% 100% 100%
app/routes/learn._french.french.09/route.tsx 100% 100% 100% 100%
app/routes/learn._german.german.03/route.tsx 75% 100% 0% 75% 13
app/routes/learn._german.german.05/route.tsx 100% 100% 100% 100%
app/routes/learn._german.german.06/route.tsx 100% 100% 100% 100%
app/routes/learn._german.german.07/route.tsx 100% 100% 100% 100%
app/routes/learn._spanish.spanish.03/route.tsx 75% 100% 0% 75% 13
app/routes/learn._spanish.spanish.05/route.tsx 100% 100% 100% 100%
app/routes/learn._spanish.spanish.06/route.tsx 100% 100% 100% 100%
app/routes/learn._spanish.spanish.07/route.tsx 100% 100% 100% 100%
Generated in workflow #96 for commit 9346400 by the Vitest Coverage Report Action

Base automatically changed from feat/section-card-progress to main November 26, 2026 00:14
@Tatsu723
Tatsu723 merged commit aaff019 into main Nov 26, 2026
8 checks passed
@Tatsu723
Tatsu723 deleted the feat/practice-estimate branch November 26, 2026 00:14
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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