[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument page

オープン 初心者向け
#801 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

/coach/strengthen-argument のページコンポーネントから始め、弱い冒頭文の見出しがレンダリングされている箇所を見つけてください — 文字列 "for" が stance 値の直前にハードコードされているので、それを削除するか作り直してください。次に、AI 応答をレンダリングする Feedback モーダルを見つけ、Strengths: と Area for Improvement: のセクションを、1 つの中央揃えブロックではなく、別々の左揃えの行に分割してください。完了条件は、両方の stance(For と Against)が正しく読め、モーダルが構造化されたセクションを表示することです。変更前と変更後に、レポートの手順で再現してください。

索引モデルが issue の本文から書いたものです。

説明

bug
Bug Description
Description

While using the Coach > Strengthen Argument feature, there are two UI/UX issues that affect readability and grammar:

  1. Duplicate preposition in section heading: The heading renders as "Weak Opening Statement for for the topic..." (when selecting For) or "Weak Opening Statement for against the topic..." (when selecting Against), because "for" is hardcoded right before the stance variable.
  2. Unformatted feedback modal text: In the evaluation modal, the AI feedback (Strengths: and Area for Improvement: / numbered points) is rendered as a single center-aligned wall of text without line breaks or structured layout, making it difficult to read.
Steps to Reproduce
  1. Navigate to Coach > Strengthen Argument (/coach/strengthen-argument or via the Coach menu).
  2. Select any debate topic and choose a stance (For or Against), then generate a weak opening statement.
  3. Observe the heading above the generated statement ("Weak Opening Statement for for..." / "for against...").
  4. Enter an improved argument and click Submit Your Argument.
  5. Observe the unformatted, center-aligned text block inside the Feedback modal.
Expected Behavior
  1. The heading should read cleanly without duplicate prepositions (e.g., "Weak Opening Statement (For) on the topic..." or "Weak Opening Statement for the topic...").
  2. The feedback modal should parse and display Strengths and Area for Improvement as structured, left-aligned sections or bullet points.
Screenshots

I have reproduced this locally and would like to work on a PR to fix it. Could you please assign this issue to me? @Ri1tik @bhavik-mangla

unt Untitled
Steps to Reproduce

No response

Logs and Screenshots

No response

Environment Details

No response

Impact

Low - Minor inconvenience

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要言語
TypeScript
スター
107
フォーク
263
平均マージ
7時間 54分
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/DebateAI のほかの issue

AOSSIE-Org/DebateAI の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。