LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtNov 9, 2026, 12:47 AM
updatedAtNov 9, 2026, 10:38 AM
githubUrlhttps://github.com/neomjs/neo/issues/20635
authorneo-gpt-sophie
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 9, 2026, 10:38 AM

Give Header Groups modern themes and a visible theme switch

Closed v13.4.0/archive-v13-4-0-chunk-5 enhancementaigrid
neo-gpt-sophie
neo-gpt-sophie commented on Nov 9, 2026, 12:47 AM

Context

The Header Groups example is the visible demonstration for the new group-header interaction. The quality discussion around #20626 and #20627 identified a bounded presentation opportunity: use the modern light/dark themes, expose the switch, and explain the two drag gestures.

The operator requires this existing example to ship polished with header groups in 13.4. The bounded work is its modern light/dark theme switcher, readable gesture instructions, and verification against the complete leaf/group drag behavior. The broader family-based examples catalog remains #20498 / #20500 for separate release planning.

The Problem

examples/grid/headerGroups/neo-config.json declares no themes and MainContainer.mjs contains only the full-width grid. The previous Issues showcase already offers modern themes and a visible root-theme button. A newcomer currently has no explanation of group-versus-leaf dragging or way to compare the new feature in both modern skins.

The Architectural Reality

Design authority: n/a — an example-specific usability enhancement, not a claim that the legacy themes are invalid.

  • examples/grid/issues/neo-config.json lists neo-theme-neo-light and neo-theme-neo-dark; its MainContainer#onThemeButtonClick changes the root theme and the button icon.
  • examples/grid/headerGroups/MainContainer.mjs owns the example's Viewport and its grid. Its documented column widths, groups and locked regions are the existing browser fixture contract.
  • Example styles belong beside the Issues precedent, under resources/scss/src/examples/grid/<example>/MainContainer.scss.
  • examples/ConfigurationViewport.mjs includes a broad configuration pane and a different theme list. Retrofitting that entire shell is unnecessary for one toggle.

Prescription checked: the example Viewport and boot config own this concern; shared Grid or drag classes do not.

The Fix

Declare both modern themes at boot. Add a compact heading/instruction area and visible theme button above the grid, using the existing Component/Container/Button and root-theme pattern. Give this release feature its own polished example palette, typography and surfaces, using the Issues board and Workstation as quality references. Keep the grid at full available width and preserve every column, width, group and lock configuration. The button stays outside the grid header rows.

Custom styling belongs in this example's source and light/dark SCSS files. Its token mappings must reach nested theme carriers and floating leaf/group proxies, so a theme toggle never exposes stock header colors. Quarter labels should remain the visual focus. Reproducing the Issues board's exact design is not required.

Explain that a group moves its leaves as a unit and a leaf reorders within its group. That instruction is delivered with #20627's working gesture, never as a promise before its integration.

Contract Ledger

Surface Authority Behavior Fallback Docs Evidence
Example theme control Issues example root-theme pattern modern light/dark toggle updates the example and floating proxies declared modern light boot theme handler summary and button label real browser in both skins
Example layout and instruction existing Header Groups geometry; #20627 controls above the full-width grid; correct group/leaf gesture text horizontal scrolling unchanged visible instruction existing geometry/drag tests and narrow-window read

Decision Record impact: none.

Acceptance Criteria

  • The standalone example boots with the modern light theme and exposes a clearly labeled light/dark control; toggling updates the root theme and button state without recreating the grid. Both skins include a deliberate custom palette, typography and surface treatment comparable in finish to the Issues board.
  • The heading/instruction area is readable and outside the header rows. All columns, widths, group memberships and locked regions remain unchanged; the grid retains the full available width.
  • On a candidate containing the #20626 and #20627 repairs, leaf and whole-group drags work in both modern skins and their proxies retain visible, correctly positioned headers. Existing Header Groups geometry/reorder/scroll checks pass.
  • The PR includes a real browser visual receipt for both skins. This existing-example polish is part of the 13.4 header-groups release acceptance.

Out of Scope

The shared drag repairs, regrouping leaves across groups, a general example shell, shared theme changes, the Portal catalog migration, and assigning a future kitchen-sink release version.

Avoided Traps

Adding a large configuration sidebar that narrows the grid; duplicating Grid state in the example; copying the Issues data or special renderers; showing a gesture hint before the interaction exists; treating the operator's challenge as a new release gate.

Related and ownership

#20626 · #20627 · #20498 · #20500. Sophie owns this already-agreed, time-bounded pass; not a contributor handoff.

Structure: any new browser spec belongs beside test/playwright/e2e/grid/HeaderGroups.spec.mjs, using the existing fixture pattern; no new production module or directory taxonomy.

Live latest-open + closed sweep: latest 20 requested (11 open returned) and closed search headerGroups theme immediately before filing; no equivalent. Same-surface #20379, #20626/#20627 and #20500 bodies read; their interaction/catalog boundaries remain. A2A sweep: latest 30 all-state rows include Vega's explicit bounded ownership handoff and Grace's separate GroupRow lane, no competing example-presentation claim. MC sweep: headerGroups old theme no theme switcher demo polish returned the current team-decision context and no conflicting prior ruling. KB recovered #20379, not a presentation ticket. Own-assignment sweep: only #20185 open, a video deliverable; its body is separate. Structure-map: N/A, existing example ownership.

Origin Session ID: ac7e0161-5037-4362-8569-e198ee5acf91 Retrieval Hint: headerGroups modern themes visible switcher bounded demo presentation

tobiu referenced in commit 5788bef - "feat(examples): add Header Groups theme controls (#20635) (#20638) on Nov 9, 2026, 10:38 AM
tobiu closed this issue on Nov 9, 2026, 10:38 AM