Skip to content

feat(planning): show a question basis as written on the shared interview page - #11052

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11018-40943520209-1
Oct 29, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11018

Summary

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

The shared page's answer card used to print a question's basis as plain text behind its own Basis: prefix, so it read Basis: Checked against: .... The card now renders the basis through the page's markdown renderer (setRich, which calls QuestionShape.markdown) with no added label, inside a <details> element folded behind a "Why" summary, as the 1:1 page folds it. A new browser assertion in ui_claude_proposals.js covers this.

Not verified

  • The shared browser suite (node plugins/planning/shared/tests/ui_claude_proposals.js) and the shared Python suites did not run here: this lane runs no node or python. Left to the PR's CI.
  • Tidy pass 4 (ai-slop:audit fix) did not run its deterministic detector, detect.sh, because this lane allows no Bash beyond the named wrappers. Only the rubric read of the fragment ran, so tidy is recorded as skipped.
  • Build/test step (verify) skipped: the touched files are browser JS/CSS and a node test with no build step, and no test runner can run in this lane.
  • Untracked dotfiles in the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) predate this run's edits and are not part of this change.

Fix

  • plugins/planning/shared/web/app.js: buildCard makes the basis a <details class="vf-basis"> holding a "Why" summary and a vf-rich body. fillCard hides it when there is no basis or the card is compact, and otherwise fills the body with setRich(k.basisBody, a.basis). The Basis: prefix is gone.
  • plugins/planning/shared/web/app.css: adds styles for the Why summary (pointer cursor) and the folded body (top margin).
  • plugins/planning/shared/tests/ui_claude_proposals.js: adds a Q3 with a recommendation, two alternatives and a basis opening Checked against: that carries its own Basis: label. Then asserts, as the owner after revealing Claude's take, that the recommendation card's basis is a closed <details
  • .changes/planning/feat-11018-shared-page-basis-as-written-5b1c0e72.md: patch changelog fragment for planning.

Verification

The runner ran each check from the base copy against 56990e0:

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 56 fragments valid (final run after review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 11 passed, 7 skipped over 4 changed files (final run). An earlier run failed markdownlint MD038 on a code span with a trailing space in the fragment; fixed and re-run.
  • Fresh-context review subagent over the whole diff: one confirmed blocking finding. session.py:2529 rejects a recommendation without 2 or 3 alternatives, so the new Q3 would have failed the open-round. Fixed by giving Q3 two alternatives; I read session.py:2524-2535 to confirm. It also found the .vf-
  • Tidy (code-tidying:tidy-diff): simplify and comment passes found nothing to change; write-for-humans reworded one sentence of the changelog fragment; an ai-slop rubric read of the fragment found no tells.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40943520209

Left out: the items under Not verified.

Related

#11018

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

Copy link
Copy Markdown
Contributor

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

No security issues found. critical-findings: 0

I read all four changed files. None matches a trust control, and the diff changes no plugin manifest.

  • Rendering of a.basis: app.js now passes the answer basis to setRich. That calls QuestionShape.markdown, which question-shape.js:15 describes as "built from elements and text nodes only". It has no innerHTML or href sink, so the basis, which participants can influence, gains no XSS path. setRich already renders other user-authored text on the page.
  • <details> and CSS: The <details>/<summary> markup and the two new CSS rules add no script, URL or network surface.
  • Test and changelog: The test fixture and the changelog fragment add nothing that ships to users beyond the page change.

Spend: none.

@github-actions

Copy link
Copy Markdown
Contributor

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

No blocking or advisory findings on this change.

What I checked (by reading, not running):

  • app.js (buildCard and fillCard): the basis is now a <details class="vf-basis"> with a "Why" summary and a vf-rich body. fillCard calls setRich(k.basisBody, a.basis), which goes through QuestionShape.markdown (app.js:562). The Basis: prefix is gone. Core.el(tag, cls, text) takes the text argument (core.js:429), so the summary element is built correctly. The .vf-basis rule sets no display, so hidden still hides the element.
  • The compact case still hides the basis, as before. Re-renders reuse the same element, so a user's open or closed state is kept.
  • Nothing else in plugins/planning reads k.basis.textContent or the old Basis: prefix.
  • The new test uses a BASIS fixture that opens Checked against: and carries its own Basis: label. It asserts the card is a closed <details> with a "Why" summary, that the body equals the fixture, and that "Basis:" appears exactly once. The assertions match what the code renders.

Closing issue #11018 acceptance criteria:

  • Renders basis through QuestionShape.markdown with no added Basis: prefix: met.
  • Folded behind a toggle, as the 1:1 page folds it behind "Why": met.
  • A shared browser test asserts a Checked against: basis renders without a doubled Basis: label: met, in ui_claude_proposals.js.
  • Shared Python suites and touched browser suites pass: not confirmed by me. The PR says they were left to CI, so that criterion stays open until CI reports.

Manifest items: the diff touches no plugin.json or marketplace.json, so no manifest lines apply. The changelog fragment's bump: patch fits a display fix.

Spend: none beyond the normal lane runs, and no hold is warranted. The PR description's claims about its own verification are author-claimed and unverified by me.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 56990e03552fd1f8b5d7e0444833c849e61a2e0a.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit b5470bf Oct 29, 2026
54 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11018-40943520209-1 branch October 29, 2026 21:30
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.

feat(planning): show a question basis as written on the shared interview page

0 participants