[frontend]評価結果から回答方式の表示を削除する

Open Beginner friendly
#211 0 comments 0 reactions 0 assignees View on GitHub

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

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.tscreateEvaluationPOST /evaluations)から answer_method の送信を削除する
  • frontend/src/lib/domain.tsEvaluation 型から 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.tsx
  • frontend/src/lib/evaluation-api.ts
  • frontend/src/lib/domain.ts
  • frontend/src/mocks/evaluations.ts
  • documents/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: なし

参考

  • API仕様 5.5章・5.6章・5.7章 — 評価結果の入出力に answer_method が存在しないことの根拠
  • S-04 ホーム 3.2章 — 現行の実施条件の表示定義
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from study-basic-hackathon/hanasu

All issues in study-basic-hackathon/hanasu

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.