fix(status): preserve cached aircraft age and independent refresh errors

This commit is contained in:
Sameh Khamis committed 2026-09-12 17:12:34 -07:00
1 parent 8eb6d09105
commit dae5f45426
9 files changed
+174 -14

No files matched your search

+2 -2
View File
@@ -81,7 +81,7 @@ export function layerFeedState(stats = {}) {
if (
(presentedError || state.unavailable === true || state.available === false)
&& !hasPriorData
&& !['zoom-in', 'empty', 'idle'].includes(status)
&& !GUIDANCE_STATUSES.includes(status)
) {
return 'unavailable';
}
@@ -90,7 +90,7 @@ export function layerFeedState(stats = {}) {
// operation, not feed faults. One honesty carve-out: layers keep their
// rendered records through the guidance state, so a genuinely stale cache
// still reads STALE; a guidance prompt alone never reads DEGRADED.
if (['zoom-in', 'empty', 'idle'].includes(status)) {
if (GUIDANCE_STATUSES.includes(status)) {
return state.stale ? 'stale' : 'nominal';
}
if (