Polish dashboard layout and stabilize live map refreshes

Preserve map markers, zoom and open details during polling; consolidate technical notes and align interface spacing. Fix empty English translations inserting undefined text and add regression coverage.
This commit is contained in:
alberto committed 2026-10-18 21:14:35 +02:00
1 parent c8941dc199
commit 33f1294405
17 files changed
+277 -50

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ async function wlLoad(fresh=false){
if(!csrf)return;if(fresh)wlRefreshVersion++;
if(wlLoadTask){if(!fresh)return wlLoadTask;await wlLoadTask;return wlLoad();}
const version=wlRefreshVersion,call=station.call;
const task=(async()=>{try{const data=await api('/winlink');if(version!==wlRefreshVersion||!csrf||station.call!==call)return;data.messages=data.messages.filter(m=>!deletedMessageIds.has(m.id));wlData=data;$('#wl-sync-state').textContent=data.sync.text;$('#wl-sync-state').className='wl-state '+data.sync.state;$('#wl-sync-time').textContent=data.sync.at?logTime(data.sync.at)+' · '+mailTimezone():'';wlRender();}catch(e){if(version===wlRefreshVersion)$('#wl-sync-state').textContent=e.message;}})();
const task=(async()=>{try{const data=await api('/winlink',{busy:fresh||!wlData});if(version!==wlRefreshVersion||!csrf||station.call!==call)return;data.messages=data.messages.filter(m=>!deletedMessageIds.has(m.id));wlData=data;$('#wl-sync-state').textContent=data.sync.text;$('#wl-sync-state').className='wl-state '+data.sync.state;$('#wl-sync-time').textContent=data.sync.at?logTime(data.sync.at)+' · '+mailTimezone():'';wlRender();}catch(e){if(version===wlRefreshVersion)$('#wl-sync-state').textContent=e.message;}})();
wlLoadTask=task;try{await task;}finally{if(wlLoadTask===task)wlLoadTask=null;}
}