Skip to content

ADFA-4896 - FQR download: pause/resume in the overlay - #455

Merged
luisguzman-adfa merged 3 commits into
mainfrom
fix/ADFA-4896-fqr-controls
Aug 21, 2026
Merged

luisguzman-adfa merged 3 commits into
mainfrom
fix/ADFA-4896-fqr-controls

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

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).

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".
@luisguzman-adfa
luisguzman-adfa merged commit c36a512 into main Aug 21, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-4896-fqr-controls branch August 21, 2026 13:21
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.

1 participant