mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-12-05 09:03:39 +01:00
voice-agent ux: AI VOICE button — teal-dominant fill with black label + mic glyph, matches LOCATE family inverted
This commit is contained in:
1 parent
bcd5ac62bf
commit
2f0a44f67d
3 files changed
+13
-3
No files matched your search
@@ -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') {
|
||||
|
||||
@@ -33,7 +33,9 @@ const PHASE_MATRIX: Record<VoicePhase, PhaseVisual> = {
|
||||
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() {
|
||||
</span>
|
||||
)}
|
||||
|
||||
{/* Mic glyph — the AI console's identity mark */}
|
||||
{state.phase === 'idle' && (
|
||||
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" aria-hidden="true">
|
||||
<path d="M12 3a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3Z" />
|
||||
<path d="M5 11a7 7 0 0 0 14 0M12 18v3" />
|
||||
</svg>
|
||||
)}
|
||||
|
||||
<span>{t('voice.label')}</span>
|
||||
|
||||
{/* Phase text chip — every color-coded phase carries one */}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user