Repository navigation
Add the browser Note panel for tester notes and bugs - #2
Open
RoderickGrc wants to merge 7 commits into
Open
RoderickGrc wants to merge 7 commits into
RoderickGrc wants to merge 7 commits into
Conversation
Page-injectable composer opened with Alt+right-click. Point adds element chips, Screenshot and Snapshot add capture chips, and the draft is sent as a note or a bug through the __terrificCompose binding. Built without innerHTML or inline styles so it works on CSP and Trusted Types pages. Not wired into the recorder yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every recorded browser now gets the composer and a __terrificCompose binding, even when action recording is off. Notes and bugs are stored as tester marks, and the Screenshot and Snapshot tools append real capture events whose ids go back to the page for the chips. The action recorder ignores events from the composer UI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Explain the Alt+right-click composer in the README and changelog, and teach the agent skill how to resolve the element, screenshot and snapshot references inside composer notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The recording now holds one in-memory draft per session with loadDraft and saveDraft bridge operations, so the page can restore unsent text and chips after a reload or navigation. Drafts are validated strictly, never written to disk, and cleared atomically when a note or bug is saved. Screenshot and snapshot labels are numbered session-wide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion The note panel saves its draft to the session as the tester types and when the page hides, and restores it on every new page. An open panel reappears at the same position without taking focus. Element chips whose selector is missing on the current page are shown as unavailable but still serialize. Screenshot and snapshot labels come from the session so numbering continues. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The note panel fades in and out quickly, including around screenshots, where it is hidden outright once faded so it never lands in the image. Saving now confirms in place by turning the button into Saved before the panel fades out, with a screen-reader status instead of the corner toast. Reduced motion skips the transitions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pointed elements now serialize as the <pointed-section> block from the markdown extension's Point to section, captured at pick time, without the page URL that navigation events already record. Screenshots serialize as @ss_<id>.png and snapshots as @snapshot:<event id>. Copying from the note panel puts that text on the clipboard together with the full chip data, and pasting turns valid references back into chips. Inserting a capture or a pointed element no longer replaces selected text, and restoring a draft no longer adds a space after every chip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Note panel: in any browser Terrific records, holding Alt and right-clicking opens a small panel where the tester writes a note or a bug without leaving the page. Elements, screenshots and snapshots go into the text as chips, and the result is stored as a normal
noteorbugevent withauthor: 'tester'.<pointed-section>block, ported from the Point to section output ofterrific-markdown-extension, captured at pick time and without the page URL that navigation events already record.@ss_<id>.pngor@snapshot:<event id>. The panel fades out before a screenshot and is hidden outright, so it never lands in the image.Implementation
src/recorder/composer-script.ts: the page script, serialized likepage-script.ts. Built withoutinnerHTMLor inline style markup (constructable stylesheet, DOM APIs only) so it works on CSP and Trusted Types pages. Top frame only.src/recorder/composer-bridge.ts: payload validation and dispatch for the__terrificComposebinding (screenshot,snapshot,submit,loadDraft,saveDraft). Drafts are validated strictly, including screenshot paths (screenshots/ss_*.pngonly) and size limits.src/recorder/recording.ts: exposes the binding and injects the panel in every recorded browser, even when action recording is off. New optionalappendEventoption returns stored event ids, wired insrc/daemon/session-service.ts.src/recorder/page-script.ts: the action recorder ignores events that come from the panel.references/events.md) explain how to read<pointed-section>,@ss_and@snapshot:references.Testing
npm run checkpasses: lint, typecheck, 271 tests (0 skipped), build, dist smoke test, publint and pack.test/recorder.test.tscover the gesture, Point, captures, notes with action recording off, empty bugs, draft restore after reload and navigation, label continuity, inserting after a selection, and copy and paste.Known limitations
🤖 Generated with Claude Code