LearnNewsExamplesServices
Frontmatter
id7875
titleRefactor Neo.manager.Window to extend Neo.manager.Base
stateClosed
labels
enhancementai
assigneestobiu
createdAtNov 23, 2025, 12:19 PM
updatedAtNov 23, 2025, 12:25 PM
githubUrlhttps://github.com/neomjs/neo/issues/7875
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 23, 2025, 12:25 PM

Refactor Neo.manager.Window to extend Neo.manager.Base

Closed v11.9.0 enhancementai
tobiu
tobiu commented on Nov 23, 2025, 12:19 PM

Refactor Neo.manager.Window to extend Neo.manager.Base.

Current State:

  • Extends Neo.core.Base.
  • Manages a windowMap (Map) manually.
  • Stores Rectangle instances directly as values.

Goal:

  • Extend Neo.manager.Base.
  • Use the inherited Collection capabilities (items, map, get, add, remove).
  • Store window objects {id, rect, appName} instead of just Rectangle.
  • Update getWindowAt to query the collection.

Benefits:

  • Consistency with other Managers (Instance, Component).
  • Built-in observability (mutate events).
  • Simplified code (no manual Map management).
tobiu assigned to @tobiu on Nov 23, 2025, 12:19 PM
tobiu added the enhancement label on Nov 23, 2025, 12:19 PM
tobiu added the ai label on Nov 23, 2025, 12:19 PM
tobiu referenced in commit 2467369 - "Refactor Neo.manager.Window to extend Neo.manager.Base #7875" on Nov 23, 2025, 12:24 PM
tobiu closed this issue on Nov 23, 2025, 12:25 PM