Currently, TimelineCanvas resets the animation whenever onTimelineDataLoad is called without the isResize flag. This works for ticket switches but relies on the assumption that store loads always imply a context switch.
We will verify this behavior and refactor onTimelineDataLoad to:
- Extract the Ticket ID from the first record (e.g.,
timeline-{ticketId}-0).
- Compare it with the previously loaded Ticket ID.
- Only set
reset: true if the Ticket ID has changed.
This ensures that resizing, expanding summaries, or even refreshing data for the same ticket will maintain the animation continuity, while switching tickets will correctly reset it.
Currently,
TimelineCanvasresets the animation wheneveronTimelineDataLoadis called without theisResizeflag. This works for ticket switches but relies on the assumption that store loads always imply a context switch.We will verify this behavior and refactor
onTimelineDataLoadto:timeline-{ticketId}-0).reset: trueif the Ticket ID has changed.This ensures that resizing, expanding summaries, or even refreshing data for the same ticket will maintain the animation continuity, while switching tickets will correctly reset it.