()
| 363 | } |
| 364 | |
| 365 | function collectRepairKeysFromSelectedRun() { |
| 366 | const run = selfcheckState.selectedRun; |
| 367 | if (!run) return []; |
| 368 | const checks = Array.isArray(run?.result_data?.checks) ? run.result_data.checks : []; |
| 369 | const keys = []; |
| 370 | checks.forEach((check) => { |
| 371 | const fixes = Array.isArray(check?.fixes) ? check.fixes : []; |
| 372 | fixes.forEach((key) => { |
| 373 | const text = String(key || '').trim(); |
| 374 | if (text && !keys.includes(text)) { |
| 375 | keys.push(text); |
| 376 | } |
| 377 | }); |
| 378 | }); |
| 379 | if (keys.length) return keys; |
| 380 | return Object.keys(selfcheckState.repairCatalog || {}); |
| 381 | } |
| 382 | |
| 383 | function collectCheckedPreviewKeys() { |
| 384 | const nodes = Array.from(document.querySelectorAll('.repair-center-key:checked')); |
no outgoing calls
no test coverage detected