Skip to content

feat(planning): one-column question screen with a Claude section and aligned options - #8370

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/shared-question-layout
Oct 19, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/shared-question-layout

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner-approved design from the live shared-interview session (spec PR 2; follow-up item 12)

Summary

The shared interview page's question screen becomes one column. Claude's answers were cramped in a half-width pane or a tab, and the "Choose this" buttons sat at uneven heights. The owner approved this layout from a mockup.

Fix

  • The Answers | Claude split and its tabs are gone at every width. Order: question, references, options, answer box, Pass line, Answers (answer-first unchanged), then a full-width "Claude on this question" section.
  • The Claude section starts folded with new and running counts, and opens on its own once when you have a new answer on the question.
  • Claude cards show " asked", the ask, a soft divider, "Claude", the answer; ask and answer are the same size.
  • Option cards pin "Choose this" to the bottom and always show the picks line ("No picks yet"), so buttons align across a row.
  • The page's end stays clear of the chat button; the phone placeholder fits.
  • core.js: a taken-down result no longer stays on other pages until reload (a shared default object was reused).

Verification

  • ui.test.sh: 26 suites, 0 failed; new ui_question_layout.js 25 passed (split gone, Claude folded then opening on an unread result, aligned Choose buttons at 1440 and 1024, equal ask/answer font size, nothing under the chat button, phone placeholder fits).
  • python3 -m unittest discover -s plugins/planning/shared/tests: Ran 883 tests, OK.
  • Left out: a real iPhone (WebKit cannot launch on this host; phone checks run in Chromium).

Related

N/A

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits October 18, 2026 22:29
…aligned options

Layout A from the approved question-screen spec, client only. The
Answers | Claude split and its tabs are gone at every width: the question,
references, options, composer and Pass line, then the Answers (Answer first
unchanged), then a full-width "Claude on this question" section.

The Claude section folds to a head with "N new" and answer, running and
waiting counts, opens by itself once when this person has a new result on
the question (their request's "is done" notice unread, or someone else's
result since their last visit), and opens with the Ask form. Opening pushes
the page and scrolls the section's head into view. Ask Claude sits in the
head; the thread list and Ask form are unchanged.

Claude cards use the soft rule: "<Name> asked", the ask, a 1px line, then
"Claude" and the answer, both at 14px. A waiting or running request shows
its status under "Claude", with a progress bar while it runs. Every control
on the cards stays; a result new to the viewer carries a New chip.

Option cards are a flex column with the Choose row pinned to the bottom and
the foot always taking its row ("No picks yet" at zero), so Choose buttons
line up across a grid row; the Choose row no longer wraps Undo above 720px,
and "Something else..." keeps the room of the Lock row. Phones unchanged.

core.js built view.research on the shared DEFAULTS object, so a question
whose last result was taken down kept it on every page until reload. The
old Claude tab hid that; the new ui_connect check caught it.

Tests: ui_question_layout.js (new) checks no split or tabs at 1440, 1024
and 390, the folded default and the open-on-unread, the soft-rule labels,
1px rule and equal font sizes, the running progress line, and Choose tops
equal within 1px at 1440 and 1024 before and after picking. ui_acceptance,
ui_connect, ui_proto and align.js now open the section instead of a tab.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he phone placeholder

The question scroll area's bottom padding is the chat button's 52px plus
its 20px offset plus 16px (44 + 8 + 16 at short heights), so the last
control in the Claude section scrolls out from under it. Phones, where the
button sits in the tab bar, keep their padding.

On a phone the disabled composer's placeholder is one 44px line and was
cut mid-word; there it reads only "Pick an option first" (or "Save your
ranking first", "Pick first"). Wider screens keep the full sentence.

Tests: ui_question_layout.js checks, at 1440x900 and 390x844 scrolled to
the bottom, that the chat button intersects no control in the Claude
section, and that the 390 placeholder fits its line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d items clear

The view started from the shared DEFAULTS objects, so answers, locks and
suggestions kept keys the next snapshot no longer had: a lock stayed shown after
the owner unlocked. Each snapshot now clones DEFAULTS. A browser check unlocks on
one page and expects the other to lose the lock block without a reload.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 19, 2026 02:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T02:43:41.094074Z 423ce42 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found in PR #8370 at head 423ce42.

The PR changes the planning web UI (app.js, core.js, app.css), its test and harness files, and a changelog fragment. I searched the added lines for injection and trust-boundary sinks:

  • DOM and script sinks: innerHTML, insertAdjacentHTML, outerHTML, document.write, eval, new Function and postMessage.
  • Navigation: new href/src assignments and location changes.
  • Network: new fetch calls.

Results:

  • The UI is built with element helpers that set text content, so the added code does not introduce an HTML-injection path.
  • The only new href match is a read-only selector, .vf-clsec :is(button, a[href], ...), used to measure element rects. It assigns nothing.
  • The PR adds no new fetch endpoints, token handling or session-secret handling.
  • The link rendering that sets a.href with rel="noopener noreferrer" in app.js is existing code, not part of this diff.
  • The test files, ui-timings.txt and the changelog fragment are not security-relevant.
  • The diff does not delete or soften any standing instruction, so the instruction-surface check does not apply.

Limitation: I could not filter the full diff in the shell, so the review of app.js and core.js rests on sink searches rather than a line-by-line read.

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #8370 (one-column question screen)

I found no blocking issues and posted no inline comments. I read the whole diff (.claude-lane/pr.diff, 11 files) and the PR context. I ran no tests or browser suites, so the PR's test counts are author-claimed and unverified by me.

Checked

  • Removed tab and split code: a search of plugins/planning found no remaining use of threadTab, .vf-splittabs, .vf-split, .vf-thpane, tabTh, tabAns, thHead, wideOff or the old "No one has chosen this yet" text. The only hits are the two tests that assert the elements are gone.
  • Unread notice matching: doneUnread matches the / is done\.$/ suffix. That is the title session.py:3244 sends ("Your request on question … is done."), so the two agree.
  • Auto-open once: renderThread now returns the count of new results. The section opens by itself only when that count is above zero and the question has no saved open or fold choice (!ui.clOpen.has(q.id)). Folding it by hand therefore sticks. showResult, qref.onclick and renderAsk open it explicitly where an action needs it.
  • Hidden elements: the new .vf-qa-ask and .vf-qa-ans rules set display: grid and could override the hidden attribute. The diff handles both (.vf-qa-noask and .vf-qa-ans[hidden]).
  • Option footer on phones: data-empty replaces hidden, and only phones (≤720px) hide an empty foot. A non-empty foot is shown whenever results are visible, so no mixed-row misalignment arises. An empty foot only occurs in answer-first mode, where every card is empty.
  • core.js fix: structuredClone(DEFAULTS) matches how DEFAULTS is already cloned at core.js:340, 1127 and 1144.
  • Test registration: ui.test.sh discovers ui_*.js by glob. The new ui_question_layout.js and its ui-timings.txt entry need no further registration.

Minor, not blocking

  • When a request's "is done" notice is unread, resNew marks every one of the person's own results on that question as "New". The notice is per question, not per result. This only affects the badge and the "N new" count while the notice is unread.

Not applicable

  • Closing issue: the PR states "No related issue", so there are no acceptance criteria to check.
  • Rule files: the .claude/rules files are for hooks, Python, skill bodies and similar, and none of their globs match the changed files.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit 475d836 Oct 19, 2026
46 of 57 checks passed
@kyle-sexton
kyle-sexton deleted the feat/shared-question-layout branch October 19, 2026 03:22
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.

1 participant