Skip to content

feat(planning): canonical chrome toggle and comment box on the 1:1 interview page - #13254

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-12654-41842771808-1
Nov 4, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #12654

Summary

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

The 1:1 interview page (plugins/planning/surface/index.html) loses its theme override: the themeOverride style block, applyTheme(data.theme), the theme setting that set data-theme, and the Theme row in Settings are all gone. It now carries the canonical chrome's System/Light/Dark toggle in the header (opens on System, stores nothing) and the chrome's comment box, plus the chrome's rv-chrome rules copied verbatim. A new test_page_chrome.py compares all three with reference/html-chrome.html. Design choice: the comment box became the Notes panel's composer (a <template> cloned into the panel, textarea id rv-comment-text), so text typed there still reaches the session through the existing Send note path. That avoids a box that delivers nothing, and adds no new delivery, which the issue lists as out of scope. The server-side theme setting, themeTokens and theme.json are left in place: the issue's decision scoped this item to the page. The README and the schema descriptions now say the page applies none of them. This PR covers the decision's first remaining AC8 item; the shared-session page is left in remaining.

Remaining work

  • AC8, shared-session page (plugins/planning/shared/web/app.js): remove the accent and palette pickers and the owner's "Default theme for everyone" setting (themePicker near lines 1775-1806 and 5206-5209), carry the canonical chrome's toggle and comment UI, add a test asserting neither picker…

Not verified

  • Python suites (test_page_chrome.py, test_interview_server.py) not run: this lane's Bash runs only the named wrappers; left to the PR's CI
  • Browser suites (surface-*.test.sh via playwright-cli: ui_a, ui_c, ui_page, ui_journey) not run here; left to the PR's CI
  • Build/lint of index.html (htmlhint) not run here; surface.test.sh runs it in CI
  • tidy recorded as skipped: pass 5's ai-slop detector and digest guard (detect.sh, digest-guard.sh) are scripts this lane's Bash refuses, so only the rubric read ran
  • The server still accepts and resolves the theme setting, themeTokens and theme.json (interview_server.py, round.py) and sends theme in state, though the page ignores them; retiring them server-side is follow-up work the issue did not ask for

Fix

  • plugins/planning/surface/index.html: removed the themeOverride style block, applyTheme, themeSig, the theme default, the Theme settings row and the setting-driven data-theme; added --bg/--fg aliases, the verbatim rv-chrome rules, the header .rv-theme toggle with a setTheme click binding, and a…
  • plugins/planning/surface/test_page_chrome.py: new unittest comparing the page's toggle, comment box and rv-chrome rules with reference/html-chrome.html (leading whitespace dropped). It also checks that the toggle opens on System, that no override or picker remains, that the chrome tokens are…
  • plugins/planning/surface/tests/ui_a.js: Notes selectors renamed to #rv-comment-text; new check that the toggle pins Dark and that System clears the pin
  • plugins/planning/surface/tests/ui_c.js: the session-layer theme check now asserts that a theme setting adds no Settings row and leaves the toggle on System
  • plugins/planning/surface/tests/ui_page.js: Notes composer selectors and its hint lookup follow the new markup
  • plugins/planning/surface/tests/ui_journey.js: Notes composer selector renamed
  • plugins/planning/surface/surface-checks.sh: ui_a/ui_b SKIP count 97 -> 98 for the new check
  • plugins/planning/surface/README.md: theme row and themeTokens paragraph say the page no longer applies them; new Theme section describes the toggle, the comment box and the test
  • plugins/planning/schemas/planning.schema.json: theme and themeTokens descriptions say the page does not apply them
  • .changes/planning/work-resolve-issue-issue-12654-41842771808-1-46ff3036.md: minor changelog fragment for the planning plugin

Verification

The runner ran each check from the base copy against c2ad456:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 6 fragments valid (run before and after tidy)
  • check-changed-skills: no changed skills, nothing to gate (run before and after tidy)
  • check-affected: 14 passed, 5 skipped (typos not installed; validate-plugins sub-checks that run checked-tree code; changed-skills), run before and after tidy
  • fresh-context review subagent over the whole diff: no correctness bugs; confirmed by reading that the Python test's regexes match both files and that the edited browser checks fit the new DOM; two low notes judged not to need a change (counter placement unchanged from before; no OS-scheme listener…
  • tidy (code-tidying:tidy-diff): passes 1-3 made no edits (two proposals: rename a counter variable in test_page_chrome.py; setTheme's unreachable else-return guard kept to match the chrome's own script); pass 4 split one README sentence and named reference/html-chrome.html in the fragment; pass 5…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41842771808

Left out: the items under Not verified.

Related

#12654

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

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed c2ad456332b1feacad6d29a7613a0025ba9c7dd8: read 10 of 10 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13254 (head c2ad456)

I found no security issues in this change.

Scope. I read every hunk of all 10 changed files in .claude-lane/pr.diff. None of them matches a trusted-path glob. The diff touches no trust control, workflow, token request, kill switch, merge hold or plugin manifest.

What I checked:

  • Theme override removed (plugins/planning/surface/index.html). The old applyTheme took server-sent theme tokens and wrote them into the <style id="themeOverride"> element as CSS, filtered by a regex. This PR deletes that function and the style element. That removes a CSS-injection surface fed by settings files and adds nothing in its place.
  • New toggle (setTheme). It accepts only system, light or dark; any other value returns early. It only sets or removes data-theme and aria-pressed. The click handler reads dataset.rvTheme from static markup, so no untrusted value reaches the DOM through it.
  • Notes composer. The draft used to be placed into innerHTML through esc(draft). It is now assigned with ta.value = draft to a textarea cloned from a static <template>. That is at least as safe as before, and there is no HTML sink. Notes are still sent by the existing sendNote path, which this PR only points at the new element id. No new endpoint or delivery path is added.
  • Tests, docs and schema. test_page_chrome.py reads two files inside the repository with fixed paths. The browser tests, surface-checks.sh (a count goes from 97 to 98), the README, the schema descriptions and the changelog fragment carry no security surface.

Embedded text. The PR context contains no directive aimed at this review.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed c2ad456332b1feacad6d29a7613a0025ba9c7dd8: read 10 of 10 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #13254, canonical chrome toggle and comment box on the 1:1 interview page

Result: no findings. I read every hunk in all 10 changed files. This is the lane's first review of this pull request (blocking only: no, no earlier posts from this lane).

What I checked

  • Chrome copies against plugins/planning/reference/html-chrome.html. I compared the three blocks that test_page_chrome.py checks:
    • The toggle markup (index.html:490) matches the reference's line 131. The test's lazy <div class="rv-theme"[^\n]*?</div> stops at the rv-theme group's own closing tag in both files, so the outer rv-bar wrapper in the reference doesn't break the match.
    • The comment section in the <template> matches the reference's lines 166-170 once leading whitespace is dropped.
    • The rules between the rv-chrome:begin and rv-chrome:end markers match line for line.
    • --muted is already in :root, and --bg and --fg are added as aliases. The only prefers-color-scheme: dark block is guarded by :root:not([data-theme="light"]), so the token and guard assertions should hold. I read this by hand and did not run the tests.
  • Notes composer rewiring. Every former #noteText reference in index.html and the four browser suites now points to #rv-comment-text; no noteText is left anywhere under plugins/planning. Inside renderNotes, the cloned section lands directly after .nthread, so ta.closest(".rv-comment").nextElementSibling is the Send note .arow. The character counter therefore lands where it did before. Each of these paths now uses the new id and still works:
    • the 403-reload draft save
    • the focus-keep check on state push
    • the in-place Send note update
    • the input handler that saves the draft
    • Ctrl+Enter to sendNote
  • Theme toggle. The header is static markup, so no re-render resets aria-pressed. setTheme matches the reference script's behaviour. It calls renderFly() only for the Visuals panel, which is the only non-fullscreen caller of frameDoc, so framed visuals pick up the new colors. Once theme was removed from DEFAULTS, I found nothing left in the page that reads setting("theme").
  • Test updates. ui_a adds one check, and the ab SKIP count in surface-checks.sh goes from 97 to 98 to match. The rewritten ui_c check follows the removed Settings row.
  • Docs and schema. The README's ../reference/html-chrome.html link resolves. The theme and themeTokens descriptions in the README, schema and changelog fragment match the code: the server still resolves these settings and the page ignores them.

Not checked

  • Closing issue: the PR context has no closing-issue section (only Refs: #12654), so I had no acceptance criteria to check against.
  • Plugin manifests: no plugin.json or marketplace.json changed, so no manifest lines.
  • Path-scoped rules: only .claude/rules/ruff-pin.md (**/*.py) matches a changed file, and the new test breaks nothing in it.
  • Author-claimed verification: I did not confirm it myself. That covers changelog/skills checks passing and the Python and browser suites being left to CI. I ran no tests in this lane.

No spend or cost-class changes.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head c2ad456332b1feacad6d29a7613a0025ba9c7dd8. 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 c2ad456332b1feacad6d29a7613a0025ba9c7dd8.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 2ddbc36 Nov 4, 2026
51 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12654-41842771808-1 branch November 4, 2026 14:39
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 2ddbc3647d37be82a16306b90ca248c39b40db7d; 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.

0 participants