🎬 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): only open the repo when starring, without changing the step
Luis Ortiz6650aecc9c2a
diff --git a/src/locales/de.yml b/src/locales/de.ymlindex beddd85..0a0af92 100644--- a/src/locales/de.yml+++ b/src/locales/de.yml@@ -340,7 +340,6 @@ onboarding:starMessage: "Mimik ist kostenlos und quelloffen. Ein Stern ist der einfachste Weg, Danke zu sagen, und hilft anderen, Mimik zu finden."starAction: Auf GitHub mit Stern markierenstarLater: "Vielleicht später"- starThanks: "Wir haben das Repository in einem neuen Tab geöffnet. Vergib dort einen Stern und komm zum Weitermachen zurück."doneTitle: "Alles bereit!"doneMessage: "Mimik ist bereit, deine Workflows aufzunehmen. Klicke in der Erweiterung auf \"Aufnahme starten\", um deine erste Anleitung aufzunehmen."featureAutoCapture: Auto-Aufnahmediff --git a/src/locales/en.yml b/src/locales/en.ymlindex 45204d4..bb735c7 100644--- a/src/locales/en.yml+++ b/src/locales/en.yml@@ -409,7 +409,6 @@ onboarding:starMessage: "Mimik is free and open source. A star is the easiest way to say thanks, and it helps other people find it."starAction: Star on GitHubstarLater: Maybe later- starThanks: "We opened the repo in a new tab. Give it a star there, then come back and continue."doneTitle: "You're all set!"doneMessage: "Mimik is ready to capture your workflows. Click \"Start Capture\" in the extension to record your first guide."featureAutoCapture: Auto-capturediff --git a/src/locales/es.yml b/src/locales/es.ymlindex 479b9ab..5d27af2 100644--- a/src/locales/es.yml+++ b/src/locales/es.yml@@ -409,7 +409,6 @@ onboarding:starMessage: "Mimik es gratuito y de código abierto. Una estrella es la forma más fácil de dar las gracias, y ayuda a que otras personas lo encuentren."starAction: Dar una estrella en GitHubstarLater: "Quizá más tarde"- starThanks: "Abrimos el repositorio en una pestaña nueva. Dale una estrella allí y vuelve para continuar."doneTitle: "¡Ya estás listo!"doneMessage: "Mimik está listo para capturar. Dale clic a \"Empezar a capturar\" en la extensión para grabar tu primera guía."featureAutoCapture: Captura automáticadiff --git a/src/locales/fr.yml b/src/locales/fr.ymlindex 3d8ba4f..4a752a9 100644--- a/src/locales/fr.yml+++ b/src/locales/fr.yml@@ -409,7 +409,6 @@ onboarding:starMessage: "Mimik est gratuit et open source. Une étoile est le moyen le plus simple de nous remercier, et elle aide d'autres personnes à le découvrir."starAction: "Mettre une étoile sur GitHub"starLater: Plus tard- starThanks: "Nous avons ouvert le dépôt dans un nouvel onglet. Mettez-y une étoile, puis revenez pour continuer."doneTitle: "Tout est prêt !"doneMessage: "Mimik est prêt à capturer. Cliquez sur « Lancer la capture » pour enregistrer votre premier guide."featureAutoCapture: Capture automatiquediff --git a/src/locales/pt-BR.yml b/src/locales/pt-BR.ymlindex a6e9ec3..9561d5a 100644--- a/src/locales/pt-BR.yml+++ b/src/locales/pt-BR.yml@@ -409,7 +409,6 @@ onboarding:starMessage: "O Mimik é gratuito e de código aberto. Uma estrela é o jeito mais fácil de agradecer, e ajuda outras pessoas a encontrarem o projeto."starAction: Deixar uma estrela no GitHubstarLater: Talvez depois- starThanks: "Abrimos o repositório em uma nova aba. Deixe a estrela por lá e volte para continuar."doneTitle: "Tudo pronto!"doneMessage: "O Mimik tá pronto pra capturar. Clica em \"Começar a capturar\" na extensão pra gravar seu primeiro guia."featureAutoCapture: Captura automáticadiff --git a/src/ui/onboarding/App.tsx b/src/ui/onboarding/App.tsxindex d616c97..adc17c9 100644--- a/src/ui/onboarding/App.tsx+++ b/src/ui/onboarding/App.tsx@@ -727,12 +727,9 @@ function MascotWithStar({ size = 300 }: { size?: number }) {);}-function GitHubStarStep({ onNext, onSkip, onBack, index, total }: StepProps) {- const [starred, setStarred] = useState(false);-+function GitHubStarStep({ onSkip, onBack, index, total }: StepProps) {const handleStar = () => {browser.tabs.create({ url: REPO_URL, active: true });- setStarred(true);};return (@@ -745,9 +742,7 @@ function GitHubStarStep({ onNext, onSkip, onBack, index, total }: StepProps) {<h1 className="text-3xl font-extrabold text-foreground leading-tight mb-2">{i18n.t('onboarding.starTitle')}</h1>- <p className="text-sm text-muted-foreground leading-relaxed mb-8">- {i18n.t(starred ? 'onboarding.starThanks' : 'onboarding.starMessage')}- </p>+ <p className="text-sm text-muted-foreground leading-relaxed mb-8">{i18n.t('onboarding.starMessage')}</p><div className="flex items-center gap-3"><button@@ -756,29 +751,18 @@ function GitHubStarStep({ onNext, onSkip, onBack, index, total }: StepProps) {>{i18n.t('common.back')}</button>- {starred ? (- <button- onClick={onNext}- className="px-8 py-3 bg-accent text-white rounded-xl font-semibold text-sm hover:bg-accent/90 transition-colors"- >- {i18n.t('common.continue')}- </button>- ) : (- <>- <button- onClick={handleStar}- className="px-8 py-3 bg-accent text-white rounded-xl font-semibold text-sm hover:bg-accent/90 transition-colors"- >- {i18n.t('onboarding.starAction')}- </button>- <button- onClick={onSkip}- className="ml-2 px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"- >- {i18n.t('onboarding.starLater')}- </button>- </>- )}+ <button+ onClick={handleStar}+ className="px-8 py-3 bg-accent text-white rounded-xl font-semibold text-sm hover:bg-accent/90 transition-colors"+ >+ {i18n.t('onboarding.starAction')}+ </button>+ <button+ onClick={onSkip}+ className="ml-2 px-6 py-3 text-muted-foreground rounded-xl font-semibold text-sm hover:text-foreground transition-colors"+ >+ {i18n.t('onboarding.starLater')}+ </button></div><div className="mt-6">