Refresh history loading UI and gate incomplete MGM series

This commit is contained in:
2569718930@qq.com
2026-03-29 21:21:52 +08:00
parent efb5e426b7
commit 5b0506a663
3 changed files with 208 additions and 44 deletions
+4 -1
View File
@@ -2252,6 +2252,9 @@ export function getHistorySummary(
}, 0);
const mgmSeriesComplete =
settledData.length >= 2 && mgmSettledCount === settledData.length;
const mgmSeries = mgmSeriesComplete
? recentData.map((row) => row.mgm ?? null)
: recentData.map(() => null);
return {
dates: recentData.map((row) => row.date),
@@ -2281,7 +2284,7 @@ export function getHistorySummary(
? Number(((hits / debErrors.length) * 100).toFixed(0))
: null,
mgmSeriesComplete,
mgms: recentData.map((row) => row.mgm ?? null),
mgms: mgmSeries,
recentData,
settledCount: comparableSettledData.length,
actuals: recentData.map((row) => row.actual),