Skip to content

Pause updates to the live graph while training is happening#825

Closed
glastonbridge wants to merge 4 commits intoappsfrom
apps-pause-graph-on-training
Closed

Pause updates to the live graph while training is happening#825
glastonbridge wants to merge 4 commits intoappsfrom
apps-pause-graph-on-training

Conversation

@glastonbridge
Copy link
Copy Markdown
Collaborator

Addresses #798

In order to stop visual flicker as the page changes out-of-step with the state machine for the training dialogs, I push the close dialog event onto the back of the event stack after a navigate, so it does not pre-emptively redraw the old page before hitting the navigate action. I also gave the final transitory dialog state a state machine state for clarity's sake though it doesn't do anything practically, it might be overblown.

Screen.Recording.2026-03-27.at.16.31.16.mov

These should now be complete except for Catalan which we'll update again before
we ship.
@github-actions
Copy link
Copy Markdown

glastonbridge and others added 2 commits March 30, 2026 11:19
- Remove NavigatingToTesting enum value, keep stage as TrainingInProgress
- Pause the SmoothieChart via a prop instead of unmounting LiveGraph
- Remove "Training…" overlay text and its i18n string
- Extend pause to cover the pre-train help dialog
@microbit-matt-hillsdon microbit-matt-hillsdon force-pushed the apps-pause-graph-on-training branch from cac88c9 to 831a8b1 Compare March 30, 2026 10:20
@microbit-matt-hillsdon
Copy link
Copy Markdown

I've rebased this on the beta branch, tweaked to pause the graph rather than not render the graph and moved the pause one dialog earlier. I seem unable to change the base of this PR so will reopen. Closing.

microbit-matt-hillsdon added a commit that referenced this pull request Mar 30, 2026
Essentially @glastonbridge's #825 but modified to pause the graph at the help dialog.

Fixes #798

In order to stop visual flicker as the page changes out-of-step with the state machine for the training dialogs, I push the close dialog event onto the back of the event stack after a navigate, so it does not pre-emptively redraw the old page before hitting the navigate action.

---------

Co-authored-by: Alex Shaw <alex.shaw@microbit.org>
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the apps-pause-graph-on-training branch March 30, 2026 11:11
@microbit-matt-hillsdon
Copy link
Copy Markdown

Went into beta via #827

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants