TSA-328: [Bug] Document page: Pause button flickers Resume-Pause-Resume when clicked on a slow connection right as a poll request lands - #345
Merged
Conversation
arturobdev
self-requested a review
September 22, 2026 00:53
…icking-after-pause
…icking-after-pause
RomanNabukhotniidev
approved these changes
Sep 23, 2026
arturobdev
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #328
1. Fixed UI Flickering on Pause Action
Issue:
When the user clicks the Pause button while a progress-polling request is already in-flight, the stale response from the poll (returning
processingstatus) arrives after the click and temporarily overwrites the optimistic UI state. Once thepausemutation resolves, the UI corrects itself back topaused. This causes a jarring visual flicker where the control jumps betweenResumeandPausestates.Solution:
PAUSED.2. Resolved Resume Action Failure on Out-of-Sync Document States
Issue (Discovered during testing):
If a document transitioned to a non-pausable state (e.g.,
doneorbudget_stop) on the backend while paused, clicking Resume was repeatedly throwing a server-side error. This occurred because the backend strict-checked fordocument.status === DocumentStatus.PAUSE, rejecting the request.Solution:
PAUSED.documentobject, allowing the client side to immediately synch and reflect the actual backend status without breaking the UI flow.How to Verify
doneorbudget_stopstate, click Resume, and verify that no server error is thrown and the client UI updates immediately with the fresh document state.