Skip to content

fix(timelapse): parse timelapse status consistently#1829

Merged
pedrolamas merged 1 commit into
fluidd-core:developfrom
matmen:fix/timelapse-status
May 4, 2026
Merged

fix(timelapse): parse timelapse status consistently#1829
pedrolamas merged 1 commit into
fluidd-core:developfrom
matmen:fix/timelapse-status

Conversation

@matmen

@matmen matmen commented May 3, 2026

Copy link
Copy Markdown
Member

fixes #1820

Signed-off-by: Mathis Mensing <github@matmen.dev>
@matmen matmen requested a review from pedrolamas May 3, 2026 17:18
@matmen matmen added the GH - Bug Something isn't working label May 3, 2026
@pedrolamas pedrolamas added this to the 1.37 milestone May 4, 2026
@pedrolamas pedrolamas requested a review from Copilot May 4, 2026 22:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Timelapse Status widget’s frame counter resetting on newframe websocket events by ensuring the timelapse store always receives/derives data using the same shape as Moonraker’s LastFrameInfoResponse.

Changes:

  • Update timelapse/onEvent handling for newframe to commit { framecount, lastframefile } (matching Moonraker’s LastFrameInfoResponse) instead of { count, uniqueCount, file }.
  • Make getLastFrame.uniqueCount derive consistently from framecount (with a fallback to parsing the frame number from lastframefile).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/store/timelapse/actions.ts Fix newframe event handling to commit the correct LastFrameInfoResponse shape so state updates don’t wipe the counter.
src/store/timelapse/getters.ts Compute uniqueCount from framecount (fallback to filename parsing) while mapping lastframefilefile for UI consumption.

@pedrolamas pedrolamas merged commit 5dd6a96 into fluidd-core:develop May 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timelapse Status widget frame counter resets to 0/0 on every new frame event

3 participants