Skip to content

Enhancements and fixes: single instance, copy and drag, overlay motion, toolbar, updater - #8

Merged
imnakul merged 16 commits into
masterfrom
enhancements-and-fixes
Nov 19, 2026
Merged

imnakul merged 16 commits into
masterfrom
enhancements-and-fixes

Conversation

@imnakul

@imnakul imnakul commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

Six improvements to CapKit: one running copy, readable folder paths, copy and drag-out of saved screenshots, a choice of overlay animation (motion), a simpler capture toolbar, and in-app updates.

single instance ─ second launch focuses the dashboard
paths           ─ \\?\ prefix stripped (dunce)
Screenshots     ─ Copy button / Ctrl+C / drag file out
overlay motion  ─ dim-rise (default) | fade-in | fade-both
toolbar         ─ one card; click-open groups remember last tool
updates         ─ check at launch → notice → click to install

Spec: docs/specs/enhancements-and-fixes.md (local, not tracked). The stuck-pointer investigation (Part G) found no proven cause, so no code changed for it.

Evidence

  • New tests cover each part: updater status mapping and guard (Rust, 9 tests), update notice, auto-check on/off, install guard message and Store-build message (Updates.test.tsx, 7 tests), toolbar click-open and Escape order (App.test.tsx).
  • Release binary size: 12,054,528 → 12,080,128 bytes (+25,600) for the drag/copy part.
  • UI screenshots: to capture by hand — Screenshots page Copy button, Settings → General → Updates, the new toolbar (both layouts).

Merge danger

  • Door: two-way for the app. One-way once a release is published with a real updater key: lose the private key and installed copies can no longer update.
  • Blast radius: release workflow (release.yml) now fails early until the updater key pair exists and the placeholder public key in tauri.conf.json is replaced (steps in docs/NOTES.md, "Updater keys"). Packaged (Store) builds never check or install. Plugin versions are pinned lower than the spec (updater 2.10.1, single-instance 2.4.5) to keep webview2-com at 0.38.2.
  • Checks: typecheck ✅ · lint ✅ · vitest 417/417 ✅ · cargo fmt ✅ · clippy -D warnings ✅ · cargo test 85 passed ✅. Not tested by hand: OLE drag on mixed-DPI monitors, the NSIS update round-trip, the stress repro.

🤖 Generated with Claude Code

imnakul and others added 16 commits October 29, 2026 21:16
A 52.6 s 1080p60 product film (capture, Screen Draw, Showcase, recording
with auto-zoom, size reveal) built as an HTML timeline driven by
window.seek(ms) and rendered frame by frame to H.264 via headless Edge and
ffmpeg. Renders land in marketing/launch-video/out/, which is ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Open at startup uses a manifest windows.startupTask when CapKit has
  package identity; unpackaged builds keep the autostart plugin entry.
  Both sit behind a StartupBackend trait, and a startup-task activation
  is treated like --background.
- Settings reads and changes startup through validated IPC. It locks the
  switch when the user (in Windows) or a policy controls the task, and
  links to Startup settings.
- Declare microphone and webcam device capabilities.
- build-msix.ps1 stages LICENSE.txt and a THIRD_PARTY_NOTICES.txt
  generated from cargo metadata and pnpm licenses.
- Drop the unused JS autostart plugin and its webview permissions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Press I in the capture overlay to copy #RRGGBB, Shift+I for rgb().
The colour is read from the frozen snapshot's physical pixel and copied
as text through a new ClipboardBackend::copy_text. A capture-mode
shortcut bound to I keeps priority while a selection is ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A size target spreads the byte budget over the trimmed duration with a
6% margin and encodes at a constant bitrate. When that starves each
pixel, the export drops to 30 fps and then scales down to no less than
640 px wide. A file that still overshoots is re-encoded once at a
proportionally lower bitrate, and the status line reports the result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a Copy text action to the capture rail. The raw selection (without
annotations) is read by the built-in Windows.Media.Ocr engine using the
user's installed language packs, so no model ships and nothing leaves the
machine. Text found is copied and the capture closes; an empty result
keeps the capture open with a hint. recognize_capture_text returns
words with selection-local logical bounds for redaction suggestions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Find sensitive text reads the selection with the OS OCR engine and flags
emails, phone numbers, Luhn-valid card numbers, provider API keys, JWTs
and high-entropy strings. Matches map back to the OCR word boxes they
cover and are previewed over the selection; nothing changes until the
user confirms. Confirmed items become blackout annotations in a single
undo step. Blackout is used instead of pixelate because pixelated text
can be partly reconstructed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The recorder can now record key presses, opt-in from the dock's options
menu. It polls at about 60 Hz alongside the existing pointer sampler, with
no keyboard hook. Shortcut names are kept. Typed characters are stored only
as "typing happened", so the text itself is never written to disk.

Studio adds Motion > Keystrokes:
- shortcuts-only or all named keys
- top or bottom placement
- label size
- optional click labels

Repeated presses are counted (Ctrl + Z x3) rather than stacked. Labels paint
through the shared compositor, so the preview and the MP4/GIF export match.
Older recordings and saved scenes still load, with keys marked as not
recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Automatic zoom now also targets bursts of typing: three or more presses with
gaps under 1.2 s, with Backspace and Delete counted. The caret is never
recorded, so each burst focuses on the click that placed the caret, or on the
pointer if nothing was clicked first. A click ends a burst.

Typing bursts go through the same generator as click clusters, so the camera
pans between nearby moments rather than pulling out. The generator now holds
the zoom until the latest end it has seen, so a click inside a long burst no
longer zooms out early.

Studio's Zoom section adds a Follow typing toggle. It is on by default and
disabled when a recording has no keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… rail

Star a saved Showcase style to apply it to captures sent to Showcase. The
completion rail gains Save & Showcase, which saves the capture and opens it
in the dashboard's Showcase tab with that style. The capture path is handed
over through a one-shot native slot so a freshly built dashboard still
receives it, and only files inside the save folder are accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Document the eyedropper, OCR copy text, redaction suggestions, Save &
Showcase, keystroke labels, follow-typing zoom, and MP4 size targets in
the status, roadmap, decision log, and public changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uses tauri-plugin-single-instance 2.4.5: 2.5.5 needs tauri 2.12, which moves wry to webview2-com 0.39 and breaks the pinned 0.38.2 camera permission code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds an overlay motion setting (dim-rise, fade-in, fade-both) with reduced-motion handling, a single-cancel exit ordering contract, and a Settings radiogroup. Removes a duplicated detection toggle.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Individual mode shows a flat card with an inline style row; Group mode opens on click, remembers the last tool per group, closes first on Escape, and the toolbar is placed using its measured size.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
snaphub Ready Ready Preview Nov 19, 2026 8:54am UTC

@imnakul
imnakul merged commit 0e9fb36 into master Nov 19, 2026
3 checks passed
@imnakul
imnakul deleted the enhancements-and-fixes branch November 20, 2026 13:44

This branch was successfully deployed

1 active deployment
Preview — c5479ba3 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant