π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
fix(onboarding): persist the microphone choice as soon as it is picked
Luis Ortiz4c2c8cb490ed
diff --git a/src/ui/onboarding/App.tsx b/src/ui/onboarding/App.tsxindex 752ab16..5bc9f95 100644--- a/src/ui/onboarding/App.tsx+++ b/src/ui/onboarding/App.tsx@@ -325,11 +325,15 @@ function VoiceStep({ onNext, onSkip, onBack, index, total }: StepProps) {});}, []);+ const handleMicrophoneChange = (deviceId: string) => {+ setMicrophoneId(deviceId);+ localStorage.set({ voiceMicrophoneId: deviceId });+ };+const handleContinue = async () => {await localStorage.set({voiceProvider: provider,...(apiKey ? { voiceApiKey: apiKey } : {}),- ...(microphoneId ? { voiceMicrophoneId: microphoneId } : {}),});onNext();};@@ -400,7 +404,7 @@ function VoiceStep({ onNext, onSkip, onBack, index, total }: StepProps) {</div></div>- <MicrophonePicker value={microphoneId} onChange={setMicrophoneId} />+ <MicrophonePicker value={microphoneId} onChange={handleMicrophoneChange} /><div className="flex items-start gap-2 px-3 py-2.5 rounded-xl bg-secondary text-[11px] text-muted-foreground leading-relaxed"><Mic size={12} className="shrink-0 mt-0.5 text-accent" />