()
| 56 | } catch (reason) { setStatus(reason instanceof Error ? reason.message : String(reason)); } |
| 57 | }; |
| 58 | const download = () => { |
| 59 | const url = URL.createObjectURL(new Blob([report], { type: 'text/plain;charset=utf-8' })); |
| 60 | const anchor = document.createElement('a'); anchor.href = url; anchor.download = 'local-index-diagnosis.txt'; |
| 61 | anchor.click(); URL.revokeObjectURL(url); setStatus('Edited report downloaded locally. Nothing was sent.'); |
| 62 | }; |
| 63 | if (!active) return null; |
| 64 | return <section className="diagnostics-panel" aria-label="Coverage" data-testid="diagnostics-panel"> |
| 65 | <header><div><p className="diagnostics-eyebrow">{project}</p><h2>Coverage</h2>{path && <p>Selected <code>{path}</code></p>}</div></header> |
nothing calls this directly
no test coverage detected