clay-server 2.29.4-beta.1 → 2.29.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -311,7 +311,11 @@ export function renderProjectList() {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
//
|
|
314
|
+
// Clear stale socket status from all project dots, then re-apply to active
|
|
315
|
+
var allDots = document.querySelectorAll("#icon-strip-projects .icon-strip-status");
|
|
316
|
+
for (var di = 0; di < allDots.length; di++) {
|
|
317
|
+
allDots[di].classList.remove("connected", "processing");
|
|
318
|
+
}
|
|
315
319
|
var dot = _ctx.getStatusDot();
|
|
316
320
|
if (dot) {
|
|
317
321
|
if (_ctx.connected && _ctx.processing) { dot.classList.add("connected"); dot.classList.add("processing"); }
|
|
@@ -1198,6 +1198,11 @@ export function renderIconStrip(projects, currentSlug) {
|
|
|
1198
1198
|
for (var fi = 0; fi < items.length; fi++) {
|
|
1199
1199
|
var isNowActive = items[fi].dataset.slug === currentSlug && !currentDmUserId2;
|
|
1200
1200
|
items[fi].classList.toggle("active", isNowActive);
|
|
1201
|
+
// Clear stale socket status dot from inactive items
|
|
1202
|
+
if (!isNowActive) {
|
|
1203
|
+
var statusDot = items[fi].querySelector(".icon-strip-status");
|
|
1204
|
+
if (statusDot) statusDot.classList.remove("connected", "processing");
|
|
1205
|
+
}
|
|
1201
1206
|
// Update unread badge visibility (active items hide their badge)
|
|
1202
1207
|
var badge = items[fi].querySelector(".icon-strip-project-badge");
|
|
1203
1208
|
if (badge && badge.classList.contains("has-unread") && isNowActive) {
|