LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 21, 2026, 2:47 AM
updatedAtNov 21, 2026, 2:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/21707
authorneo-gemini-maryam
commentsCount0
parentIssue21704
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 2:46 PM

Add ThemeSwitcher to Grid, Dashboard, Desktop and Menu standalone examples

Closed v14.0.0/archive-v14-0-0-chunk-6 enhancementdesignaiportal
neo-gemini-maryam
neo-gemini-maryam commented on Nov 21, 2026, 2:47 AM

Context

Rollout leaf 2 of #21704 (Engine 14 release blocker, @tobiu 2026-11-21): covers all non-workbench standalone examples across the Grid, Table, Dashboard, Desktop, Tab, Toolbar, Menu, List, and Layout groups that currently lack a theme switcher (and aligns multi-theme dropdown support where >2 themes are configured, such as examples/menu/context's 4 themes).

The Problem

While 13 examples/grid/* and 2 examples/table* standalone apps already expose a binary light/dark toggle, 19 standalone examples across these UI container/data groups still have zero theme switcher UI:

  • Grid & Table: examples/grid/animatedRowSorting (2), examples/grid/contentSizedRows (2), examples/grid/lockedColumns (2), examples/table/covid (2), examples/tablePerformance (2), examples/tableStore (default 2)
  • Dashboard & Desktop: examples/dashboard/base (default 2), examples/dashboard/choreography (2), examples/dashboard/crossWindow (2), examples/dashboard/crossWindowWitness (default 2 — internal witness only if unpublished, verify against apps/portal/resources/data/examples.json), examples/dashboard/desk (2), examples/dashboard/dock (default 2), examples/dashboard/tearOut (2), examples/desktop/basic (2)
  • Navigation, Menus, Lists & Layouts: examples/menu/context (4 themes — needs dropdown!), examples/menu/contextFiles (2), examples/tab/browser (2), examples/tabs (1 -> upgrade neo-config.json to light+dark), examples/toolbar/breadcrumb (2), examples/toolbar/paging (2), examples/list/animate (default 2), examples/list/reorder (2), examples/layout/sideBySide (2)

The Architectural Reality

  • Prerequisite #21705 provides Neo.button.ThemeSwitcher (ntype: 'theme-switcher'), automatically rendering a 1-click circular-reveal toggle for 2-theme apps and a circular-reveal dropdown for 4-theme examples/menu/context.
  • Multi-window examples (examples/dashboard/crossWindow, examples/dashboard/tearOut) should propagate theme updates across open secondary windows (or follow their root state provider / Neo.Main window theme pattern) so torn-out panes do not stay stranded in the old theme.
  • Filter target scope against apps/portal/resources/data/examples.json + standalone user-facing demos (excluding test-only internal witnesses like crossWindowWitness if unpublished).
  • Design authority: #21704 binding inventory (@tobiu Engine 14 release gate).

The Fix

  1. Mount Neo.button.ThemeSwitcher in every published / user-facing non-ConfigurationViewport example in the grid, table*, dashboard, desktop, menu, tab*, toolbar, list, and layout directories that currently lacks a theme switcher (upgrading examples/tabs/neo-config.json to 2+ themes if published).
  2. Ensure ?theme= URL boot parameter support is wired in app.mjs where missing so deep-linking and ThemeSwitcher initial state agree.
  3. Verify 1440 × 900 and 390 × 844 layout fit and zero console/404 errors across touched examples, keeping existing E2E specs green.

Decision Record impact: none.

Acceptance Criteria

  • Every published non-ConfigurationViewport example in examples/{grid,table,tablePerformance,tableStore,dashboard,desktop,menu,tab,tabs,toolbar,list,layout}/** exposes an interactive theme switcher (ThemeSwitcher from #21705, or existing verified wave switcher on the 15 grid/table examples that already have one).
  • examples/menu/context exposes all 4 of its configured themes via the dropdown switcher; 2-theme examples toggle light↔dark with circular-reveal wave.
  • Multi-window dashboard examples (crossWindow, tearOut) switch theme cleanly without console errors.
  • Existing Playwright E2E tests for touched surfaces pass, plus E2E verification of live theme switching across representative 2-theme and 4-theme examples in this slice.

Out of Scope

  • board/*, scheduler/*, gantt/*, timeline/* (owned by #21706).
  • form/*, component/*, charts, stateProvider/*, todoList/*, worker/* (owned by sibling leaf 3 under #21704).
  • ConfigurationViewport workbench examples.

Avoided Traps

  • Adding ThemeSwitcher to internal Playwright test-fixture apps that are not user-facing examples and whose E2E geometry tests assert exact pixel heights (crossWindowWitness — check examples.json + spec references first!).

Related

unowned-rationale: Engine 14 rollout open for parallel maintainer pickup.

Live latest-open + closed sweep: checked latest 25 open (84 open total, red band — bounded leaf under #21704) + open and closed search (ThemeSwitcher, headerGroups theme #20635) at 2026-11-21T01:46Z; no duplicate. A2A in-flight sweep, MC sweep & Own-assignment sweep: attested on #21704.

Origin Session ID: 59ca0d8c-dfdf-4d07-aefe-8ec5c658a398

Retrieval Hint: "ThemeSwitcher grid table dashboard desktop menu toolbar list standalone examples"