You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ui-feedback: list a run's notes after reload, with hover and click to show each note's box #17801
The notes host's Notes list lives only in the open page. On load it fetches the schemas, the token and the page (lib/ui-feedback/host.html, the Promise.all of /note.schema.json, /controls.schema.json, /api/token, /api/page), never the notes already saved in the run directory. A reload empties the list, though every sent note is still on disk.
Change
On load, the host lists every note and draft of the current run (one prototype run directory), oldest first, numbered as their markers are.
Hovering a list row draws that note's box or outline on the page; moving off clears it.
Clicking a row restores the variant, state and content set the note was taken on (the existing uiFeedbackRelocate replay in proto-pin.js), scrolls to it and keeps its box drawn until the reviewer clicks elsewhere or picks another row.
History is per run: notes from earlier prototype runs point at pages that no longer exist.
Basis: the Vercel toolbar lets a comment be selected "wherever it appears on the page, or by selecting the thread associated with the comment in the Inbox" (Vercel: Managing comments); Pastel steps through comments with J/K (Pastel keyboard shortcuts). Hover-to-highlight from the list is the owner's call (interview 2026-11-20); no fetched page documents it.
Done when
A test sends two notes, reloads the host, and finds both rows; hover and click draw the right box; a click elsewhere clears the clicked one.
The bridge serves a run's notes to the page with the existing token check, and only that run's notes.
Part of the owner's feedback-tool fixes, needed before the /architecture:improve report prototype review (#17798).
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the ui-feedback notes host page (lib/ui-feedback/host.html), the bridge endpoint that serves notes, and proto-pin.js replay; read by reviewers using the feedback tool.
Reversible: yes; revert the change, since the notes on disk are only read, never altered.
Open questions: none
I understood this as: after a host reload, list every note and draft of the current prototype run (oldest first, numbered like their markers). Hovering a row draws that note's box, and clicking a row replays its variant/state/content, scrolls to it and keeps the box drawn until the reviewer clicks elsewhere. The bridge serves only that run's notes behind the existing token check. The intended outcome and done-when are exact, so no owner decision is needed. I found no open duplicate and no merged pull request that already covers this.
Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.
melodic-automation-lanes commented on Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: After a reload the host lists the run's sent notes from a new token-checked bridge endpoint, with hover drawing and click replaying and pinning the note's box.
Drafts are never sent to the bridge, so they are not on disk. Should a reload list only sent notes, or should drafts also be persisted (a draft endpoint or localStorage) so they can be listed?
RECOMMENDED: List only sent notes from the run's log; state that drafts stay page-local and are lost on reload, and amend the issue text to say so. Basis: lib/ui-feedback/host.html:13 (a draft stays on this page until sent) and lib/ui-feedback/notes_bridge.py:269 (the log is written only by record())
Which endpoint shape serves the notes: a new GET /api/notes, or extending the SSE state frame?
RECOMMENDED: Add a same-origin, token-checked GET /api/notes that returns the run's events (seq, at, note) from actions.json, with a test that it returns only that run's notes. Basis: lib/ui-feedback/notes_bridge.py:247 (read_state sends only seq, delivered, handled and reply, no note bodies) and lib/ui-feedback/notes_bridge.py:298 (existing GET routes)
The same code exists under lib/ui-feedback and plugins/prototype/notes-bridge; which is the source of truth and must both be changed?
RECOMMENDED: Change lib/ui-feedback as the source and update the plugins/prototype/notes-bridge copy so the existing sync check passes. Basis: plugins/prototype/notes-bridge/notes_bridge.py:300 and scripts/check-html-assets.sh
What defines the current run, and what should a note without a locatable box (for example one whose element is gone) do on hover or click?
RECOMMENDED: The run is the bridge's data dir actions.json, so no run filter is needed. A note that cannot be relocated shows a not-found message in the row and draws no box. Basis: judgment
Sources read
lib/ui-feedback/host.html:520: on load the host fetches /note.schema.json, /controls.schema.json, /api/token and /api/page only, never saved notes
lib/ui-feedback/host.html:103: the page's notes are held in page memory as {id, note, where, seq, draft}
lib/ui-feedback/notes_bridge.py:247: read_state returns seq, delivered, handled and reply per note, with no note content
lib/ui-feedback/notes_bridge.py:291: GET routes are /, static files, /api/page and /api/token; there is no notes read route
lib/ui-feedback/proto-pin.js:198: window.uiFeedbackRelocate exposes replay, findQuote and setControls
plugins/prototype/notes-bridge/notes_bridge.py:300: a second copy of the bridge under the prototype plugin
To answer, post a comment that starts with this line:
**Decision recorded.** <answer>
Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.
Update: #17812 now has the notes host send pins after every list change, so sent notes and drafts draw markers. This issue no longer has to add them. It only needs to list and re-show notes after a reload.
Scope addition from #17802 (PR #17847): #17802 asked that "a marker is clicked only to open its note", but the host had nothing to open until this issue builds the notes list. #17847 ships the show/hide toggle with markers that never take clicks. This issue takes the rest: clicking a marker selects its row in the notes list, the same as clicking the row. Markers still never take clicks meant for the page outside a pick mode.
Activity
github-actions commentedon Nov 21, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the ui-feedback notes host page (
lib/ui-feedback/host.html), the bridge endpoint that serves notes, andproto-pin.jsreplay; read by reviewers using the feedback tool.Reversible: yes; revert the change, since the notes on disk are only read, never altered.
Open questions: none
I understood this as: after a host reload, list every note and draft of the current prototype run (oldest first, numbered like their markers). Hovering a row draws that note's box, and clicking a row replays its variant/state/content, scrolls to it and keeps the box drawn until the reviewer clicks elsewhere. The bridge serves only that run's notes behind the existing token check. The intended outcome and done-when are exact, so no owner decision is needed. I found no open duplicate and no merged pull request that already covers this.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed
- [ ]criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.melodic-automation-lanes commentedon Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: After a reload the host lists the run's sent notes from a new token-checked bridge endpoint, with hover drawing and click replaying and pinning the note's box.
Related work
Open questions
RECOMMENDED: List only sent notes from the run's log; state that drafts stay page-local and are lost on reload, and amend the issue text to say so. Basis: lib/ui-feedback/host.html:13 (a draft stays on this page until sent) and lib/ui-feedback/notes_bridge.py:269 (the log is written only by record())
RECOMMENDED: Add a same-origin, token-checked GET /api/notes that returns the run's events (seq, at, note) from actions.json, with a test that it returns only that run's notes. Basis: lib/ui-feedback/notes_bridge.py:247 (read_state sends only seq, delivered, handled and reply, no note bodies) and lib/ui-feedback/notes_bridge.py:298 (existing GET routes)
RECOMMENDED: Change lib/ui-feedback as the source and update the plugins/prototype/notes-bridge copy so the existing sync check passes. Basis: plugins/prototype/notes-bridge/notes_bridge.py:300 and scripts/check-html-assets.sh
RECOMMENDED: The run is the bridge's data dir actions.json, so no run filter is needed. A note that cannot be relocated shows a not-found message in the row and draws no box. Basis: judgment
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 21, 2026
Update: #17812 now has the notes host send
pinsafter every list change, so sent notes and drafts draw markers. This issue no longer has to add them. It only needs to list and re-show notes after a reload.kyle-sexton commentedon Nov 21, 2026
Scope addition from #17802 (PR #17847): #17802 asked that "a marker is clicked only to open its note", but the host had nothing to open until this issue builds the notes list. #17847 ships the show/hide toggle with markers that never take clicks. This issue takes the rest: clicking a marker selects its row in the notes list, the same as clicking the row. Markers still never take clicks meant for the page outside a pick mode.