Skip to content

fix(planning): add jump-to-newest and collapse older notes in the interview Notes panel - #8944

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-8084-39693111120-1
Oct 21, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-8084-39693111120-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8084

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The interview Notes panel now shows a 'Jump to newest note' button and folds older notes to one line once a thread passes five notes. The newest note stays expanded, and a folded note expands on click. Pinned and unpinned panels share the same render path, so both behave this way.

Not verified

  • The new Playwright checks in tests/ui_a.js were not executed here (the surface-checks harness cannot be run from this lane), so they are unrun.
  • CI's test-bash on the PR is left to the PR's CI.
  • No separate review subagent was run; the diff is small and was reviewed inline. The scripts/check-changelog-fragments.sh path in the issue is covered by the lane's check-changelog-fragments wrapper.

Fix

  • plugins/planning/surface/index.html: renderNotes folds all but the newest note when the thread has more than NOTE_FOLD_AT (5) notes and adds a keyboard-reachable jump button. Folded notes are toggle buttons with aria-expanded and expand in place, with the open state kept in S.noteOpen. New .nsum, .n
  • plugins/planning/surface/tests/ui_a.js: UI check that a short thread has no jump control or folded note. It then sends six notes and, for both unpinned and pinned, checks that an older note renders folded, that the keyboard-activated jump control brings the newest note into the panel viewport, and t
  • .changes/planning/fix-8084-notes-jump-collapse-5a1d7c3e.md: planning patch fragment

Verification

The runner ran each check from the base copy against 72dfc6b:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

Left out: the items under Not verified.

Related

#8084

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed ede1dfa75ea7dd0922692b96146c774058b9e281: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change (plugins/planning/surface/index.html, 72dfc6b → ede1dfa).

The diff adds one CSS rule (.nsum .hl{flex:none;flex-wrap:nowrap}). It also wraps the existing hl header string in a <span class="hl"> inside the folded note button.

  • No new data in the markup. The wrapped hl string is unchanged, and its dynamic parts are still escaped by the same calls as before (esc(who()), esc(fmt(n.at)), esc(key), esc(trunc(...))).
  • Existing rendering path unchanged. receipts(n.seq) and md(n.text) are untouched. This change adds no new injection surface.
  • No manifest, workflow, or instruction-surface changes are in this increment, so none of the manifest or instruction-surface checks apply.

Protected-class register not consulted; it was not needed because no standing instruction was touched.

Comment thread plugins/planning/surface/index.html Resolved
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed ede1dfa75ea7dd0922692b96146c774058b9e281: 0 finding(s), 0 as inline comments.

Incremental review of plugins/planning/surface/index.html since 72dfc6b: no findings.

The change wraps the folded note header in <span class="hl"> inside the .nsum button. It adds .nsum .hl{flex:none;flex-wrap:nowrap} so the header keeps its width and the first-line preview (.nt) truncates.

  • The earlier version emitted the header spans directly into the button. The base .hl rule (line 248) and its descendant rules (.hl .who, .hl .dot, .hl time, lines 249–251) did not match, so the header lost its styles. The wrapper restores them.
  • The unfolded branch already used <div class="hl">. The .nmsg.claude .hl time, .hl .dot override (line 344) now applies to both branches.
  • I checked this by reading the CSS and the template; I did not run the page in a browser.

Manifest items: the diff touches no plugin.json or marketplace.json. The closing-issue criteria were not checked against the PR context file. This increment is a CSS and markup fix with no test surface.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on ede1dfa.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path enqueued this pull request at head ede1dfa75ea7dd0922692b96146c774058b9e281.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(planning): add jump-to-newest and collapse older notes in the interview Notes panel

0 participants