Skip to content

feat(planning): add search, jump-to-question and URL hash to the interview page - #8634

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-5915-39433161557-1
Oct 20, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-5915-39433161557-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #5915

Summary

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

The interview page's rail now has a search box that matches id, short title and title: words filter the rail, and a number then Enter opens that question. '/' focuses search and 's' focuses the Show filter, per the recorded decisions. The URL hash selects a question on load and on hashchange, and select() replaces the hash. Each rail button's accessible name is now id, short title and state, with the chips and preview moved to its description. This run resumed an earlier run's commit and added one fix from its review: a search jump now opens the group that holds the question.

Not verified

  • The browser UI tests (surface-checks.sh --part ui-c) were not run here, because playwright-cli is unavailable and Bash was limited to the named wrappers. The new ui_c.js checks and the group-expand fix are unexecuted; the PR's CI test lane runs them.
  • cant-fail-scan on ui_c.js examined 0 files (no adapter claims it), so the scan gave no result.
  • The issue's checks that CI runs (the planning surface test suite passing) are left to the PR's CI.

Fix

  • plugins/planning/surface/index.html: search box in the rail toolbar, '/' to search and 's' for Show, search narrowing within Show with a note when Show hides matches, hash read/write (replaceState), aria-label plus aria-describedby on rail buttons, and the search jump opening the target's group
  • plugins/planning/surface/tests/ui_c.js: 10 new UI checks covering the keys, search, jump, hash write, hashchange, unknown hash, accessible name and description, and loading with #Q3
  • plugins/planning/surface/surface-checks.sh: ui_c check count in the SKIP line raised to 171
  • .changes/planning/issue-5915-search-jump-9f3c2a7e.md: minor fragment for the planning plugin

Verification

The runner ran each check from the base copy against 7a62f55:

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

The run reports:

Left out: the items under Not verified.

Related

#5915

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #8634 (head ddd49d0)

No security issues found.

I reviewed the whole diff: the plugins/planning/surface/index.html changes, the test and check-count edits, and the changelog fragment. The PR adds a search box, jump-to-question and URL-hash selection to the interview page. The main risk is that the new code feeds user-controlled text (the search box and location.hash) into innerHTML templates. I traced each path:

  • Search text in the empty-state message: index.html wraps it as esc('"' + S.search.trim() + '"') before it goes into list.innerHTML.
  • Search-miss toast: searchJump builds the message with JSON.stringify(...). renderToast then sets innerHTML = esc(S.toast) + ..., so the text is HTML-escaped at the sink.
  • URL hash: hashId() does not use the hash as markup. It only returns an id if it case-insensitively equals a key already in Q, and returns null otherwise. The selected id is written back through history.replaceState as location.pathname + location.search + "#" + encodeURIComponent(id). That is a same-origin path, so there is no open redirect and no javascript: vector.
  • Rail button attributes: the new aria-label, aria-describedby and id="qd-…" values are all built with esc(). esc covers & < > " ', so attribute breakout is not possible. The fqd- rewrite in the Map panel only renames id prefixes.
  • hiddenByShow note: it is set with textContent, from a number plus the <option> text.
  • Other new code: localStorage writes (lsSet) and the hashchange listener only call existing selection logic (goTo/select), which already validates ids against Q. No new network, auth or credential surface is touched.

The diff deletes or softens no instruction surface (CLAUDE.md, rules, skills, hook allowlists), so the exception-register lens does not apply. No workflow or Actions files changed.

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

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #8634 (planning interview page: search, jump and URL hash)

No findings. I read the full diff and the surrounding code in plugins/planning/surface/index.html and tests/ui_c.js. I did not run any code or tests. The review is static.

Closing issue #5915.

  • Search and jump: the rail search box matches id, short title and title. Enter on a number opens that question (100 opens Q100). Words filter the rail. See searchTarget/searchJump and matchesSearch/passes.
  • URL hash: it is read on load and on hashchange, and select() writes it with replaceState. An unknown id leaves the selection alone. See hashId, the load path and the hashchange listener.
  • Accessible name: each rail button's aria-label is id, short title and state. The chips and preview moved into the aria-describedby target. See railItem.
  • Recorded decisions:
    • / focuses search and s focuses Show.
    • Search narrows within Show, and the rail says when Show hides matches.
    • The hash is replaced, not pushed.
  • Tests: new UI checks cover search, hash load and the accessible name, as the acceptance criteria require.

Checked and found sound by reading the code:

  • The Map panel gets its own description ids (fqd-), so the rail and the Map panel never repeat an id.
  • Each place that resets the Show filter (goTo, the stale-save jump, the pending and review buttons) also clears the search, so a reveal is not blocked by search text.
  • s and / are ignored while a text field is focused.
  • Every LABEL[st] lookup in the new accessible name has a matching key.
  • CHECKS[c] rises from 162 to 171. That equals the 9 new ok( calls in ui_c.js; the / check was edited, not added.
  • The mid-test goto(base + "?load=1#Q3") in ui_c.js forces a full reload. A fragment-only change would not, so the query string is needed.
  • Later goto(base) calls drop the hash and so are real navigations.

Not verified.

  • I could not run the browser UI tests. The new ui_c.js checks and the group-expand behavior are unexecuted by me.
  • The checks assume Q1 is Accepted at that point in the run and that a P1 question exists. I cannot confirm either without running them. CI's ui-c lane will show whether they hold.
  • The PR's own verification claims (check-affected, the fresh-context review subagent, the 171 count) are author-claimed and I did not independently run them.
  • The embedded text in the PR context asks for nothing outside the review's scope.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: risk MED at head ddd49d0f6e39d221dd4143f65634a990d8c51376. Only LOW merges without a human. This pull request waits for one.

MED evidence-unbound:claude-review: not bound: no-run
MED evidence-unbound:claude-security-review: not bound: no-run

Whole review requested at head ddd49d0f6e39d221dd4143f65634a990d8c51376 at 2026-10-20T14:14:14Z: an incremental review cannot clear the findings below.

@melodic-automation-lanes
melodic-automation-lanes Bot marked this pull request as draft October 20, 2026 14:14
@melodic-automation-lanes
melodic-automation-lanes Bot marked this pull request as ready for review October 20, 2026 14:14
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 9174f97 Oct 20, 2026
67 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-5915-39433161557-1 branch October 20, 2026 14:28
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.

planning: add jump-to-question and search for large interviews

0 participants