Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots 📖

fix(onboarding): leave narration off until it is turned on while recording

Luis Ortiz003da27c18e4
diff --git a/src/locales/de.yml b/src/locales/de.yml
index a638cc1..44f928f 100644
--- a/src/locales/de.yml
+++ b/src/locales/de.yml
@@ -318,7 +318,7 @@ onboarding:
voiceDoSub: Deine Worte werden der nächsten Aktion zugeordnet, damit die Beschreibung beim gemeinten Schritt landet.
voiceDontTitle: Nicht erst nach dem Klick sprechen
voiceDontSub: Alles, was du nach einer Aktion sagst, wird dem folgenden Schritt zugeordnet — dadurch rutscht jede Beschreibung auf den falschen Schritt.
- voiceEnableLabel: Beim Aufnehmen mitsprechen
+ voiceRecordHint: "Die Sprachaufnahme bleibt aus, bis du sie einschaltest. Nutze die Mikrofontaste in der Seitenleiste während der Aufnahme, so entscheidest du pro Anleitung."
voiceDataNotice: Dein Audio wird mit deinem eigenen API-Schlüssel an den hier gewählten Anbieter gesendet. Sonst verlässt nichts in Mimik deinen Browser.
voiceDemoLabel: So landet dein Kommentar
voiceDemoSay: Du sagst
diff --git a/src/locales/en.yml b/src/locales/en.yml
index 05e36ba..0049504 100644
--- a/src/locales/en.yml
+++ b/src/locales/en.yml
@@ -387,7 +387,7 @@ onboarding:
voiceDoSub: Your words are attached to the next action you take, so the description lands on the step you meant.
voiceDontTitle: Do not narrate after clicking
voiceDontSub: Anything said after an action is matched to the following step, which shifts every description onto the wrong one.
- voiceEnableLabel: Narrate while I record
+ voiceRecordHint: Narration stays off until you turn it on. Use the microphone button in the side panel while recording, so you choose per guide.
voiceDataNotice: Your audio is sent to the provider you pick here, using your own API key. Nothing else in Mimik leaves your browser.
voiceDemoLabel: How narration lands
voiceDemoSay: You say
diff --git a/src/locales/es.yml b/src/locales/es.yml
index 029c20b..87f8d15 100644
--- a/src/locales/es.yml
+++ b/src/locales/es.yml
@@ -387,7 +387,7 @@ onboarding:
voiceDoSub: "Tus palabras se asignan a la siguiente acción que hagas, así la descripción cae en el paso que querías."
voiceDontTitle: No narres después de hacer clic
voiceDontSub: "Lo que digas después de una acción se asigna al paso siguiente, y eso corre todas las descripciones al paso equivocado."
- voiceEnableLabel: Narrar mientras grabo
+ voiceRecordHint: "La narración permanece desactivada hasta que la actives. Usa el botón de micrófono en el panel lateral mientras grabas, así eliges guía por guía."
voiceDataNotice: "Tu audio se envía al proveedor que elijas aquí, con tu propia clave API. Nada más de Mimik sale de tu navegador."
voiceDemoLabel: "Cómo se asigna la narración"
voiceDemoSay: Dices
diff --git a/src/locales/fr.yml b/src/locales/fr.yml
index fe6d15d..969a895 100644
--- a/src/locales/fr.yml
+++ b/src/locales/fr.yml
@@ -387,7 +387,7 @@ onboarding:
voiceDoSub: "Vos mots sont rattachés à l'action suivante : la description tombe donc sur l'étape voulue."
voiceDontTitle: "Ne commentez pas après avoir cliqué"
voiceDontSub: "Ce qui est dit après une action est rattaché à l'étape suivante, ce qui décale toutes les descriptions."
- voiceEnableLabel: "Commenter pendant l'enregistrement"
+ voiceRecordHint: "La narration reste désactivée jusqu'à ce que vous l'activiez. Utilisez le bouton microphone dans le panneau latéral pendant l'enregistrement, pour choisir guide par guide."
voiceDataNotice: "Votre audio est envoyé au fournisseur choisi ici, avec votre propre clé API. Rien d'autre ne sort de votre navigateur."
voiceDemoLabel: "Comment la narration est rattachée"
voiceDemoSay: Vous dites
diff --git a/src/locales/pt-BR.yml b/src/locales/pt-BR.yml
index 605bbeb..b7728ec 100644
--- a/src/locales/pt-BR.yml
+++ b/src/locales/pt-BR.yml
@@ -387,7 +387,7 @@ onboarding:
voiceDoSub: "Suas palavras vão pra próxima ação que você fizer, então a descrição cai no passo certo."
voiceDontTitle: "Não narra depois de clicar"
voiceDontSub: "O que você fala depois de uma ação vai pro passo seguinte, e isso joga todas as descrições pro passo errado."
- voiceEnableLabel: Narrar enquanto eu gravo
+ voiceRecordHint: "A narração fica desligada até você ativá-la. Use o botão de microfone no painel lateral enquanto grava, assim você escolhe guia a guia."
voiceDataNotice: "Seu áudio vai pro provedor que você escolher aqui, com sua própria chave API. Nada mais do Mimik sai do seu navegador."
voiceDemoLabel: "Como a narração é atribuída"
voiceDemoSay: "Você fala"
diff --git a/src/ui/onboarding/App.tsx b/src/ui/onboarding/App.tsx
index a92875b..0b5cbda 100644
--- a/src/ui/onboarding/App.tsx
+++ b/src/ui/onboarding/App.tsx
@@ -294,14 +294,12 @@ function AISetupStep({ onNext, onSkip, index, total }: StepProps) {
}
function VoiceStep({ onNext, onSkip, index, total }: StepProps) {
- const [enabled, setEnabled] = useState(false);
const [provider, setProvider] = useState<VoiceProvider>('openai');
const [apiKey, setApiKey] = useState('');
const [microphoneId, setMicrophoneId] = useState('');
const handleContinue = async () => {
await localStorage.set({
- voiceEnabled: enabled,
voiceProvider: provider,
...(apiKey ? { voiceApiKey: apiKey } : {}),
...(microphoneId ? { voiceMicrophoneId: microphoneId } : {}),
@@ -347,23 +345,6 @@ function VoiceStep({ onNext, onSkip, index, total }: StepProps) {
</div>
<div className="border border-border rounded-2xl p-4 space-y-3 mb-6">
- <div className="flex items-center justify-between gap-3">
- <span className="text-sm font-semibold text-foreground">{i18n.t('onboarding.voiceEnableLabel')}</span>
- <button
- onClick={() => setEnabled((prev) => !prev)}
- aria-pressed={enabled}
- className={`w-11 h-6 rounded-full transition-colors relative shrink-0 ${
- enabled ? 'bg-accent' : 'bg-border'
- }`}
- >
- <span
- className={`absolute top-0.5 left-0.5 w-5 h-5 rounded-full bg-white shadow-sm transition-transform ${
- enabled ? 'translate-x-5' : 'translate-x-0'
- }`}
- />
- </button>
- </div>
-
<div className="flex gap-3">
<div className="flex-1">
<label className="block text-[11px] font-semibold text-foreground mb-1">
@@ -392,7 +373,12 @@ function VoiceStep({ onNext, onSkip, index, total }: StepProps) {
</div>
</div>
- {enabled && <MicrophonePicker value={microphoneId} onChange={setMicrophoneId} />}
+ <MicrophonePicker value={microphoneId} onChange={setMicrophoneId} />
+
+ <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" />
+ <span>{i18n.t('onboarding.voiceRecordHint')}</span>
+ </div>
<div className="flex items-start gap-2 px-3 py-2.5 rounded-xl bg-secondary text-[11px] text-muted-foreground leading-relaxed">
<Shield size={12} className="shrink-0 mt-0.5 text-accent" />