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

Aperta Adatta ai principianti
#802 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Rusky-1014 ci sta già lavorando.

Dal 15/11/2026.

  • #803 di @Rusky-1014 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript, vite

Direzione di ricerca

Inizia da frontend/src/Pages/DebateRoom.tsx e leggi come isRecognizing controlla il pulsante del microfono e l’area di testo. Controlla il comportamento esistente del riconoscimento vocale, poi fai in modo che l’icona e un messaggio scritto di ascolto corrispondano allo stato del riconoscimento. Il lavoro è concluso quando gli stati inattivo e attivo sono visivamente chiari e il comportamento dell’area di testo non è più sorprendente; l’issue non indica alcun test da eseguire.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
108
Fork
264
Merge medio
6h 53m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AOSSIE-Org/DebateAI

Tutte le issue di AOSSIE-Org/DebateAI

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.