refactor(ui): replace native context menu with renderer-driven IPC actions

The native Electron Menu can't be styled with the design system CSS at
all. Replace the single show-context-menu IPC call with 4 focused
actions the renderer will drive from its own menu component:
open-login-window, logout, quit-app, and set-pipeline-panel-visible
(resizes the avatar window to make room for the pipeline stepper
beside the avatar once a session is active).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-10-31 22:38:07 +01:00
co-authored by Claude Sonnet 5
parent 242aa1d708
commit cb9b4177e4
3 changed files with 38 additions and 41 deletions
+11 -2
View File
@@ -19,8 +19,17 @@ const api = {
},
sendVoiceTurn: (audio: ArrayBuffer, mimeType: string): Promise<VoiceTurnResult> =>
ipcRenderer.invoke('voice-turn', audio, mimeType),
showContextMenu: (listening: boolean): void => {
ipcRenderer.send('show-context-menu', listening)
openLoginWindow: (): void => {
ipcRenderer.send('open-login-window')
},
logout: (): void => {
ipcRenderer.send('logout')
},
quitApp: (): void => {
ipcRenderer.send('quit-app')
},
setPipelinePanelVisible: (visible: boolean): void => {
ipcRenderer.send('set-pipeline-panel-visible', visible)
},
onToggleListening: (callback: (listening: boolean) => void): (() => void) => {
const handler = (_event: Electron.IpcRendererEvent, listening: boolean): void =>