π¬ 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(desktop): label the recording card's shortcut hint as a tip
Luis Ortizacb3c3c66dd5
diff --git a/apps/desktop/scripts/check-overlay.ts b/apps/desktop/scripts/check-overlay.tsindex 87c997b..f3d3aec 100644--- a/apps/desktop/scripts/check-overlay.ts+++ b/apps/desktop/scripts/check-overlay.ts@@ -186,7 +186,7 @@ app.whenReady().then(async () => {const mascot = JSON.parse(String(drawn ?? '{}')) as { paths?: number; flash?: number; visible?: boolean; hint?: string };check('the armed card draws the camera mascot and the start shortcut',- mascot.paths === 4 && mascot.flash === 1 && mascot.visible === true && mascot.hint === 'You can press Alt+Shift+R to start and stop.',+ mascot.paths === 4 && mascot.flash === 1 && mascot.visible === true && mascot.hint === 'Tip: you can press Alt+Shift+R to start and stop.',`${mascot.paths} mascot paths, ${mascot.flash} flash, intro visible: ${mascot.visible}, hint: ${mascot.hint}`,);@@ -198,7 +198,7 @@ app.whenReady().then(async () => {const idle = await card("tip: document.querySelector('#tip').textContent, hint: document.querySelector('#keyHint').textContent");check('recording with no steps waits for the first click',- idle.tip === 'Your first click will show up here.' && idle.hint === 'You can press Alt+Shift+C to capture without clicking.',+ idle.tip === 'Your first click will show up here.' && idle.hint === 'Tip: you can press Alt+Shift+C to capture without clicking.',`tip: ${idle.tip}, hint: ${idle.hint}`,);diff --git a/apps/desktop/src/renderer/overlay.css b/apps/desktop/src/renderer/overlay.cssindex 1e8ed3f..99af9f4 100644--- a/apps/desktop/src/renderer/overlay.css+++ b/apps/desktop/src/renderer/overlay.css@@ -518,6 +518,10 @@ body.controls #keyHint p {color: var(--deep);}+body.controls #keyHint strong {+ font-weight: 600;+}+body.controls #hintKey {padding: 1px 6px;border: 1px solid var(--lavender);diff --git a/apps/desktop/src/renderer/overlay/controls.ts b/apps/desktop/src/renderer/overlay/controls.tsindex cea6197..d0a4097 100644--- a/apps/desktop/src/renderer/overlay/controls.ts+++ b/apps/desktop/src/renderer/overlay/controls.ts@@ -51,7 +51,12 @@ export function controls(): void {const tip = el('p', { id: 'tip' });const hintKey = el('kbd', { id: 'hintKey' });const hintText = el('span', {});- const hint = el('div', { id: 'keyHint' }, icon('keyboard', 14), el('p', {}, 'You can press ', hintKey, hintText));+ const hint = el(+ 'div',+ { id: 'keyHint' },+ icon('keyboard', 14),+ el('p', {}, el('strong', {}, 'Tip:'), ' you can press ', hintKey, hintText),+ );const intro = el('div', { id: 'intro' }, el('div', { id: 'mascot' }, cameraMascot(56)), tip);const body = el('div', { id: 'body' }, preview, stepTitle, writing, skeleton, stepMeta, intro, hint);