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:
co-authored by
Claude Sonnet 5
parent
242aa1d708
commit
cb9b4177e4
Vendored
+4
-1
@@ -19,7 +19,10 @@ export interface ForgeAvatarApi {
|
||||
getWindowBounds: () => Promise<{ x: number; y: number; width: number; height: number }>
|
||||
setWindowPosition: (x: number, y: number, width: number, height: number) => void
|
||||
sendVoiceTurn: (audio: ArrayBuffer, mimeType: string) => Promise<VoiceTurnResult>
|
||||
showContextMenu: (listening: boolean) => void
|
||||
openLoginWindow: () => void
|
||||
logout: () => void
|
||||
quitApp: () => void
|
||||
setPipelinePanelVisible: (visible: boolean) => void
|
||||
onToggleListening: (callback: (listening: boolean) => void) => () => void
|
||||
onProactiveSpeech: (callback: (audio: ArrayBuffer) => void) => () => void
|
||||
onUpdateAvailable: (callback: () => void) => () => void
|
||||
|
||||
Reference in New Issue
Block a user