LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 17, 2026, 1:03 AM
updatedAtNov 18, 2026, 5:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/21201
authorneo-opus-grace
commentsCount5
parentIssue21198
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 21200 The desktop launcher and its apps tree move into src, [x] 21199 A desktop window manager in src owns app windows and their tasks
blocking[ ] 21353 Each web desktop app opens a working engine view, not a placeholder, [ ] 21205 The desktop family looks right in the cyberpunk, dark and light themes, [ ] 21202 A guide shows how to build a web desktop from src/desktop
closedAtNov 18, 2026, 5:22 PM

The desktop container, taskbar and app window move into src

Closed v14.0.0/archive-v14-0-0-chunk-3 enhancementairefactoring
neo-opus-grace
neo-opus-grace commented on Nov 17, 2026, 1:03 AM

Context

Leaf of #21198 that completes the shell. After #21199 (the window manager) and #21200 (the launcher and its apps tree), the demo still owns the pieces that put them together: view/Desktop.mjs (the workspace), view/Taskbar.mjs with the start button, view/TaskList.mjs, and view/AppWindow.mjs.

The Problem

Without these pieces in src/, a consumer still assembles the shell by copying the demo, and the window manager has no owner but a consumer's controller.

The Architectural Reality

  • Design authority: n/a — moves and generalizes existing behavior; calls none of it wrong.
  • AppWindow is a dialog.Base that grows out of its launcher icon (animateTargetId), stays inside the workspace (boundaryContainerId, resizablePluginConfig), and fires headerAction for minimize. Today its opener hands it a state provider with data.app, parented to the desktop's (ViewportController.mjs:80), and it binds title: data => data.app.text.
  • The taskbar is a toolbar.Base. Its start button's menu.List reads the same apps store as the launcher, so every submenu honors the filter (#21062).
  • Below 600px the taskbar shows icons only and windows fill the workspace; the demo's SCSS holds that.
  • Styles: resources/scss/src/apps/webdesktop/{AppWindow,Desktop,TaskList,Taskbar}.scss, with neo-dark and neo-light variables.
  • The window controls (from #21272): dialog.Base#maximize toggles maximized and swaps the button's icon between maximizeCls and minimizeCls (src/dialog/Base.mjs:648-654). minimizeCls is far fa-window-minimize (src/dialog/Base.mjs:122-124), the glyph the demo also uses for its real Minimize (apps/webdesktop/view/AppWindow.mjs:62), so a maximized demo window shows two identical buttons. An icon-only action's accessible name comes from its action name once, at creation (src/toolbar/Base.mjs:717-723), so the toggled button stays "maximize". A consumer's headerConfig.actions replaces the default list (src/dialog/header/Toolbar.mjs:17-35, spread in src/dialog/Base.mjs:548-558).

The Fix

  • src/desktop/AppWindow.mjs: the dialog, with minimize, maximize and close. Its public input is a record config (title and icon come from it); any state provider stays internal. Its @summary carries the naming rule of #21198 and points at Neo.manager.Window.
  • src/desktop/TaskList.mjs: a list over the tasks store; a click restores the window or brings it to the front through the manager.
  • src/desktop/Taskbar.mjs: the start button with a menu.List over the apps store, the task list, and room for a consumer's own items (the demo's account chip, theme and permissions buttons).
  • src/desktop/Container.mjs: the workspace, launcher and taskbar. It creates and owns the Neo.desktop.WindowManager, whose windowClass defaults to Neo.desktop.AppWindow, loaded lazily.
  • examples/desktop/basic: three apps, no sign-in, built from Neo.desktop.Container and a Neo.desktop.store.Apps with no controller code of its own. It uses the family's launcher (#21200) and brings none of its own, so it tests every seam a consumer touches. It is the family's second consumer, the guide's source (#21202) and the theme leaf's surface (#21205).
  • The demo's viewport becomes its sign-in plus a Neo.desktop.Container. Its controller keeps sign-in, permissions and theme, and hands the container the manager's reset() on sign-out.
  • Styles move to resources/scss/src/desktop/ with the neo-dark and neo-light variables, the phone layout included. The other three themes are #21205.
  • The maximize toggle in dialog.Base shows a restore glyph and updates the button's accessible name with the state.

Contract Ledger

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
Neo.desktop.Container (owns a WindowManager; configs for its stores and window class) #21198 One component a consumer drops in for a working desktop Without an apps store it renders an empty workspace JSDoc e2e on examples/desktop/basic
Neo.desktop.AppWindow#record #21198 (Mnemosyne's review) The window's only public input; title and icon follow it Without a record it renders an empty, untitled window JSDoc unit
Neo.desktop.AppWindow (headerAction minimize, maximize, close) the demo's AppWindow As the demo behaves today — JSDoc e2e
Neo.desktop.Taskbar (consumer item slot), Neo.desktop.TaskList the demo's views As the demo behaves today — JSDoc e2e
dialog.Base maximize toggle (restore glyph, accessible name) #21272 The restore state shows a restore glyph; the name reads "maximize" or "restore" — JSDoc unit

Acceptance Criteria

  • AC-1: The four classes exist under src/desktop/ with @summary JSDoc, and the container owns the window manager.
  • AC-2: examples/desktop/basic ships: three apps, no sign-in, no controller code of its own. An e2e spec on it opens an app, minimizes it, restores it from the taskbar, brings one of two windows to the front, and closes it.
  • AC-3: The styles live under resources/scss/src/desktop/ with the neo-dark and neo-light variables, the phone layout included; the demo keeps none of the shell's styles.
  • AC-4: The demo is unchanged for its user: test/playwright/e2e/webdesktop/PhoneAndTouch.spec.mjs and the demo's unit specs pass, and its viewport holds only sign-in, the container and its own taskbar items.
  • AC-5 (#21272): An app window shows Minimize, Maximize/Restore and Close without consumer handlers. A maximized window shows a restore glyph, distinct from Minimize, and the button's accessible name follows the state.
  • AC-6 (#21272): Minimize, then a restore from the taskbar, and Maximize, then Restore, both return the window to its normal size and position.
  • AC-7 (#21272): A consumer changes one control's icon without losing the others and can leave out a single control; the guide (#21202) shows both. Minimize appears only on windows a manager can restore.

Out of Scope

The guide (#21202); the cyberpunk, dark and light themes (#21205); a window in its own browser window (D#21204); more than one window per app.

Related

Parent #21198 · blocked by #21199 and #21200 · #21064 (the demo's windows) · #21075 (its phone layout) · #21139 (the demo's open checks, run again after this lands) · #21272 (the window-controls contract, folded into AC-5 to AC-7).

Sweeps: as #21198 at 2026-11-16T23:59Z; no equivalent for taskbar or a desktop container. Revised 2026-11-17 after Mnemosyne's epic review on #21198 (record input, shipped example, themes split), and again with @armando-ota's controls contract from #21272. Revised 2026-11-18: the example uses the family's launcher, so this leaf waits for both #21199 and #21200 (the Engine 14 lead's question, A2A 378de169).

Origin Session ID: 99757ce4-c1d9-4801-83f2-e2f545246917 Retrieval Hint: "desktop Container Taskbar TaskList AppWindow record config examples/desktop/basic owns WindowManager"