π¬ 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): cut the recording card copy down to what it tells you
Luis Ortizc203567c973b
diff --git a/apps/desktop/scripts/check-overlay.ts b/apps/desktop/scripts/check-overlay.tsindex d7696bf..87c997b 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 === 'Alt+Shift+Rstarts and stops',+ mascot.paths === 4 && mascot.flash === 1 && mascot.visible === true && mascot.hint === '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 === 'Waiting for your first click' && idle.hint === 'Alt+Shift+Ccaptures where the pointer is',+ idle.tip === 'Your first click will show up here.' && idle.hint === 'You can press Alt+Shift+C to capture without clicking.',`tip: ${idle.tip}, hint: ${idle.hint}`,);diff --git a/apps/desktop/src/renderer/icons.ts b/apps/desktop/src/renderer/icons.tsindex 7dccb88..71f5e25 100644--- a/apps/desktop/src/renderer/icons.ts+++ b/apps/desktop/src/renderer/icons.ts@@ -5,6 +5,7 @@ import {ChevronUp,Crop,createElement,+ Keyboard,LoaderCircle,Monitor,Pause,@@ -25,6 +26,7 @@ const ICONS = {window: AppWindow,monitor: Monitor,area: Crop,+ keyboard: Keyboard,};export type IconName = keyof typeof ICONS;diff --git a/apps/desktop/src/renderer/overlay.css b/apps/desktop/src/renderer/overlay.cssindex 4ddcee8..1e8ed3f 100644--- a/apps/desktop/src/renderer/overlay.css+++ b/apps/desktop/src/renderer/overlay.css@@ -458,12 +458,6 @@ body.controls.waiting #intro {text-align: center;}-body.controls.waiting #intro > div:last-child {- display: flex;- flex-direction: column;- align-items: center;-}-body.controls #mascot {display: flex;flex-shrink: 0;@@ -503,18 +497,33 @@ body.controls.waiting #tip {body.controls #keyHint {display: flex;- align-items: center;- gap: 6px;- margin: 6px 0 0;- font-size: 11px;- color: var(--muted);+ align-items: flex-start;+ gap: 8px;+ margin-top: 12px;+ padding: 8px 10px;+ border-radius: 9px;+ background: #eef2ff;+}++body.controls #keyHint svg {+ flex-shrink: 0;+ margin-top: 2px;+ color: var(--accent);+}++body.controls #keyHint p {+ margin: 0;+ font-size: 11.5px;+ line-height: 1.55;+ color: var(--deep);}body.controls #hintKey {padding: 1px 6px;border: 1px solid var(--lavender);border-radius: 5px;- background: #eef2ff;+ background: #fff;+ white-space: nowrap;color: var(--deep);font: inherit;font-size: 10.5px;diff --git a/apps/desktop/src/renderer/overlay/controls.ts b/apps/desktop/src/renderer/overlay/controls.tsindex 242c4e4..cea6197 100644--- a/apps/desktop/src/renderer/overlay/controls.ts+++ b/apps/desktop/src/renderer/overlay/controls.ts@@ -51,9 +51,9 @@ export function controls(): void {const tip = el('p', { id: 'tip' });const hintKey = el('kbd', { id: 'hintKey' });const hintText = el('span', {});- const hint = el('p', { id: 'keyHint' }, hintKey, hintText);- const intro = el('div', { id: 'intro' }, el('div', { id: 'mascot' }, cameraMascot(56)), el('div', {}, tip, hint));- const body = el('div', { id: 'body' }, preview, stepTitle, writing, skeleton, stepMeta, intro);+ const hint = el('div', { id: 'keyHint' }, icon('keyboard', 14), el('p', {}, '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);const modeLabel = el('p', { id: 'modeLabel' }, 'Capture mode');const modeRow = el('div', { id: 'modes' });@@ -134,13 +134,11 @@ export function controls(): void {metaText.textContent = [step ? `Step ${step.index}` : '', step?.app ?? ''].filter(Boolean).join(' Β· ');intro.hidden = !(armed || waiting);- tip.textContent = armed- ? 'Press Start, then work as you normally would. Every click becomes a step.'- : 'Waiting for your first click';+ tip.textContent = armed ? 'Each click is saved as a step.' : 'Your first click will show up here.';const key = armed ? shortcuts.startStop : shortcuts.capture;- hint.hidden = !key;+ hint.hidden = intro.hidden || !key;hintKey.textContent = key ?? '';- hintText.textContent = armed ? 'starts and stops' : 'captures where the pointer is';+ hintText.textContent = armed ? ' to start and stop.' : ' to capture without clicking.';body.hidden = collapsed || (paused && !step);modes.hidden = collapsed || !paused;