:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(max): swap status dot for state emoji in hands-free surface (#59588)
Paul D'Ambra0fa2612d69c7
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 3e43a4b24bf4..6cf6eb3ae73e 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -5495,9 +5495,9 @@ snapshots:scenes-app-posthog-ai--welcome-with-latest-conversations--light:hash: v1.k794b7964.e748e62b24fe96ae9cd96facb3d679d9649615f7b092f31dc1e3a67aef15c490._-KVj3kzPaGvcu9N4RgpmLPK1ovZANsm4YM9t1s4IUcscenes-app-posthog-ai-hands-free-surface--speaking--dark:- hash: v1.k794b7964.48aaf5c134a71a9785a39769a4e692844d4f65f8886a589cdcd839a477333aa0.4Cm1e9dqys5vNwnfcvQctrRtB7POvdHdQlL1UFxA4LA+ hash: v1.k794b7964.9de6e3486b5bc10e0a5edc638ba260437dba4b2c6963e2442fec4851f19cd78e.cuXedGScDuFh3zAN4CQdl14HyVYl1CgmALs3IQDLPgMscenes-app-posthog-ai-hands-free-surface--speaking--light:- hash: v1.k794b7964.a59ea311f928f55fd230493b29d54170a002d46170a9882a4602922da5819f90.LUh0Yr6hiwR3UTrmy6cqna9EYTalFuan6zEnwJ-h7ig+ hash: v1.k794b7964.4fc7ba28b41a2abdf5cdfb919c8338b591e5519df4deeed2e37bad2e3e86475c.lD21d7qTi0fIAw5BBs3dTV235RLvPZ3HGF8rtjzW4HAscenes-app-posthog-ai-hands-free-surface--with-error--dark:hash: v1.k794b7964.38aeb671b882ed7442192a236a3c3e28f8a4ff0d860a83a50d2618b923ba708f.HNuM32DwEhnFE_3a1YNCx3XpKflFOOk-vdkvGTHb-gsscenes-app-posthog-ai-hands-free-surface--with-error--light:diff --git a/frontend/src/scenes/max/components/HandsFreeSurface.scss b/frontend/src/scenes/max/components/HandsFreeSurface.scssindex d23c09e4e2b2..6c6dfb02d618 100644--- a/frontend/src/scenes/max/components/HandsFreeSurface.scss+++ b/frontend/src/scenes/max/components/HandsFreeSurface.scss@@ -152,34 +152,16 @@align-items: center;}-.hands-free-surface__dot {- display: inline-block;+.hands-free-surface__emoji {+ display: inline-flex;flex-shrink: 0;- width: 0.5rem;- height: 0.5rem;- background: var(--color-bg-fill-tertiary);- border-radius: 50%;-}--.hands-free-surface__dot--listening {- background: var(--color-success);-}--.hands-free-surface__dot--speaking {- background: var(--color-ai);-}--.hands-free-surface__dot--thinking,-.hands-free-surface__dot--starting,-.hands-free-surface__dot--reconnecting {- background: var(--color-warning);-}--.hands-free-surface__dot--error {- background: var(--color-danger);+ align-items: center;+ justify-content: center;+ font-size: 1.125rem;+ line-height: 1;}-.hands-free-surface__dot--pulsing {+.hands-free-surface__emoji--pulsing {animation: HandsFreeSurface__pulse 1.4s ease-in-out infinite;}@@ -191,8 +173,8 @@}50% {- opacity: 0.5;- transform: scale(1.4);+ opacity: 0.7;+ transform: scale(1.1);}}diff --git a/frontend/src/scenes/max/components/HandsFreeSurface.tsx b/frontend/src/scenes/max/components/HandsFreeSurface.tsxindex cd18e353028f..254c4d66a2bf 100644--- a/frontend/src/scenes/max/components/HandsFreeSurface.tsx+++ b/frontend/src/scenes/max/components/HandsFreeSurface.tsx@@ -22,6 +22,18 @@ const STATUS_LABEL: Record<HandsFreeStatus, string> = {speaking: 'Speaking',}+// Emoji per visual state. Reconnecting + error deliberately render no emoji so+// the label sits alone and stays perfectly centered under the mic.+const STATUS_EMOJI: Record<HandsFreeStatus | 'reconnecting' | 'error', string> = {+ off: '',+ starting: '🎤',+ listening: '🎤',+ thinking: '🧠',+ speaking: '🔊',+ reconnecting: '',+ error: '',+}+const STATUS_HINT: Record<HandsFreeStatus, string> = {off: '',starting: 'One moment, getting microphone ready',@@ -109,14 +121,14 @@ export function HandsFreeSurface({ tabId }: HandsFreeSurfaceProps): JSX.Element</button><div className="hands-free-surface__bottom">- <span- className={cn(- 'hands-free-surface__dot',- `hands-free-surface__dot--${visualState}`,- pulseClass && 'hands-free-surface__dot--pulsing'- )}- aria-hidden- />+ {STATUS_EMOJI[visualState] && (+ <span+ className={cn('hands-free-surface__emoji', pulseClass && 'hands-free-surface__emoji--pulsing')}+ aria-hidden+ >+ {STATUS_EMOJI[visualState]}+ </span>+ )}<span className="hands-free-surface__label">{label}</span></div></div>