Skip to content

feat: browser devtools link, Inspector extension and notes - #9

Merged
imnakul merged 18 commits into
masterfrom
feat/browser-devtools
Nov 20, 2026
Merged

imnakul merged 18 commits into
masterfrom
feat/browser-devtools

Conversation

@imnakul

@imnakul imnakul commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Everything on feat/browser-devtools (17 commits on top of master):

  • Updates: signed auto-updates and the v0.4.0 release.
  • Capture: annotation resize and target glide, toolbar placement, pinned drawings, number-key tools, C/S/A deliver notes, and skipping tiling-manager overlays.
  • Browser detection: Chromium accessibility wake-up, the CapKit Inspector extension, and extension-based detection and exact redaction.
  • Browser devtools and notes: Developer tools switch, pairing, note pins, Markdown handoff, Notes library, and the 2026-11-19 rework (notes guard, fallback box, settings and popup copy).
  • Fixes: the toolbar show/hide switches are clickable again, and the extension reconnects after the worker is suspended.

Verification

typecheck, lint, vitest (desktop 515, extension 72, protocol 12), vite build, cargo fmt --check, clippy -D warnings, cargo test (141 passed).

🤖 Generated with Claude Code

imnakul and others added 6 commits November 19, 2026 14:55
Selected annotations get eight resize handles (drag, or arrow keys with
Shift for 10px). The detection hover outline now glides between targets
and stays visible while UI Automation resolves the next one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Settings > Screenshots: show or hide each finishing action and place
  each Individual-mode tool and each action in the horizontal or
  vertical toolbar.
- Remove the overlay motion setting; the overlay always fades in and out.
- Drawings stay fixed on screen when the selection moves or resizes.
- Browser windows: scan the active page's document on its own, clipped
  to its viewport, and rescan thin browser results on a later hover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chromium leaves web pages out of its accessibility tree until an
assistive tool asks for them, so detection only saw the browser's own
toolbar. Send the standard accessibility request to each page window
(Chrome_RenderWidgetHostHWND) before scanning, which also covers Edge,
Electron and WebView2 apps, and rescan on later hovers while the page
tree is still filling in.

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

Adds the shared @snaphub/devtools-protocol package (protocol schemas, Markdown
builders, moved sensitive-text matcher) and the MV3 CapKit Inspector extension:
hover/lock overlay, measure, styles, accessibility and React source location,
plus the background link and popup.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Add the localhost WebSocket browser link (off by default, paired by one-time
code, origin-bound token), extension-first hover detection with fallback to
UI Automation, exact redaction from page text rectangles with OCR fallback,
and a Developer settings tab to switch it on and pair browsers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds the Note tool (point pins and dashed areas with comments), element
lookup through the browser link, Markdown handoff (copy/save) with
masking, and a Notes tab in the dashboard. Aligns extension reconnect
backoff with the spec (1, 2, 5, 10, then 30 s).

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 20, 2026 4:32am UTC

- Notes commands return "Developer tools is off" before touching NotesStore.
- Accessibility fallback notes carry the hovered element's screen-pixel box.
- Settings: status, code format, countdown, expiry, lockout, forget confirm, Get the extension.
- Popup copy for wrong-code and too-many-attempts; status event gains pairingLocked.
- Fonts use use_dynamic_url; tests count ui_region_at calls.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ecisions, architecture, performance and privacy

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

imnakul commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

Rework (2026-11-19) pushed: notes commands require Developer tools, accessibility fallback carries a screen-pixel box, Settings and popup copy match the spec, use_dynamic_url on fonts, ui_region_at call-count test, docs updated. The status event gains pairingLocked so Settings can show "Too many wrong codes".

🤖 Generated with Claude Code

imnakul and others added 4 commits November 19, 2026 22:30
…e inspector via activeTab

- chrome.permissions.request moves to the popup click handler; Chrome rejects it in the service worker (no user gesture).
- The background always answers runtime messages, so a failed step no longer surfaces as "message channel closed".
- Inspect page works on any http(s) page through the activeTab grant, also without CapKit; it stays open with a message when it can't start and is disabled on non-web pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ow the CapKit accent

- Page area falls back to the UIA Document element when a browser has no
  visible page window (Aside), so CapKit asks the extension during capture.
- CapKit requests try the tab without a stored site permission and fall
  back to accessibility when injection fails.
- CapKit sends its accent (ready.accent, theme message); the inspector and
  popup use it, with lime when standalone.
- Retry a failed React helper injection on the next request.
- Add Note once, after Counter, to toolbars saved before Note existed.

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

FancyWM keeps invisible full-screen overlays above tiled windows, so
detection scanned the overlay and found nothing in Aside. Skip windows
that are click-through or layered, non-activating tool windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Note screenshots live in $APPLOCALDATA/notes/images, outside the asset
scope, so every card showed a broken image. Add that folder to the scope.

Clicking a card now opens a dialog with the full screenshot and the
note's complete Markdown (new read-only notes_read command), with Copy
Markdown, Open page, loading, error and missing-image states. The
context menu keeps its actions and gains Open note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
imnakul and others added 5 commits November 20, 2026 09:21
…able in Select

- Copy, Save and Copy & Save (and C, S, A, Enter) deliver the note once
  the capture has a pin; the separate note buttons and their settings
  are removed.
- The horizontal toolbar numbers its buttons 1-9 then 0 with a corner
  badge; the number key clicks that button and V picks Select.
- Clicking a pin in Select keeps focus in its comment textarea, so the
  comment can be edited instead of typing into capture shortcuts.

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

The note popover anchors to the pin's live drag position, then to the
pin's current position, instead of where it was first placed. Shortcut
badges use Geist Mono when the system has it, falling back to the
bundled mono; no font is added to the bundle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CompactToggle wrapped its visually hidden checkbox in a span, so clicks
on the drawn switch never reached it. Use a label, like the other
switches in Settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chrome suspends an idle MV3 service worker and drops its timers, so
the setTimeout backoff never fired after a CapKit restart and the link
stayed down until the popup opened. While unreachable, keep a 30 s
chrome.alarms wake-up that retries; clear it once settled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the updater public-key placeholder with the real key so release
builds are signed and installed copies can verify updates. Bump to 0.4.0
so the next merge to master publishes the first signed release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@imnakul
imnakul changed the base branch from fix/annotation-resize-and-target-glide to master November 20, 2026 04:28
@imnakul imnakul closed this Nov 20, 2026
@imnakul imnakul reopened this Nov 20, 2026
The root-less `scripts` ignore rule hid apps/browser-extension/scripts/build.mjs,
so CI could not build the extension. Anchor the rule to the repository root.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@imnakul
imnakul merged commit c8fd7a1 into master Nov 20, 2026
3 checks passed
@imnakul
imnakul deleted the feat/browser-devtools branch November 20, 2026 13:44

This branch was successfully deployed

1 active deployment
Preview — 3744369c Deployed Nov 20, 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