Reduce polling and batch observation writes

This commit is contained in:
2569718930@qq.com
2026-06-08 15:12:41 +08:00
parent 96dde3b50e
commit 8f6925108c
12 changed files with 281 additions and 24 deletions
@@ -168,6 +168,12 @@ export async function runTests() {
dashboardSource.includes('document.visibilityState === "hidden"'),
"terminal online-user presence should refresh slowly and pause while the browser tab is hidden",
);
assert(
dashboardSource.includes("AUTH_PROFILE_RETRY_INITIAL_DELAY_MS = 5_000") &&
dashboardSource.includes("AUTH_PROFILE_RETRY_POLL_MS = 30_000") &&
!dashboardSource.includes("}, 5000);"),
"terminal auth subscription retry should back off after the first retry instead of polling auth/me every 5 seconds",
);
assert(
chartSource.includes("IntersectionObserver") &&
chartSource.includes("shouldFetchCityDetailForChart") &&