Repository navigation
feat(ui-feedback): toggle that shows or hides every note marker - #17847
Conversation
The notes host's dock gets Hide markers (M), beside Hide notes so it works with the panel closed. The host sends the frame a markers message; proto-pin.js then skips the badges in draw() and leaves the hover, region and held outlines alone, so hiding markers never ends a pick. The choice is kept in sessionStorage and re-sent on ready, so it lasts across reloads for the tab's run. A host that never sends the message, such as the planning shared page, keeps every marker drawn. Closes #17802. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
PR body contract — issue linkage This PR body conforms to the issue-linkage contract. Nothing to do. |
The host posts pins before release, so once the held outline is gone the frame has the new pins; checking for no marker before that point passed whatever the hidden state was. Name the changelog fragments by the branch slug, as ADR 0048 asks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #17847, show/hide toggle for note markersI found no security issues in this change. What I checked
Scope: none of the 10 changed files matches a trusted-path glob. The change touches no plugin manifest, workflow, trust control, merge hold or instruction file. The planning and notes-bridge critical-findings: 0 |
|
claude-review reviewed Code review: PR #17847, show/hide toggle for note markersNo findings. I read all 9 files in scope. What I checked
Loosened checks would be marked: fail (default, no Verifier dropped 0 of 0 candidates. |
Post-merge mutation testingKilled 0, survived 1, timeout 0, no coverage 0, invalid 0, not run 6.
Surviving mutants
The run's summary has the full report. |
Closes #17802.
Summary
Sent notes leave numbered markers over the mockup, and with many notes they crowd it. The notes host's dock now has Hide markers (M), which hides every marker, and Show markers (M), which brings them back.
Fix
lib/ui-feedback/host.html: the toggle sits beside Hide notes (N), outside the panel, so it still works when N has closed the panel. M toggles it, except while typing in a text field. The host keeps the choice insessionStorageand sends it to the frame on everyready, so it survives a reload for the tab's run. It never callssetPickor closes the composer.lib/ui-feedback/proto-pin.js: a newmarkersmessage sets a flag, anddraw()skips only the badges when it is off. Hover, region and held outlines still draw, so hiding markers never ends a pick. The default is shown, so the planning shared page, which never sends the message, keeps every marker.pointer-events: none, and that is unchanged.scripts/sync-shared-copies.sh. The only planning file touched is the syncedplugins/planning/shared/web/proto-pin.js.Not built here: clicking a marker to open its note. It moved to #17801, which builds the notes list a marker would open (issue #17802 now says so). This PR guarantees that markers never take a click.
Verification
Run locally on Windows:
node --test lib/ui-feedback/note-model.test.mjs: 141 pass. That is the 138 already there plus three new ones. Two fail without the frame change: markers hidden and shown again, including pins that arrive while hidden; and a region pick that keeps its outline and still commits with markers hidden. The third passes either way, since the frame ignores an unknown message. It guards that amarkershandler leaves the pick alone: an element pick still postspinned, and its held outline survives markers off.plugins/planning/shared/tests/test_server.py TestPrototypePage: 8 OK. The inlined pin helper matches the synced copy.node --checkon proto-pin.js,bash -non the new test script, and a parse of the take script and of host.html's module script.lib/ui-feedback/test_notes_bridge.py: it has local-only TestLoop failures and connection errors in TestGuards. TestGuards fails the same way on the main checkout, and this PR does not changenotes_bridge.py.Only CI can verify:
New
plugins/prototype/skills/explore-directions/scripts/notes-markers-browser.test.sh, which drives the real notes host with playwright-cli. It is the issue's Done-when test. It cannot run on this Windows machine, becausebrowser-test-helpers.sh'smkdir -m 700fails for every browser test. It runs in CI's Test Bash lane. Its steps:elementFromPointfinds the button under the marker.Markers for notes from before the reload do not come back, because the host keeps only the current load's notes. Restoring them is note history, ui-feedback: list a run's notes after reload, with hover and click to show each note's box #17801.
Related
🤖 Generated with Claude Code