Repository navigation
feat(prototype): add the notes side panel with per-note status and replies - #16322
Conversation
…plies The notes host page's panel keeps drafts (save, edit, delete, send one or all), shows each note's status (draft, sent, delivered to Claude, handled) and the session's reply from the bridge's /events frames, announces status changes in a polite live region, hides and shows with its dock button or N, and returns the focus to the control that opened the panel or the editor. Every note and reply string still renders through textContent. No bridge change: read_state and apply already carry delivered, handled and the reply. context/control-panel.md gains one sentence: the notes panel docks outside the mockup's frame, so the control panel keeps its place. Co-authored-by: Claude Opus 5.5 <[email protected]>
Pre-registration: before/after eval of the notes side panel (picker slice S4)Posted before any run. What is measured. This PR adds one paragraph to Arms
Frozen-grader check. Before the launch and again before any score is read, this prints nothing:
Set and runs (model
Validity and exclusions, decided before any score is read
Decision rule
Power. The two Outcome actions
Cost (list-price estimate). About 0.8 USD per run: about 60 USD, up to 120 USD with one relaunch. Ceiling 45 USD per invocation. |
…lice The sentence that places the control panel in the dock lands with the Controls tab, when it is true. This slice changes no skill text. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Pre-registration withdrawn before any run. (This comment was first posted as an unfinished draft and then edited.) The pre-registration above measured one paragraph added to At this head the PR changes no skill, context or reference text and no eval case or grader:
No eval invocation was launched and no score exists. With nothing left to measure, |
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: 88eb812ff6
ℹ️ 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): no findingsI read every hunk of the 5 files changed since Host page (
Test scripts
Scope checks
critical-findings: 0 |
The notes host page posts one note at a time, so a second press of Send or Send all drafts while a post is in flight sends no copy. Sending a draft from the list closes the editor that was open on it, so Save draft cannot turn a sent note back into a draft. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
claude-review reviewed Code review, incremental (0fa9c9e → 4bfe636): closing the editor on Delete, and keeping a refusal visible after Send all draftsNo findings. This lane had already reviewed an earlier head, so this pass looked for blocking findings only. What I read: every hunk of the 5 files in scope:
I also read the canonical What the push fixes:
Earlier findings: all three threads (editor and list, double post, refusal hidden) are resolved, and the owner's replies state the fixes. The code under them matches those replies, so I raised nothing again. Other checks:
No verifier subagent ran, because there was no candidate to verify. |
…l visible Deleting a draft closes the editor that was open on it, so Save draft cannot bring it back. When Send all drafts stops on a refused note, the status keeps the session's reason beside the notes that were sent. Co-Authored-By: Claude Fable 5.2 <[email protected]>
No related issue: slice S4 of the prototype feedback picker plan
Summary
The notes host page's panel now keeps drafts, shows each note's status and the session's reply,
announces status changes to a screen reader, hides and shows from a dock button, and gives the
focus back to whatever opened the panel or the note editor.
Fix
lib/ui-feedback/host.html, canonical;plugins/prototype/notes-bridge/host.htmlis its synced copy):
listed with status
draftand Edit, Delete and Send buttons; Send all drafts shows while anydraft exists. Drafts live only on this page and stay out of Copy all notes until sent; edit and
delete apply to drafts only (a sent note is in the bridge's log, and no withdraw route is added).
draft,sent,delivered to Claudeorhandled, andthe reply, from the
/eventsstate frames the page already read. A new polite live region(
#changes) announces each change of a note this page sent ("Note 1 handled, with a reply.");the first frame after a send announces nothing.
#dock(Hide notes / Show notes, or N) collapses the panel to its button and gives theframe the room;
aria-expandedfollows. Opening moves the focus into the panel; closing leaves iton the dock button.
opened it: Pick, Mark a region, Note on selected text, or the draft's Edit button. A list rebuild
keeps the focus on the same draft button by a stable key; deleting a draft moves the focus to the
list heading.
textContent.NotesHub.read_state(
lib/ui-feedback/notes_bridge.py:196-216) sendsdelivered,handledandreplyper seq,applyisview.cmd_apply(notes_bridge.py:505,lib/session-bridge/view_bridge.py:275), andthe watcher's wait stamps
deliveredAt(lib/session-bridge/session_bridge.py:404-408). NoPython unit test was added because no Python changed; the existing
test_a_note_is_logged_with_a_seq_and_shown_in_the_state_frameandtest_a_note_sent_with_no_watcher_is_listed_by_status_until_handledcover that path.(
git diff --stat origin/main...HEAD -- plugins/prototype/context plugins/prototype/skills/*/SKILL.md plugins/prototype/skills/*/reference plugins/prototype/evalsprints nothing), so this slice carries no before/after eval; the
pre-registration
was withdrawn before any run.
plugins/prototype/skills/explore-directions/scripts/notes-panel-browser.test.sh(with
-take.jsand-wait.js), SKIP withoutplaywright-cli,python3orcurl..changes/prototype/feat-prototype-feedback-s4-5b9e2d71.md(minor). Only theprototype plugin carries
host.html, so no other plugin needs one.0fa9c9efc4,4bfe636e47; five findings, two reviewers, all valid):is in flight sends no copy; Save draft and Delete wait as well.
cannot turn a sent note back into a draft or bring a deleted one back.
notes that were sent.
notes-panel-browser-take.jsgains a double press of Send with the editor open and aDelete with the editor open; new
notes-panel-browser-refuse.jsanswers the first post 200 andthe second 400. Each new check failed on the page before its fix (a second note appeared; the
editor stayed open; the status read
Note 99 sent.). The suite now reports 29 PASS.Reused, and what is new
Reused:
problems()(host.html:68, fromnote-model.mjs) for every draft and send;noteFromand
where(host.html:113,:134) for the drafts' notes and labels;render'stextContentitem builder (
host.html:267); the/eventssubscription (host.html:413); the bridge'sread_state,applyand watcher as listed above. The test repeats the scaffolding ofharness-browser.test.sh(fixture build,pw,finish) andnotes-kinds-browser.test.sh(therun-code result parser), as earlier slices' tests did.
No new copy of a rule, limit, schema or helper was written: the page sets no length limit of its
own (the textarea has no
maxlength; the schema'stext.maxLengthis checked byproblems()), noenum, no validator, no server, no token scheme and no untrusted-data framing.
Deviations from PLAN.md's S4 text
control-panel.mdgains the sentence placing the control panel in the dockapplystep that moves a note to handlednotes-bridge.sh applyVerification
bash plugins/prototype/skills/explore-directions/scripts/notes-panel-browser.test.sh:notes-panel-browser: all passed(24 PASS). It covers: N hides the panel with the focus on itsbutton, and the frame widens; N shows it with the focus on Pick; a note whose text starts
<img src=x onerror="window.__xss=1">saved as a draft shows that text literally, noimgunder#notes; Edit opens on the draft's text and saves in place; a second draft is deleted and thefocus moves to the list heading; Esc closes the editor back to Edit; Send gives
sent; afterwatch.shtakes the note the page showsdelivered to Claudeand the live region saysNote 1 delivered to Claude.; afternotes-bridge.sh applyof a reply<img src=y onerror="window.__xss=2">Moved it to the top.the page showshandled, the replyas that literal text,
Note 1 handled, with a reply., noimg, andwindow.__xssundefined.textContentreplaced byinnerHTMLfor the note text and the reply inthe plugin copy, it reports
notes-panel-browser: 6 failed(markup shown as text, no element, nohandler, reply text); copy restored by the sync script afterwards.
harness-browser.test.shharness-browser: all passed;relocate-browser.test.shrelocate-browser: all passed;notes-kinds-browser.test.shnotes-kinds-browser: all passed.scripts/sync-shared-copies.sh --check:All 904 registered copies match their canonical sources.;--check-bump origin/main:1 canonical source(s) or their copies changed vs origin/main; every carrying plugin bumped its version.scripts/check-html-assets.sh:All registered rendered-view HTML assets lint clean; no unregistered assets.scripts/check-changelog-fragments.sh --check: valid.scripts/check-affected.sh --tests:check-affected: 17 passed, 2 skipped over 7 changed files.shellcheckon the new test: clean.python3 -I scripts/check-vocabulary.py: no lines.scripts/check-test-tmp-cleanup.sh --check: every temp-folder user removes it..githubsuite; scored evals (no skill text or eval case changes).Manual check list: tab order and labels of the Notes panel
With the panel open and the mockup ready, Tab past the mockup's frame (it comes first in the page)
should reach, in order:
Hide notes (N)(button,aria-expanded="true", controls#panel)Pick an element (P)(toggle button,aria-pressed)Mark a region (R)(toggle button,aria-pressed)Note on selected text (T)Your note(textarea, labeled),Send,Save draft,CancelNotesheading labels the list; the heading takes focus only by script, after adelete): for each draft,
Edit,Delete,SendSend all drafts(only while a draft exists)Copy all notesPaste this block to Claude(read-only textarea, labeled)Check also: the panel is a landmark named
Notes(aside aria-label);#statusand#changesare polite live regions; collapsed, only
Show notes (N)remains and is reachable; the per-draftbuttons say
Edit,Delete,Sendwithout naming their note (a screen-reader user hears thenote's text just before them in the list item).
Related
🤖 Generated with Claude Code