mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 11:42:21 +00:00
fix(recent-imagery): keep drapes and proven halves steady across re-probes
- The renderer compares the rectangles it actually drapes, so a probe that confirms the same halves no longer rebuilds a shown layer. - A re-probe of a present day keeps a side it proved earlier through a transient failure and drops it only on fresh empty evidence. - DETAILS shows partial coverage when a side is confirmed empty; the presentBoxes contract of the source is documented. - probeHalf, the presentBoxes filter, requestBoxes and mount are simplified; the frozen-response Proxy is gone. - Duplicate source tests move into their own suites and share the existing fixtures; tests pin the exact ±180 seam and the dateline refusals. - Comments, CURRENT-STATE and the changelog fragment are shortened and match the JPEG / PNG drape rules.
This commit is contained in:
1 parent
ccffaeca4d
commit
fc137bef85
21 files changed
+715
-1093
No files matched your search
@@ -549,8 +549,8 @@ export function createRecentImageryLayer({
|
||||
: (slotId === 'a') !== _swapped
|
||||
? 'left'
|
||||
: 'right',
|
||||
// Keep every half except those confirmed empty by the probe.
|
||||
availableBoxes: thumbnails.get(candidate.key)?.availableBoxes ?? null,
|
||||
// The halves the probe lets this product drape, unknown before it answers.
|
||||
availableBoxes: thumbnails.get(candidate.key)?.availableBoxes,
|
||||
});
|
||||
} else {
|
||||
renderer.hideSlot(slotId);
|
||||
@@ -820,7 +820,6 @@ export function createRecentImageryLayer({
|
||||
// preview; both change more than the cards, so a full notification
|
||||
// follows the thumbnail one.
|
||||
const pruned = pruneEmpty();
|
||||
if (pruned) syncRender();
|
||||
const followed =
|
||||
Boolean(_followKey) &&
|
||||
_followKey === _focusKey &&
|
||||
@@ -832,9 +831,8 @@ export function createRecentImageryLayer({
|
||||
const drapesChanged = SLOT_IDS.some(
|
||||
(slotId) => (owned[slotId]?.key || null) !== shown[slotId],
|
||||
);
|
||||
// The key can stay the same while a new probe changes its boxes.
|
||||
// showSlot itself avoids rebuilding an unchanged drape.
|
||||
if (!pruned && !followed) syncRender();
|
||||
// One render per probe: the key can stay the same while its halves change.
|
||||
if (!followed) syncRender();
|
||||
notify('thumbnail');
|
||||
if (pruned || followed || drapesChanged) notify();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user