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

Add ThemeSwitcher to all Board, Scheduler, Gantt and Timeline 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 1 of #21704 (Engine 14 release blocker, @tobiu 2026-11-21): every standalone example in the Planning and Timeline families (examples/board/*, examples/scheduler/*, examples/gantt/*, examples/timeline/*) ships 5 themes in neo-config.json (neo-theme-neo-light, neo-theme-neo-dark, neo-theme-light, neo-theme-dark, neo-theme-cyberpunk), except examples/scheduler/meridian which currently lists only neo-theme-neo-dark, and zero of them expose a UI control to switch themes without editing ?theme= in the URL.

The Problem

Visitors opening examples/gantt/basic, examples/gantt/workingTime (#21677), examples/scheduler/basic, examples/board/basic, etc. cannot test or experience the 5 themes in the browser, even though PRs screenshot multiple themes.

The Architectural Reality

  • Prerequisite #21705 introduces Neo.button.ThemeSwitcher (src/button/ThemeSwitcher.mjs, ntype: 'theme-switcher'), which automatically renders a 5-theme dropdown with Neo.main.DomAccess.startViewTransition circular wave when Neo.config.themes.length > 2.
  • Every standalone example under examples/board/*, examples/scheduler/*, examples/gantt/*, and examples/timeline/basic already mounts a top Neo.toolbar.Base header bar (flex: 'none').
  • Current dev inventory in this slice (16 merged directories + any in-flight #21346 leaves merged before this PR lands, such as scheduler/resourceColumns #21681, scheduler/timeZones #21687, scheduler/liveUpdates #21694, gantt/taskColumns #21701, board/multiSelect #21631):
    • examples/board/{basic,cardDesigns,swimlanes,wipLimits}
    • examples/gantt/{basic,bigData,workingTime,zoom}
    • examples/scheduler/{barRenderer,basic,bigData,dragAndResize,meridian,nonWorkingTime}
    • examples/timeline/basic
  • Design authority: #21704 binding inventory (@tobiu Engine 14 release gate).

The Fix

  1. Mount {module: ThemeSwitcher} at the trailing end of the header Toolbar in every standalone example under examples/board/**, examples/scheduler/**, examples/gantt/**, and examples/timeline/** present on dev at branch time.
  2. Upgrade examples/scheduler/meridian/neo-config.json (and its theme CSS tokens if needed) so it supports light and dark / 5 themes cleanly alongside its siblings, or configure its supported theme list explicitly.
  3. Verify at both 1440 × 900 and 390 × 844 across all touched examples that adding ThemeSwitcher causes zero toolbar clipping/overflow and preserves existing E2E specs (test/playwright/e2e/{board,scheduler,gantt,timeline}/).
  4. Add an E2E check verifying interactive dropdown theme switching across all 5 themes on at least one gantt, scheduler, and board example.

Decision Record impact: none.

Acceptance Criteria

  • Every standalone example under examples/board/**, examples/scheduler/**, examples/gantt/**, and examples/timeline/** on dev mounts Neo.button.ThemeSwitcher in its toolbar and switches live across its configured themes with circular-reveal transition and zero console/404 errors.
  • At 390 × 844 mobile width, no example toolbar clips its existing controls or ThemeSwitcher off-screen.
  • Existing board, scheduler, gantt, and timeline Playwright E2E suites remain green, plus a new/extended E2E assertion exercising live 5-theme dropdown switching.
  • Whole-page screenshots showing the open 5-theme dropdown and switched theme states on gantt/basic (and scheduler/basic / board/basic) at 1440 × 900 and 390 × 844 are included on the PR.

Out of Scope

  • Non-planning standalone examples (grid/*, dashboard/*, form/*, component/*, etc., owned by sibling leaves under #21704).
  • Examples extending ConfigurationViewport.

Avoided Traps

  • Editing shared catalog files (apps/portal/resources/data/examples.json, seo.json) if #21613 is in flight without coordinating on A2A.
  • Letting ThemeSwitcher push mobile segmented controls off the right edge of 390 × 844 viewports — use compact mobile mode on ThemeSwitcher below 768px.

Related

Rollout owner: @neo-gemini-maryam.

Live latest-open + closed sweep: checked latest 25 open (83 open total, red band — bounded leaf under #21704) + open and closed search (ThemeSwitcher, theme switcher examples, Out of Scope read on #20879, #20932) at 2026-11-21T01:46Z; no duplicate. A2A in-flight sweep: scanned latest 30 messages across all read states; zero competing claim. MC sweep & Own-assignment sweep: attested on #21704 (1 open #21621).

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

Retrieval Hint: "ThemeSwitcher board scheduler gantt timeline standalone examples 5-theme dropdown"