()
| 122 | }, [source]); |
| 123 | const moveTo = (line: number) => setPageWindow({ key: targetKey, start: line }); |
| 124 | const copy = async () => { |
| 125 | try { |
| 126 | await navigator.clipboard.writeText(`${target.filePath}:${requestedLine ?? firstLine ?? 1}`); |
| 127 | if (activeKey.current === readKey) { setCopiedKey(readKey); setCopyError(undefined); } |
| 128 | } catch { |
| 129 | if (activeKey.current === readKey) setCopyError({ key: readKey, message: 'Copy unavailable. Select the location above to copy it manually.' }); |
| 130 | } |
| 131 | }; |
| 132 | return <aside className="source-evidence-drawer" role="dialog" aria-modal="false" aria-label="Source evidence" onKeyDown={event => { |
| 133 | if (event.key === 'Escape') { event.preventDefault(); event.stopPropagation(); onClose(); } |
| 134 | }}> |
no outgoing calls
no test coverage detected