()
| 125 | } |
| 126 | |
| 127 | function 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 |
| 149 | function openBulkActionsModal() { |
no outgoing calls
no test coverage detected