Skip to content

Add audio button with mic/mic-off toggle to Host panel header#18

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-17
Draft

Add audio button with mic/mic-off toggle to Host panel header#18
Copilot wants to merge 3 commits intomainfrom
copilot/fix-17

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Sep 7, 2025

Adds a mic button to the Host panel header positioned to the right of the settings icon, as requested in issue #17. The button provides visual feedback for audio narration state and will be used for future audio streaming functionality.

Changes Made

Host Agent Store (lib/stores/host/hostAgentStore.ts)

  • Added isMicActive: boolean state to track mic status
  • Added toggleMic() action to toggle mic state with console logging

Host Component (app/dashboard/studio/host/Host.tsx)

  • Imported Mic and MicOff icons from lucide-react
  • Added mic button with consistent styling matching the Settings button
  • Implemented toggle functionality with proper accessibility attributes
  • Button shows Mic icon when active, MicOff icon when inactive

Implementation Details

The mic button follows the existing design patterns:

  • Same styling as Settings button (p-1 hover:bg-[#2d2d2d] rounded transition-colors border text-muted-foreground cursor-pointer)
  • Proper hover effects and transitions
  • Accessible title attributes that update based on state
  • 12px icon size matching other header icons

Visual Result

Host Panel with Mic Button

The mic button appears in the header next to the settings icon and correctly toggles between mic/mic-off states when clicked. The button is ready for future integration with audio streaming functionality.

Fixes #17.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node /home/REDACTED/work/SMNB/SMNB/smnb/node_modules/next/dist/compiled/jest-worker/processChild.js (dns block)
    • Triggering command: next-server (v15.5.0) (dns block)
  • https://api.github.com/repos/get-convex/convex-backend/releases
    • Triggering command: node /home/REDACTED/work/SMNB/SMNB/smnb/node_modules/.bin/convex dev (http block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits September 7, 2025 12:10
Co-authored-by: acdc-digital <127530566+acdc-digital@users.noreply.github.com>
Co-authored-by: acdc-digital <127530566+acdc-digital@users.noreply.github.com>
Copilot AI changed the title [WIP] Host: Audio button Option to Listen to Narration Stream Add audio button with mic/mic-off toggle to Host panel header Sep 7, 2025
Copilot AI requested a review from acdc-digital September 7, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Host: Audio button Option to Listen to Narration Stream

2 participants