Repository navigation
ADFA-4896 - FQR download: pause/resume in the overlay - #455
Merged
Merged
Conversation
Add a Pause/Resume control to the FQR maps overlay, driving the REST job's pause/resume endpoints (ADFA-4894). MapsRegionClient gains pause()/resume(), a 'paused' poll case, and an onPaused() listener hook; FqrController shows the button next to Cancel, flips its label on state, and renders "Paused - X%". Reuses the existing ADFA-5119 strings, so no new i18n.
There is no maps checkpoint, so resume re-extracts from 0 -- calling it Pause/Resume implied a continuation that doesn't happen. Relabel to Stop (running) -> Retry (stopped), with status "Stopped" (no percent, which would imply a resume point). Behavior and endpoints are unchanged; reuses existing translated strings (no new i18n). Real pause/continue would need changes to the upstream tile-extract.py (ADFA-4898).
Code-review follow-ups on the FQR control: - The optimistic label flip in toggleStop fought the poll, bouncing the button for ~1 cycle. The poll (onPaused/onProgress) is now the SOLE writer of the label/state; the tap only fires the verb and disables the button until the next poll confirms (re-enabled there). No more flicker. - onPaused freezes the progress bar (determinate) so it stops animating under "Stopped".
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.
What: Adds a Pause/Resume control to the FQR maps overlay, driving the REST job's pause/resume endpoints (ADFA-4894, already on main).
MapsRegionClient: pause()/resume(), a paused poll case, and an onPaused() listener hook (default no-op).
FqrController: Pause button next to Cancel; togglePause() fires pause/resume; onPaused shows "Paused · X%" and flips the button to Resume; onProgress flips it back; overlay state reset on hide.
Reuses the existing ADFA-5119 strings — no new i18n.
Scope: This is the pause/resume slice of 4896. Cancel already exists; the cancel auto-clean of the partial FQR and the failed-extract retry path (rest of the 4896 acceptance) are not in this PR.
Verification: build + device — start an FQR region download → Pause shows "Paused · X%" + Resume → Resume continues via --continue to done; Cancel unchanged. Needs the box on the B1 dashboard (already on main).