## Summary - add server-backed speech capabilities and transcription endpoints plus UI settings for speech configuration - add push-to-talk prompt voice input with microphone controls, transcription insertion, and browser capability gating - keep prompt controls aligned by restoring right-side nav placement and moving the mic beside the expand control
18 lines
577 B
TypeScript
18 lines
577 B
TypeScript
import { createSignal } from "solid-js"
|
|
|
|
export type SettingsSectionId = "appearance" | "notifications" | "remote" | "speech" | "opencode"
|
|
|
|
const [settingsOpen, setSettingsOpen] = createSignal(false)
|
|
const [activeSettingsSection, setActiveSettingsSection] = createSignal<SettingsSectionId>("appearance")
|
|
|
|
export function openSettings(section: SettingsSectionId = "appearance") {
|
|
setActiveSettingsSection(section)
|
|
setSettingsOpen(true)
|
|
}
|
|
|
|
export function closeSettings() {
|
|
setSettingsOpen(false)
|
|
}
|
|
|
|
export { settingsOpen, activeSettingsSection, setActiveSettingsSection }
|