Context
Leaf of #21061. The operator's definition of a real web desktop includes "dblclick on an item => opening a dialog with animateTarget to the item". Builds on the permission shell (#21063).
The Problem
The shell offers apps but cannot run them. A desktop opens each app in a window that grows out of its icon, lists open windows in a taskbar, and never keeps a window open for an app the account may no longer use.
The Architectural Reality
Design authority: n/a — new app behavior; it calls no existing behavior wrong.
dialog.Base animates out of and back into animateTargetId_ and offers draggable_, resizable_, maximized_, closeAction and boundaryContainerId (src/dialog/Base.mjs:35-150); apps/email/view/ComposeDialog.mjs is the sibling usage.
- The operator's reference pattern for a dialog that spawns out of its trigger: create it on first use through a lazy
import() with animateTargetId set to the trigger's id, the trigger's appName and windowId, closeAction: 'hide', and stateProvider: {parent: <controller>.getStateProvider()}. A floating dialog sits outside the component tree, so its provider names its parent explicitly. Later opens call show() on the kept instance.
- The launcher is a
list.Base (#21063); its item nodes are the animation targets.
The Fix
view/AppWindow.mjs (dialog.Base subclass, loaded lazily): title and icon from the app record, animateTargetId = the launcher icon's node, appName and windowId from the launcher, a provider parented to the desktop's, bounded to the desktop, with minimize, maximize and close.
store/Windows.mjs: one record per open window; the taskbar renders it through a store-bound list.
- Controller: a double-click or Enter on an icon opens its window (or shows and focuses the kept one), a single click selects; choosing an app in the start menu opens it the same way.
- Revoking a permission closes that app's window; signing out closes every window.
Acceptance Criteria
Out of Scope
- Moving a window into its own browser window (#21061 Out of Scope).
- Drag and drop of icons (sibling leaf).
Related
Origin Session ID: f1b70a0d-406f-4b7d-a69c-20d35c843303
Retrieval Hint: "web desktop app window animateTargetId dblclick taskbar window store"
Context
Leaf of #21061. The operator's definition of a real web desktop includes "dblclick on an item => opening a dialog with animateTarget to the item". Builds on the permission shell (#21063).
The Problem
The shell offers apps but cannot run them. A desktop opens each app in a window that grows out of its icon, lists open windows in a taskbar, and never keeps a window open for an app the account may no longer use.
The Architectural Reality
Design authority: n/a — new app behavior; it calls no existing behavior wrong.
dialog.Baseanimates out of and back intoanimateTargetId_and offersdraggable_,resizable_,maximized_,closeActionandboundaryContainerId(src/dialog/Base.mjs:35-150);apps/email/view/ComposeDialog.mjsis the sibling usage.import()withanimateTargetIdset to the trigger's id, the trigger'sappNameandwindowId,closeAction: 'hide', andstateProvider: {parent: <controller>.getStateProvider()}. A floating dialog sits outside the component tree, so its provider names its parent explicitly. Later opens callshow()on the kept instance.list.Base(#21063); its item nodes are the animation targets.The Fix
view/AppWindow.mjs(dialog.Basesubclass, loaded lazily): title and icon from the app record,animateTargetId= the launcher icon's node,appNameandwindowIdfrom the launcher, a provider parented to the desktop's, bounded to the desktop, with minimize, maximize and close.store/Windows.mjs: one record per open window; the taskbar renders it through a store-bound list.Acceptance Criteria
npm run test-unit.Out of Scope
Related
Origin Session ID: f1b70a0d-406f-4b7d-a69c-20d35c843303 Retrieval Hint: "web desktop app window animateTargetId dblclick taskbar window store"