Skip to content

fix(planning): show a scroll cue on the interview Decide list and fit long Rec rows - #11707

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11649-41240733676-1
Oct 31, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11649-41240733676-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11649

Summary

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

The interview page's Decide list (#choices) now fades its top or bottom edge with a CSS mask while rows are hidden past that edge, and shows no mask when every row is in view. The classes are kept current by a scroll listener, a ResizeObserver and each render. The Rec row's text now clamps to 4 lines. When the clamp cuts the text, a Read all button opens the whole recommendation in a modal dialog (#recDlg). Design choice and basis: the issue allowed a clamp with a way to expand it or a taller list. A taller list cannot fit a 700px Rec row beside a side panel at 720px, and expanding the row in place would still overflow a 186-206px list. The dialog is up to 560px wide, so a 500-character recommendation fits in it unscrolled at any size. The dialog sits outside main.detail, so the #7970 rule that the recommendation text appears once in the question pane still holds. A new ui_page.js block at 1280x720 asserts all of this.

Not verified

  • The surface browser suites (surface-page.test.sh and the others through surface-checks.sh with playwright-cli) were not run here, since the lane runs no test runner. The new ui_page.js checks and the existing ones are left to the PR's CI.
  • Tidy pass 5 (ai-slop:audit fix) was skipped. The lane's Bash rule does not allow its detect.sh or digest-guard.sh scripts. A manual read of the fragment found no em dashes, flagged vocabulary or filler. Pass 4 used the bundled default style set, not a searched house guide.
  • Low-severity review note left unfixed: if a poll re-renders the answer while #recDlg is open, closing the dialog cannot return focus to the replaced Read all button, and the dialog keeps the text from when it opened.
  • The Decide list was not measured again in a real browser, so the issue's 206px and 186px list heights and the fit of a 4-line Rec row were not re-measured here. The new browser checks assert the fit in CI.

Fix

  • plugins/planning/surface/index.html: The Rec row clamps to 4 lines, and cue-up/cue-down mask classes are added on .choices. A hidden Read all button (#recAll) follows the Rec row, and fitChoices() sets the button's visibility and the cue classes on render, on scroll and through a ResizeObserver. A n
  • plugins/planning/surface/tests/ui_page.js: New phase-1 block in a second tab at 1280x720. An api/state route gives Q1 a 500-character Rec and four long alternatives, and makes Q2 withheld with no alternatives. Four new checks: (1) a list with hidden rows shows a mask, and the mask changes when scrol
  • plugins/planning/surface/surface-checks.sh: The page group's CHECKS count goes from 118 to 122 for the four new checks.
  • .changes/planning/work-resolve-issue-issue-11649-3e9b7d21.md: New patch fragment under Fixed.

Verification

The runner ran each check from the base copy against 311008f:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: All 17 changelog fragments valid (ran after the edits, after tidy, and after the review fixes).
  • .lane/checks/bin/check-affected: 12 passed, 6 skipped over 4 changed files (ran after the edits, after tidy, and after the review fixes).
  • Fresh-context review subagent over the whole diff: found the .tbtn.small specificity that blocked the 44px touch rule, a side-panel check that measured the same unpinned overlay twice, the tab's errors going uncounted, and a no-fade check that would also pass on an empty list. All four are fixed. It
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41240733676

Left out: the items under Not verified.

Related

#11649

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

Copy link
Copy Markdown
Contributor

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

No blocking findings. I read the full diff, the PR context, and the surrounding CSS in plugins/planning/surface/index.html. I ran no browser or test suite, so the new ui_page.js checks are unrun and the CI result is the evidence for them.

Closing issue #11649

  • "At 1280x720, a Decide list with hidden rows shows a scroll cue, and one with none hidden shows none, asserted in a surface browser test": met. The cue-up and cue-down mask classes are set in fitChoices() on each render, on scroll, and through a ResizeObserver. ui_page.js asserts both cases (a mask that changes with scroll position, and none for the withheld Q2 with at least one row).
  • "A Rec row at the 500-character cap can be read whole without scrolling inside the row": met. The row clamps to 4 lines, and a Read all button opens the full text in #recDlg. A check asserts the dialog shows the whole text, needs no scrolling, and closes on Escape.

Checked and fine

  • fitChoices() can only reach a null .t when #recAll is also absent, because both come from the same Rec row, so the guard holds.
  • The hidden attribute on #recAll works, since .tbtn and .recall set no display.
  • The .choice .t base rule keeps display:-webkit-box, so the 4-line clamp applies. Only the display:block override was removed.
  • .tbtn.recall gets the 44px touch target in the mobile block.
  • The ResizeObserver also fires on width changes, so Read all stays correct when a side panel pins and the text re-wraps.
  • dialogOpen() replaces the hard-coded dialog list at the paste, Ctrl+Enter and keydown sites, so the new dialog gets the same guards.
  • The surface-checks.sh page count goes from 118 to 122, which matches the four new ok(...) calls.
  • The changelog fragment is a valid patch entry under Fixed.
  • No plugin.json or marketplace.json change, so there are no manifest lines.

Known and not a finding: the PR body notes that a poll re-render while #recDlg is open leaves the dialog with the text from when it opened, and focus cannot return to the replaced button. This only affects an open modal during a state change and does not break either acceptance criterion.

Unverified: the new ui_page.js checks and the existing suites, as the PR body says.

Spend: the change adds one second-tab browser block to an existing CI suite. It uses prepaid and subscription resources only, with no billing change and no hold.

@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found.

critical-findings: 0

I read all four changed files: the UI change in plugins/planning/surface/index.html, its browser checks, the check-count bump in surface-checks.sh, and the changelog fragment. I did not run the browser suites.

  • New innerHTML use: openRec() sets #recBody from lineHtml(c.rich || c.text). That is the same helper the Decide rows already use for the same field. It builds nodes through QuestionShape.inline and serialize (index.html:702) rather than concatenating raw strings, so this adds no new injection surface.
  • Title attribute: The row's title still goes through esc(c.text), unchanged.
  • Dialog handling: dialogOpen() replaces three hard-coded .open checks with a dialog[open] query. Paste, Ctrl+Enter and the key handler therefore treat the new #recDlg as modal. This only tightens input handling.
  • Trust controls: The diff touches no trusted-path file, workflow, token scope, kill switch, merge hold, manifest or instruction surface. The skip gate does not apply to a manifest or trust-control change, and none is present.
  • Test code: The ui_page.js route rewrites /api/state responses only inside the test's own Playwright tab.
  • Spend: The change has no cost or billing effect. It adds four browser checks, which use existing CI minutes and no new paid resource.
  • PR context: The PR description contained no embedded instructions.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 311008f59d4379468d75e6e68b37815bacf3e486. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 311008f59d4379468d75e6e68b37815bacf3e486.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 24d41a2 Oct 31, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11649-41240733676-1 branch October 31, 2026 21:36
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 24d41a242efca42ee9c1f920750d61d1907171e4; later checks count it verified from this comment.

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): show a scroll cue on the interview Decide list and fit long Rec rows

0 participants