Files
CodeNomad/packages/ui/src/stores/settings-screen.ts
Shantur Rathore 1233121a13 feat(speech): add prompt voice input (#249)
## 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
2026-03-25 14:08:11 +00:00

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 }