π¬ 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
docs: remove the duplicated overlay capture paragraphs
Luis Ortiz52be63e5b1a2
diff --git a/AGENTS.md b/AGENTS.mdindex a128fc2..e384598 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -349,130 +349,6 @@ protection on the way back. Hiding a window is visible as a blink once per captuused only where nothing else works. `setOpacity(0)` is not an alternative: it stopped captureshappening at all.-The boundary only exists in `region` mode, because the other two modes have no fixed rectangle to-draw. `overlay.ignores(point)` keeps clicks on the card from becoming steps β without it, pressing-Pause in whole-screen mode would capture pressing Pause.--The card carries what the extension's recording view carries, shrunk to sit over someone else's work:-state, step count, the screenshot just taken, its title, and two actions. Showing the capture is the-point β it is the only way to tell mid-recording that a step landed on the right thing, and without it-a wrong capture mode is discovered after twenty steps rather than after one. Main already holds that-screenshot's URL when it tells the overlay a step was captured, so the card reads it over the same-`mimik-screenshot://` scheme the app window uses and no image data crosses IPC.--All three roles are one HTML file and one stylesheet, told apart only by `body.editor`,-`body.boundary` and `body.controls`, so an id is shared across three documents. The card's rules are-scoped under `body.controls` for that reason: an unscoped `#hint` already existed for the region-editor, absolutely positioned and dark, and it silently captured the card's hint the first time both-used the name. `check:overlay` asserts the card's hint computes to `position: static`, which is the-cheapest way to catch the next collision.--The card sizes itself. The renderer reports `scrollHeight` after every render and main moves the-window to match, so a long step title or a collapse does not need a table of per-state pixel heights.-That only works because `body.controls` overrides the shared `height: 100%`: a body pinned to the-window's height reports the window's height back, and the card could never grow.-Collapsing turns it into a pill; the mode picker appears only while paused, since a mode cannot-usefully change between one click and the next, and it is what made the old bar 452 px wide.--Editing puts a full-display window on **every** display rather than only the one holding the region,-which is what makes moving the region to another monitor work: each editor converts client to screen-coordinates with its own display origin, and whichever one you draw on wins. Outside editing the-boundary shrinks to the region itself and takes `setIgnoreMouseEvents`, so recording never swallows a-click. The boundary is solid and pulses while recording, dashed and grey while paused.--Overlays must not appear in their own capture. `overlay.withHidden(fn)` hides every visible overlay-for the duration of `fn` and restores exactly the ones it hid, and the capture pipeline wraps its-screenshot in it. Hiding is the only mechanism that has ever worked here, and two alternatives have-been tried and reverted on Windows: `setContentProtection(true)` is set on every overlay window and-does not keep it out of the frames `node-screenshots` returns, and `setOpacity(0)` stops captures-happening at all. The cost is a visible blink of the recording card once per step. Anything proposed-to remove that blink has to be tested on Windows against a real capture before it is believed.--The boundary only exists in `region` mode, because the other two modes have no fixed rectangle to-draw. `overlay.ignores(point)` keeps clicks on the card from becoming steps β without it, pressing-Pause in whole-screen mode would capture pressing Pause.--The card carries what the extension's recording view carries, shrunk to sit over someone else's work:-state, step count, the screenshot just taken, its title, and two actions. Showing the capture is the-point β it is the only way to tell mid-recording that a step landed on the right thing, and without it-a wrong capture mode is discovered after twenty steps rather than after one. Main already holds that-screenshot's URL when it tells the overlay a step was captured, so the card reads it over the same-`mimik-screenshot://` scheme the app window uses and no image data crosses IPC.--All three roles are one HTML file and one stylesheet, told apart only by `body.editor`,-`body.boundary` and `body.controls`, so an id is shared across three documents. The card's rules are-scoped under `body.controls` for that reason: an unscoped `#hint` already existed for the region-editor, absolutely positioned and dark, and it silently captured the card's hint the first time both-used the name. `check:overlay` asserts the card's hint computes to `position: static`, which is the-cheapest way to catch the next collision.--The card sizes itself. The renderer reports `scrollHeight` after every render and main moves the-window to match, so a long step title or a collapse does not need a table of per-state pixel heights.-That only works because `body.controls` overrides the shared `height: 100%`: a body pinned to the-window's height reports the window's height back, and the card could never grow.-Collapsing turns it into a pill; the mode picker appears only while paused, since a mode cannot-usefully change between one click and the next, and it is what made the old bar 452 px wide.--Editing puts a full-display window on **every** display rather than only the one holding the region,-which is what makes moving the region to another monitor work: each editor converts client to screen-coordinates with its own display origin, and whichever one you draw on wins. Outside editing the-boundary shrinks to the region itself and takes `setIgnoreMouseEvents`, so recording never swallows a-click. The boundary is solid and pulses while recording, dashed and grey while paused.--Overlays must not appear in their own capture, and `overlay.withHidden(fn)` is what guarantees it.-It drops each visible overlay to zero opacity, reads the opacity back, and falls back to hiding the-window for the ones where the call did nothing. Zero opacity is preferred because hiding and-re-showing a window is visible β the recording card blinks once per captured step β while a window at-alpha 0 is simply not composited. `setOpacity` is a no-op on Linux, which is why the fallback exists-and why it is chosen by reading the value back rather than by testing `process.platform`: the code-finds out instead of assuming.--`setContentProtection(true)` is set on every overlay window and is **not** sufficient on its own.-Skipping the hide on Windows and relying on it put the recording card inside the screenshots it was-displaying. Whatever it excludes, it does not exclude the window from the frames `node-screenshots`-returns.--The boundary only exists in `region` mode, because the other two modes have no fixed rectangle to-draw. `overlay.ignores(point)` keeps clicks on the card from becoming steps β without it, pressing-Pause in whole-screen mode would capture pressing Pause.--The card carries what the extension's recording view carries, shrunk to sit over someone else's work:-state, step count, the screenshot just taken, its title, and two actions. Showing the capture is the-point β it is the only way to tell mid-recording that a step landed on the right thing, and without it-a wrong capture mode is discovered after twenty steps rather than after one. Main already holds that-screenshot's URL when it tells the overlay a step was captured, so the card reads it over the same-`mimik-screenshot://` scheme the app window uses and no image data crosses IPC.--All three roles are one HTML file and one stylesheet, told apart only by `body.editor`,-`body.boundary` and `body.controls`, so an id is shared across three documents. The card's rules are-scoped under `body.controls` for that reason: an unscoped `#hint` already existed for the region-editor, absolutely positioned and dark, and it silently captured the card's hint the first time both-used the name. `check:overlay` asserts the card's hint computes to `position: static`, which is the-cheapest way to catch the next collision.--The card sizes itself. The renderer reports `scrollHeight` after every render and main moves the-window to match, so a long step title or a collapse does not need a table of per-state pixel heights.-That only works because `body.controls` overrides the shared `height: 100%`: a body pinned to the-window's height reports the window's height back, and the card could never grow.-Collapsing turns it into a pill; the mode picker appears only while paused, since a mode cannot-usefully change between one click and the next, and it is what made the old bar 452 px wide.--Editing puts a full-display window on **every** display rather than only the one holding the region,-which is what makes moving the region to another monitor work: each editor converts client to screen-coordinates with its own display origin, and whichever one you draw on wins. Outside editing the-boundary shrinks to the region itself and takes `setIgnoreMouseEvents`, so recording never swallows a-click. The boundary is solid and pulses while recording, dashed and grey while paused.--Overlays must not appear in their own capture, and `overlay.withHidden(fn)` is the only thing that-achieves it: it hides every visible overlay for the duration of `fn` and restores exactly the ones it-hid. The capture pipeline wraps its screenshot in it, on every platform.--`setContentProtection(true)` is set on every overlay window and is **not** sufficient. Skipping the-hide on Windows and relying on it alone put the recording card inside the screenshots it was-displaying. Whatever it excludes, it does not exclude the window from the frames `node-screenshots`-returns, so do not treat it as a substitute. The cost is that hiding and re-showing a window is-visible: the card blinks once per captured step. That is a known trade and correctness wins.-Anything the card hides is hidden with the `hidden` property, and `body.controls [hidden]` forces`display: none` because several of those elements are flex containers whose author rule outranks thebrowser's default for `[hidden]`. Without it the instructions stayed on screen behind the first