()
| 13177 | |
| 13178 | const missingCritical = status.missing_critical || []; |
| 13179 | const missingOptional = status.missing_optional || []; |
| 13180 | const anyMissing = missingCritical.length > 0 || missingOptional.length > 0; |
| 13181 | |
| 13182 | const badge = document.getElementById('pwn-health-badge'); |
| 13183 | if (badge) { |
| 13184 | badge.className = 'text-xs font-semibold uppercase tracking-wide px-3 py-1 rounded-full self-start whitespace-nowrap'; |
| 13185 | if (status.installing) { |
| 13186 | // Mid-install the clone/config are transiently absent (especially on a |
| 13187 | // clean reinstall) — don't alarm the user with a red "Needs Repair". |
| 13188 | badge.textContent = 'Installing…'; |
no test coverage detected