LearnNewsExamplesServices
Frontmatter
id8584
titleImplement ResizeObserver on Ticket Summary to Drive Timeline Animation
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 13, 2026, 1:23 AM
updatedAtJan 13, 2026, 11:18 AM
githubUrlhttps://github.com/neomjs/neo/issues/8584
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 13, 2026, 3:14 AM

Implement ResizeObserver on Ticket Summary to Drive Timeline Animation

Closed v11.21.0 enhancementai
tobiu
tobiu commented on Jan 13, 2026, 1:23 AM

Currently, expanding the ticket summary on short timelines does not trigger a container resize, causing the TimelineCanvas to desynchronize. The fallback setTimeout loop is brittle.

We will replace this with a robust, event-driven approach:

  1. Inject ID: Assign a stable ID (details-{componentId}) to the <details> element in the Markdown generation.
  2. Observe: Register Neo.main.addon.ResizeObserver on this ID in afterSetMounted.
  3. Listen: Add a resize DOM listener (delegated to details) in Component.mjs.
  4. Update: Fire toggleSummary on resize, which triggers CanvasWrapper to update the TimelineCanvas.

This ensures precise, frame-by-frame synchronization during the expansion animation.

tobiu added the enhancement label on Jan 13, 2026, 1:23 AM
tobiu added the ai label on Jan 13, 2026, 1:23 AM
tobiu referenced in commit 9691bc8 - "#8583, #8584, removed obsolete onContentClick (edit&refresh) logic" on Jan 13, 2026, 3:14 AM
tobiu closed this issue on Jan 13, 2026, 3:14 AM
tobiu assigned to @tobiu on Jan 13, 2026, 11:18 AM