(accountId, nextStatus)
| 147 | } |
| 148 | |
| 149 | function replaceAccountRowStatus(accountId, nextStatus) { |
| 150 | const normalizedId = Number(accountId || 0); |
| 151 | const normalizedStatus = String(nextStatus || '').trim().toLowerCase(); |
| 152 | if (normalizedId <= 0 || !normalizedStatus) return false; |
| 153 | |
| 154 | const row = elements.table?.querySelector(`tr[data-id="${normalizedId}"]`); |
| 155 | if (!row) return false; |
| 156 | |
| 157 | const statusCell = row.children?.[5]; |
| 158 | if (!statusCell) return false; |
| 159 | |
| 160 | statusCell.innerHTML = renderAccountStatusDot(normalizedStatus, normalizedId); |
| 161 | return true; |
| 162 | } |
| 163 | |
| 164 | function collectValidatedStatusMap(taskOrResult) { |
| 165 | const detailRows = Array.isArray(taskOrResult?.details) |
no test coverage detected