[frontend]評価結果から回答方式の表示を削除する
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- Half a day
- Newbie friendliness
- 88/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- documentation, frontend
Research direction
Start with the five files listed under 触る範囲, checking the evaluation card, createEvaluation payload, Evaluation type, mock data, and S-04 design text for answer_method usage. Remove only the evaluation-result display and submission references, leave S-05 answer-method selection intact, then run the frontend test and lint commands to confirm completion.
Written by the indexing model from the issue text.
Description
種別: 実装 — コードを書き、「検証方法」で検証してから PR を出す。
目的
評価結果に含まれる「回答方式」は、バックエンドが保存・返却しておらず(API仕様 の評価結果関連レスポンスに answer_method は存在しない)、フロントエンドは常に null を代入して表示している(実質機能していない)。フロントエンド全体から表示・送信ロジックを外す。
完了条件
- ホーム画面(
frontend/src/app/(with-header)/page.tsx)の「直近の評価結果」カードから「回答方式:〜」の表示を削除する -
frontend/src/lib/evaluation-api.tsのcreateEvaluation(POST /evaluations)からanswer_methodの送信を削除する -
frontend/src/lib/domain.tsのEvaluation型からanswer_methodフィールドを削除する(AnswerMethod型・ANSWER_METHOD_LABEL自体は S-05 の回答方式選択で使うため残す) -
frontend/src/mocks/evaluations.tsのモックデータからanswer_methodを削除する - S-04 ホーム 3.2章の実施条件から「回答方式:〜」の記述を削除する
やらないこと
- 練習の設定(S-05)での回答方式の選択機能自体(音声入力/文字入力の切り替え)は変更しない。評価結果の表示・送信だけが対象
- バックエンドのスキーマ変更(そもそも
answer_methodを扱っていないため対象外)
触る範囲
frontend/src/app/(with-header)/page.tsxfrontend/src/lib/evaluation-api.tsfrontend/src/lib/domain.tsfrontend/src/mocks/evaluations.tsdocuments/frontend/01_design/screens/S-04_ホーム.md
検証方法
cd frontend
docker compose run --rm web npm run test
docker compose run --rm web npm run lint
前提・依存
- 依存Issue: なし
- 適用ADR: なし
参考
- Dominant language
- HTML
- Stars
- 1
- Forks
- 0
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 76
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from study-basic-hackathon/hanasu
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
study-basic-hackathon/hanasu#219 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
study-basic-hackathon/hanasu#218 ·
-
種別: 実装
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
study-basic-hackathon/hanasu#210 ·
-
種別: 実装
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
study-basic-hackathon/hanasu#207 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
study-basic-hackathon/hanasu#227 · 3 comments ·