[BUG]: Inverted Mic icon causes input confusion in Bot Debate Room

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

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

@Rusky-1014 がすでに取り組んでいます。

2026年11月15日 から。

  • #803 @Rusky-1014 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript, vite

調査の方向性

frontend/src/Pages/DebateRoom.tsxから始めて、isRecognizingがマイクボタンとテキストエリアをどのように制御しているかを読みます。既存の音声認識の動作を確認し、アイコンと、聞き取り中であることを示すテキストメッセージが認識状態に一致するようにします。待機中と認識中の状態が視覚的に明確で、テキストエリアの動作が意外に感じられなくなれば完了です。issueには実行するテストが指定されていません。

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

説明

bug
Bug Description
Bug Description :

In the Bot Debate Room (/debate/:roomId), inverted mic icon creates confusion to user :

  1. Inverted Mic Iconography
    In frontend/src/Pages/DebateRoom.tsx, the voice toggle button is currently implemented as:

    <Button onClick={isRecognizing ? stopRecognition : startRecognition}>
      {isRecognizing ? <MicOff className="w-5 h-5" /> : <Mic className="w-5 h-5" />}
    </Button>
    
    • When speech recognition is active (isRecognizing === true), it renders <MicOff />, which visually means the microphone is muted for the user.
    • When speech recognition is idle, it displays <Mic />, meaning users to think that the app is already listening and mic is active.
  2. Confusion with readOnly Input Locking
    The textarea is set to readOnly={isRecognizing} while speech recognition is active to prevent keyboard conflicts with incoming voice transcripts. But when the user tries to type in when <MicOff /> (appearing muted), he gets to know that input is locked, which shows unsynchronized UI defect.

Proposed Solution :

Make the microphone button’s icon match the actual speech‑recognition state and give users a clear written msg that the app is listening, eliminating the confusing read‑only textarea situation.

Steps to Reproduce
  1. Navigate to Practice with Bot (/bot-selection) and enter a debate room.
  2. Observe the microphone button before clicking: it shows an active <Mic /> icon even though recognition is idle.
  3. Click the button to start voice recognition: the icon flips to <MicOff /> while the input becomes locked (readOnly).
  4. Attempt to type: input is disabled while the UI appears to show a muted microphone.
Logs and Screenshots

No response

Environment Details
  • OS: macOS
  • Browser: Chrome (Web Speech API)
  • Frontend: React 18, Vite
  • Branch: main (no local modifications aside from temporary dev config)
Impact

Medium - Feature works but has issues

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

環境構築

はじめの一歩

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

AOSSIE-Org/DebateAI のほかの issue

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

似ている issue

TypeScript の issue をもっと見る

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

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