From 2f0a44f67ddefc5be0cee9fb2d528e5fd2e3b9e8 Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Wed, 26 Aug 2026 05:22:01 -0600 Subject: [PATCH] =?UTF-8?q?voice-agent=20ux:=20AI=20VOICE=20button=20?= =?UTF-8?q?=E2=80=94=20teal-dominant=20fill=20with=20black=20label=20+=20m?= =?UTF-8?q?ic=20glyph,=20matches=20LOCATE=20family=20inverted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/__tests__/voice/VoiceMicButton.test.tsx | 2 +- frontend/src/components/VoiceMicButton.tsx | 12 +++++++++++- frontend/src/i18n/translations/en.json | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/frontend/src/__tests__/voice/VoiceMicButton.test.tsx b/frontend/src/__tests__/voice/VoiceMicButton.test.tsx index 966949e4..61fa2d03 100644 --- a/frontend/src/__tests__/voice/VoiceMicButton.test.tsx +++ b/frontend/src/__tests__/voice/VoiceMicButton.test.tsx @@ -116,7 +116,7 @@ describe('VoiceMicButton render matrix', () => { if (phase === 'opt-in-required' || phase === 'lean-unavailable') { expect(cls).toContain('opacity-50'); } else if (phase === 'idle') { - expect(cls).toContain('border-violet-500/40'); + expect(cls).toContain('border-cyan-500 bg-cyan-400 text-black'); } else if (phase === 'error') { expect(cls).toContain('border-red-800/70'); } else if (phase === 'quota-capped') { diff --git a/frontend/src/components/VoiceMicButton.tsx b/frontend/src/components/VoiceMicButton.tsx index 55c68430..2bc35676 100644 --- a/frontend/src/components/VoiceMicButton.tsx +++ b/frontend/src/components/VoiceMicButton.tsx @@ -33,7 +33,9 @@ const PHASE_MATRIX: Record = { interactive: false, }, idle: { - buttonClass: 'border-violet-500/40 text-violet-400 hover:border-violet-400 bg-violet-500/10', + // Teal-dominant idle state — filled cyan, black label, matches LOCATE's + // family but inverted so the AI console reads as the primary control. + buttonClass: 'border-cyan-500 bg-cyan-400 text-black hover:bg-cyan-300 font-bold', chip: null, interactive: true, }, @@ -208,6 +210,14 @@ export default function VoiceMicButton() { )} + {/* Mic glyph — the AI console's identity mark */} + {state.phase === 'idle' && ( + + )} + {t('voice.label')} {/* Phase text chip — every color-coded phase carries one */} diff --git a/frontend/src/i18n/translations/en.json b/frontend/src/i18n/translations/en.json index 88e7bde3..1ffdb366 100644 --- a/frontend/src/i18n/translations/en.json +++ b/frontend/src/i18n/translations/en.json @@ -352,7 +352,7 @@ "showTranslation": "SHOW TRANSLATION" }, "voice": { - "label": "VOICE", + "label": "AI VOICE", "micAria": { "opt-in-required": "Voice is off — click to set it up", "lean-unavailable": "Voice unavailable in mesh lean mode",