Investigate current match live staleness and clean copy

This commit is contained in:
devRaGonSa
2026-06-17 17:55:04 +02:00
parent 7d3abbd0f0
commit 7fcd307ec0
3 changed files with 219 additions and 13 deletions

View File

@@ -282,11 +282,8 @@ function renderKillFeedEvents({ data, events, nodes, state }) {
state.visibleSignature = visibleSignature;
state.visibleCount = visualEvents.length;
}
nodes.feedState.textContent = formatKillFeedCoverage(
data.scope,
visualEvents.length,
events.length,
);
nodes.feedState.textContent = "";
nodes.feedState.hidden = true;
nodes.feedState.classList.remove("historical-state--error");
}
@@ -601,7 +598,9 @@ function renderPlayerStats(data, nodes, state) {
state.visibleSignature = signature;
}
nodes.playerStatsShell.hidden = false;
setState(nodes.playerStatsState, "Estadisticas derivadas de los eventos recientes.");
nodes.playerStatsState.textContent = "";
nodes.playerStatsState.hidden = true;
nodes.playerStatsState.classList.remove("historical-state--error");
}
function renderDetectedPlayerCount(count, nodes) {
@@ -1078,12 +1077,6 @@ function formatDuration(value) {
}
function formatKillFeedCoverage(scope, visibleCount = 0, totalCount = 0) {
if (
visibleCount > 0 &&
(totalCount > visibleCount || scope === "preserved-recent-window")
) {
return `Mostrando las últimas ${visibleCount} bajas detectadas.`;
}
if (scope === "open-admin-log-match-window") {
return "Bajas detectadas en la partida actual.";
}