MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / updateRunsStatus

Function updateRunsStatus

codeclash/viewer/static/js/picker.js:127–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127function updateRunsStatus() {
128 const statusElement = document.getElementById("runs-status");
129 if (!statusElement) return;
130
131 // Count visible rows
132 const allRows = document.querySelectorAll(".game-row");
133 const visibleRows = Array.from(allRows).filter(
134 (row) => row.style.display !== "none",
135 );
136 const listedCount = visibleRows.length;
137
138 // Count checked rows among visible ones
139 const markedCount = visibleRows.filter((row) => {
140 const checkbox = row.querySelector("input[data-path]");
141 return checkbox && checkbox.checked;
142 }).length;
143
144 // Update display
145 statusElement.textContent = `${listedCount} runs listed (${markedCount} selected)`;
146}
147
148// Modal functions
149function openBulkActionsModal() {

Callers 4

toggleSelectAllFunction · 0.85
updateSelectAllCheckboxFunction · 0.85
picker.jsFile · 0.85
applyFiltersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected