fix(imagery): re-probe cancelled auto-preview successor (merge main)

Reschedule thumbnail intent when pruning an empty automatic day changes
follow/preview, so a scrolled-off VIIRS successor cannot stay pending.

Add node:test regression for the cancelled successor. Preserve current main's
voice-cancel handling and changelog/docs. Review credit: gekh and
quanticsoul4772.

Tests not run locally; verify with node --test.
This commit is contained in:
Kevin Rajan committed 2026-11-10 10:48:03 -06:00
commit 4554cdf5c6
793 files changed
+139589 -3309

No files matched your search

+20
View File
@@ -822,7 +822,17 @@ export function createRecentImageryLayer({
// A probe can take a pinned day off the map or let a followed focus
// preview; both change more than the cards, so a full notification
// follows the thumbnail one.
const previousFollow = _followKey;
const previousPreview = _previewKey;
const pruned = pruneEmpty();
if (
pruned &&
(_followKey !== previousFollow || _previewKey !== previousPreview)
) {
// A new automatic day can have had its probe cancelled while offscreen.
// Re-request it even when the visible window has not moved.
requestThumbnails();
}
if (pruned) syncRender();
const followed =
Boolean(_followKey) &&
@@ -1214,6 +1224,16 @@ export function createRecentImageryLayer({
notify('alpha');
},
/** Stop catalog/preview work owned by a cancelled voice action. */
cancelPendingSearch() {
// Without a note the emptied strip would read as "no imagery".
if (_searching) _notice = msg('Search cancelled');
cancelSearch();
clearPending();
syncRender();
notify();
},
/**
* Forget the box, the candidates, both pins, the preview and any pending
* pick; reset opacity and split and cancel the box tool. Mode and