🎬 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
feat(onboarding): add a github star step with the mascot illustration
Luis Ortiz751a578ae640
diff --git a/src/locales/de.yml b/src/locales/de.ymlindex 534d500..da03b8e 100644--- a/src/locales/de.yml+++ b/src/locales/de.yml@@ -336,6 +336,10 @@ onboarding:pinStep3Title: Klicke auf das Pin-SymbolpinStep3Sub: Mimik erscheint dann in deiner SymbolleistepinScreenshotAlt: Mimik-Erweiterung anpinnen+ starTitle: "Magst du uns einen Stern geben?"+ 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 markieren+ starLater: "Vielleicht später"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 9d80430..1b424e5 100644--- a/src/locales/en.yml+++ b/src/locales/en.yml@@ -405,6 +405,10 @@ onboarding:pinStep3Title: Click the pin iconpinStep3Sub: Mimik will appear in your toolbarpinScreenshotAlt: Pin Mimik extension+ starTitle: Mind giving us a star?+ 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 GitHub+ starLater: Maybe laterdoneTitle: "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 61c22b2..b3ad1cb 100644--- a/src/locales/es.yml+++ b/src/locales/es.yml@@ -405,6 +405,10 @@ onboarding:pinStep3Title: Haz clic en el pinpinStep3Sub: Mimik aparecerá en tu barrapinScreenshotAlt: Fijar extensión Mimik+ starTitle: "¿Nos das una estrella?"+ 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 GitHub+ starLater: "Quizá más tarde"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 8bbc48e..31c2b2c 100644--- a/src/locales/fr.yml+++ b/src/locales/fr.yml@@ -405,6 +405,10 @@ onboarding:pinStep3Title: "Cliquez sur l'épingle"pinStep3Sub: "Mimik apparaîtra dans votre barre"pinScreenshotAlt: "Épingler Mimik"+ starTitle: "Vous nous mettez une étoile ?"+ 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 tarddoneTitle: "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 1c536fd..ac01969 100644--- a/src/locales/pt-BR.yml+++ b/src/locales/pt-BR.yml@@ -405,6 +405,10 @@ onboarding:pinStep3Title: Clica no pinpinStep3Sub: O Mimik vai aparecer na sua barrapinScreenshotAlt: Fixar extensão Mimik+ starTitle: "Que tal deixar uma estrela?"+ 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 GitHub+ starLater: Talvez depoisdoneTitle: "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 7ff87b5..1eb1149 100644--- a/src/ui/onboarding/App.tsx+++ b/src/ui/onboarding/App.tsx@@ -18,6 +18,8 @@ interface StepProps {total: number;}+const REPO_URL = 'https://github.com/westpoint-io/mimik';+const BLUR_PRESET_I18N: Record<PresetKey, string> = {email: 'email',phone: 'phoneNumbers',@@ -702,6 +704,86 @@ function PinExtensionStep({ onNext, onSkip, onBack, index, total }: StepProps) {);}+function MascotWithStar({ size = 300 }: { size?: number }) {+ return (+ <svg viewBox="0 0 200 200" width={size} height={size}>+ <circle cx="34" cy="96" r="4" fill="#818CF8" style={{ animation: 'sparkle 1.5s ease-in-out infinite' }} />+ <circle cx="168" cy="86" r="3.5" fill="#818CF8" style={{ animation: 'sparkle 1.5s ease-in-out infinite 0.5s' }} />+ <circle cx="46" cy="30" r="3" fill="#A5B4FC" style={{ animation: 'sparkle 1.5s ease-in-out infinite 0.9s' }} />+ <g transform="translate(72 2) scale(2.333)">+ <path+ d="m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z"+ fill="#FACC15"+ />+ </g>+ <path d="M50 152 Q32 110 68 68" stroke="#C7D2FE" strokeWidth="14" fill="none" strokeLinecap="round" />+ <path d="M150 152 Q168 110 132 68" stroke="#C7D2FE" strokeWidth="14" fill="none" strokeLinecap="round" />+ <circle cx="100" cy="110" r="55" fill="#C7D2FE" />+ <rect x="55" y="110" width="90" height="44" rx="5" fill="#1E1B4B" />+ <path d="M55 110 L55 98 Q55 80 100 80 Q145 80 145 98 L145 110Z" fill="#4F46E5" />+ <rect x="55" y="109" width="90" height="2" fill="#C7D2FE" />+ <path d="M80 128 Q86 120 92 128" stroke="#C7D2FE" strokeWidth="3.5" fill="none" strokeLinecap="round" />+ <path d="M108 128 Q114 120 120 128" stroke="#C7D2FE" strokeWidth="3.5" fill="none" strokeLinecap="round" />+ <path d="M90 140 Q100 149 110 140" stroke="#C7D2FE" strokeWidth="2.5" fill="none" strokeLinecap="round" />+ </svg>+ );+}++function GitHubStarStep({ onNext, onSkip, onBack, index, total }: StepProps) {+ const handleStar = () => {+ browser.tabs.create({ url: REPO_URL });+ onNext();+ };++ return (+ <div className="flex h-screen">+ <div className="flex-1 flex flex-col justify-center" style={{ padding: '80px 64px' }}>+ <div className="max-w-md">+ <p className="text-xs font-semibold text-accent mb-2 tracking-wide uppercase">+ {i18n.t('onboarding.stepOf', [String(index), String(total)])}+ </p>+ <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('onboarding.starMessage')}</p>++ <div className="flex items-center gap-3">+ <button+ onClick={onBack}+ className="px-8 py-3 bg-card text-foreground border border-border rounded-xl font-semibold text-sm hover:border-accent hover:text-accent transition-colors"+ >+ {i18n.t('common.back')}+ </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">+ <ProgressDots current={index} total={total} />+ </div>+ </div>+ </div>+ <div className="w-1/2 bg-deep flex items-center justify-center relative overflow-hidden">+ <div className="absolute w-[500px] h-[500px] bg-[radial-gradient(circle,rgba(79,70,229,0.2),transparent_70%)] top-[10%] right-[-10%]" />+ <div className="absolute w-[400px] h-[400px] bg-[radial-gradient(circle,rgba(250,204,21,0.08),transparent_70%)] bottom-[14%] left-[8%]" />+ <div className="animate-[float_3s_ease-in-out_infinite] relative z-10">+ <MascotWithStar size={300} />+ </div>+ </div>+ </div>+ );+}+function DoneStep() {useEffect(() => {localStorage.set({ onboardingCompleted: true });@@ -810,8 +892,8 @@ function DoneStep() {const CONFIG_STEPS =import.meta.env.BROWSER === 'firefox'- ? [AISetupStep, SmartBlurStep, PinExtensionStep]- : [AISetupStep, VoiceStep, SmartBlurStep, PinExtensionStep];+ ? [AISetupStep, SmartBlurStep, PinExtensionStep, GitHubStarStep]+ : [AISetupStep, VoiceStep, SmartBlurStep, PinExtensionStep, GitHubStarStep];export default function OnboardingApp() {const [step, setStep] = useState(0);