Repository navigation
feat(ui-feedback): keep a pick drawn until its note is sent or cancelled - #17812
Conversation
The notes host asks the frame to hold the picked element, marked region or selected text, so its outline stays on the page while the note is written and goes on send, save or cancel. A host that does not ask, such as the planning shared page, keeps today's behavior. Closes #17800 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40a30e2eb6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review (incremental, blocking only): PR #17812No security issues found. I read every hunk of all four files in scope:
What changed
What I checked
This review reported only CRITICAL and IMPORTANT findings, because the lane already reviewed an earlier head of this PR. Spend: none. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only):
|
The frame took the host's hold request only when pick mode turned on, so a text note made before any element or region pick was never held. Read the request on every mode message, and cover the fresh-page text flow in a test. 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. |
… pick is held A pick the host refuses now gets a release, so no stale outline is left on the mockup. While a pick is held the frame swallows page clicks and keys, as the issue's "stays inert" criterion asks. A browser test drives the notes host through a fresh-page text pick, an element pick and a region pick: each stays drawn with the composer open, goes on cancel or send, and a sent note shows as its numbered marker. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o results Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rker check The notes host sends the frame no pins message, so a sent note draws no numbered marker; the test and the changelog no longer claim one. run-code already JSON-encodes the result, so the script returns plain text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The pr-verify verifier failed head What it wrote (25 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
…otes host The notes host now sends the frame a pins message after every list change, so a held pick is replaced by the note's number on send and by D1, D2 on save as draft, as #17800's done-when asks. The browser test checks both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #17800.
Summary
On the notes host, a picked element, marked region or selected text vanished the moment the comment box opened. You wrote a note without seeing what it was about. Now the pick stays drawn until the note is sent, saved as a draft or cancelled, and the note then shows as its numbered marker (a draft as D1, D2 and so on).
Fix
hold: truewith every mode message. The frame helper (lib/ui-feedback/proto-pin.js) then keeps the pick outlined after pick mode ends. That covers a text pick made first on a fresh page.releasewhenever the composer closes, and whenever it refuses a pick. A refused pick therefore leaves no outline behind.pinsmessage with each sent note by its number and each draft as D1, D2 and so on, placed at the box the note recorded. The frame already drawspinsfor the planning shared page; the notes host never sent one before.hold, such as the planning shared page that inlines the synced copy, keeps today's behavior.scripts/sync-shared-copies.sh. Under the ownership split agreed with the Interview Skill Improvements session, the only planning file this PR touches is the syncedplugins/planning/shared/web/proto-pin.js.Verification
node --test lib/ui-feedback/note-model.test.mjs: 138 pass. Five new tests cover held region, element and fresh-page text picks, the page staying inert while held, and a host that does not ask to hold. The held and inert tests fail without the frame change.notes-hold-browser.test.shdrives the real notes host with playwright-cli. It checks a fresh-page text pick, an element pick and a region pick: each is outlined with the composer open, and gone on cancel, send or save. After send, note 1 shows as its marker; after save as draft, the draft shows as D1 beside it. It also checks that a click under a held pick changes nothing. It runs in CI's Test Bash lane. It cannot run on this Windows machine, wherebrowser-test-helpers.sh'smkdir -m 700fails for every browser test, this one included.plugins/planning/shared/tests/test_server.pyTestPrototypePage: OK. The inlined pin helper matches the synced copy.Not covered by a browser test: a refused pick. The fixture has no element the note contract refuses. The host now sends
releaseon each refusal branch.Related
🤖 Generated with Claude Code