Skip to content

feat(planning): canonical chrome on the shared-session page, accent and palette pickers removed - #13345

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12654

Summary

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

Finishes AC8 for the shared-session page, the last part the two recorded decisions left open. #13048 already delivered the chrome sync, AC9 and the planning views, and #13254 delivered the 1:1 page. A person's own card now carries the canonical chrome's System/Light/Dark toggle (the .rv-theme group with data-rv-theme buttons), opening on System, as the page's only theme choice. The accent swatches, the palette buttons and the owner's 'Default theme for everyone' setting are gone, along with their CSS, and the prototype page paints only the person's mode. Choice of means: the toggle replaces the old picker in the card, where the theme mode already lived, and the top-bar cycle button now shares the same pref. The Discussion composer becomes the canonical comment box (section.rv-comment, h2 'Comment', label 'Your comment for the session', textarea#rv-comment-text data-rv-note=comment), the way #13254 reused the 1:1 page's note composer. Its .vf-disc-ta and .vf-disc-form classes stay, since many browser suites use them. Sessions saved with theme.accent or theme.palette keep loading, because session.py is unchanged. The repo key shared_session.accent is marked retired, with no effect, and stays valid.

Not verified

  • Python and browser suites not run: test_page_chrome.py, test_session.py, ui_surfaces.js, ui_contrast.js, ui_layout.js, ui_proto.js and the other ui_*.js parts. This lane runs no interpreter (no python or node); left to the PR's CI
  • Plugin view tests, for 'every plugin carrying the view runtime passes its view tests': not run here (no interpreter); left to the PR's CI. This change does not touch lib/html-chrome.html, the sync script or the view runtime
  • Shared-copies --check and --check-bump (done-when item 3) not run here; #13048 delivered that item and this change does not touch scripts/shared-copies.txt or any synced copy. Left to the PR's CI
  • tidy skipped: the change is over the tidy cutoffs (13 files and about 510 changed lines, against at most 10 files and 300 lines)
  • Build/test/lint step of the prep: no build exists for these files and no linter or interpreter can run here; check-affected skipped typos (not installed) and three validate-plugins sub-checks that run code from the checked tree
  • Changes are left uncommitted in the working tree, as the runner's instructions require, not committed as ci-mode step 3 describes
  • The checkout has untracked files this run did not create: .bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc. They are not part of this change and should stay out of the patch
  • Comment delivery to the session is not wired: the comment box posts to the question's Discussion as before. The issue puts delivery out of scope (next slice)

Fix

  • plugins/planning/shared/web/app.js: themePicker, ACCENTS, PALETTES, sessionTheme and the owner's 'Default theme for everyone' section replaced by themeToggle() (the chrome's toggle markup) and setTheme(); myMode() reads the person's theme pref with System as the default; applyTheme sets only…
  • plugins/planning/shared/web/app.css: removed the data-accent and data-palette rules (Midnight, Slate, Paper, High contrast) and the swatch/palette/theme-why styles; added --fg; added the rv-chrome rules verbatim plus page tweaks (card placement, 44px coarse-pointer targets, the comment box heading…
  • plugins/planning/shared/web/proto.js: applyTheme uses only the person's theme pref; no session theme, accent or palette
  • plugins/planning/shared/tests/test_page_chrome.py (new): checks app.css carries the chrome's rv-chrome rules verbatim, the tokens they use are defined, app.js builds the toggle and comment box from the chrome's own words, the toggle opens on System, and no accent, palette or session-theme code…
  • plugins/planning/shared/tests/ui_surfaces.js: a guest's card carries the toggle opening on System; no accent or palette picker renders; Light pins the page light; the owner's Session settings set no theme; the Discussion composer is the chrome's comment box
  • plugins/planning/shared/tests/ui_contrast.js: palette and accent loops removed; the token matrix, page states and Propose edge are checked in dark and light
  • plugins/planning/shared/tests/ui_layout.js: the marker-number contrast check no longer loops over accents
  • plugins/planning/shared/tests/ui_proto.js: the session-palette check replaced by a check that the prototype page follows the owner's own Dark pref and paints no saved session palette or accent
  • plugins/planning/shared/README.md: Themes section rewritten for the canonical toggle and comment box, plus how old saved themes load; test notes for ui_contrast.js, test_page_chrome.py and ui_surfaces.js
  • plugins/planning/reference/config.md: shared_session.accent marked retired with no effect
  • plugins/planning/schemas/planning.schema.json: shared_session.accent description marked retired (key still valid)
  • plugins/planning/skills/interview/context/lane-shared.md: dropped the shared_session.accent row from the settings the lane resolves and seeds
  • .changes/planning/work-resolve-issue-issue-12654-41899860758-1-cafe6754.md (new): minor changelog fragment for planning

Verification

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

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: All 10 changelog fragment(s) under .changes/ are valid (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changed-skills: CHECK-SKILL interview PASS, 0 errors, 3 pre-existing size warnings; 1 skill checked, 0 failed (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 13 passed, 6 skipped over 13 changed files (run before and after the review fixes)
  • Grep over plugins/planning/shared/web for every removed identifier and selector (ACCENTS, PALETTES, themePicker, sessionTheme, ownerTheme, vf-swatch, data-accent, data-palette, dataset.accent, dataset.palette, settings?.theme, st().theme): no matches left after the edits
  • Grep over plugins/planning/shared/tests for selectors tied to the removed UI or the old discussion field id (#vf-disc-ta, 'Add a comment', swatches, palette buttons, 'Theme, just for you'): only the class selectors .vf-disc-ta and .vf-disc-form are used, and both are kept
  • Fresh-context review subagent over the whole diff: no correctness bugs. It confirmed no TDZ or scope problems, every test_page_chrome.py assertion matches the source literally, and the docs claims hold. It raised 4 minor points: the comment box's focus outline was overridden by the page's field…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41899860758

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 e7e9b3d2265832dc4b77de02fd67a8d2b931cdd3: read 13 of 13 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13345, no security issues found

critical-findings: 0

I read every hunk of all 13 changed files in .claude-lane/pr.diff. This was a full review: no earlier head had been reviewed, so it was not limited to blocking findings.

What the change does: It changes the theme and comment UI on the shared-session page. The accent and palette pickers and the owner's "Default theme for everyone" setting are removed. In their place, each person gets the canonical System/Light/Dark toggle in their own card. The Discussion composer is now wrapped in the canonical rv-comment box.

The diff also includes:

  • CSS rules, some copied verbatim from the chrome and some removed.
  • Browser and Python tests updated to match.
  • Docs and schema text marking shared_session.accent as retired.
  • A changelog fragment.

Checks made:

  • New DOM content: Every new string in app.js is a static literal: the "Comment" heading, the label text, the placeholder and the rv-comment-* ids. No session or guest data reaches the new markup.
  • Theme values: myMode() and proto.js's applyTheme only accept light or dark and fall back to system. A stored pref cannot put any other value into data-theme.
  • Removed data flows: The page no longer writes the session's theme setting or the accent/palette prefs into dataset. Removing data from the page cannot widen anything.
  • Server side: session.py is unchanged, so server-side validation of saved theme.accent/theme.palette is as it was.
  • Comment posting: The composer keeps the same Kit.composer wiring and submit path. Only its id, label, heading and placeholder changed.
  • Instruction surfaces: In plugins/planning/skills/interview/context/lane-shared.md, the PR removes one row from the table of settings the lane resolves (shared_session.accent → theme.accent). That row only told the lane which setting to fill in. It did not prevent any action, so removing it disables no safety rule. docs/contracts/instruction-exception-register/README.md was not consulted. This was judged from what the row does.
  • Manifests and trust controls: No plugin.json or marketplace.json changed. No trust control or merge hold changed: no workflow, action, token request, trusted-actor list or gate script is in the diff. None of the changed files matches a trusted-path glob.
  • PR context: No embedded instructions aimed at this lane.

Spend: none beyond normal CI runs of the new and updated tests.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read every hunk of all 13 changed files. I also checked the change against the files it depends on: plugins/planning/reference/html-chrome.html, shared/web/core.js (Core.el, savePrefs), shared/session.py (prefs merge, the THEME_VALUES validators), shared/web/proto.html and shared/web/app.css.

Closing issue #12654 (AC8, shared-session page, the one item the 13:54Z and #13254 decisions left open):

  • Pickers and owner setting removed: met. The accent swatches, the palette buttons and the owner's "Default theme for everyone" section are gone from app.js, along with their CSS.
  • Canonical toggle added: met. themeToggle() builds the .rv-theme group with data-rv-theme System/Light/Dark buttons. It opens on System through myMode().
  • Canonical comment box added: met. section.rv-comment contains h2#rv-comment-h, its label and textarea#rv-comment-text[data-rv-note=comment].
  • Tests that could fail: present. ui_surfaces.js asserts that no accent or palette picker renders in the person's card or in Session settings. test_page_chrome.py compares the toggle, the comment box and the rv-chrome rules against reference/html-chrome.html. I checked its regexes against that file: they match the chrome's markup, and the flat() comparison tolerates the different indentation.
  • Old sessions still load: met. Sessions saved with theme.accent or theme.palette keep loading because session.py and state.schema.json are unchanged. Existing test_session.py cases cover this.

Other checks:

  • Core.el skips a null class, so btn(null, l) adds no stray class.
  • setTheme and applyTheme are function declarations, so they are hoisted, and myMode is defined before anything uses it.
  • The person card's sig now includes myMode(), so the card repaints when the top-bar cycle button changes the theme.
  • /api/prefs merges per key, so ui_proto.js resetting theme to system leaves the other prefs alone.
  • --fg: var(--text) is defined on .app, the same element whose data-theme="light" rule overrides --text, so light mode gets the light text color.
  • No data-accent, data-palette or #vf-disc-ta selector is left in the web sources.

Verification: I ran nothing; this lane has no interpreter. The author's statement that the Python and browser suites were left to CI is the author's claim, and I have not verified it.

No plugin manifest changed, no settled threads or prior findings apply, and the PR context contains no embedded instructions to the lane.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head e7e9b3d2265832dc4b77de02fd67a8d2b931cdd3.

@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 75162c2 Nov 4, 2026
57 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12654-41899860758-1 branch November 4, 2026 20:26
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

feat(view-runtime): one canonical chrome with theme toggle and comments, and the redraw binding

0 participants