(filename)
| 112 | }; |
| 113 | |
| 114 | const handleDelete = async (filename) => { |
| 115 | if (!window.confirm(`Delete "${filename}"? This cannot be undone.`)) return; |
| 116 | try { |
| 117 | const result = await deleteDocument(filename); |
| 118 | setAlert({ |
| 119 | type: 'success', |
| 120 | message: `Deleted ${filename} (${result.count} chunks removed).`, |
| 121 | }); |
| 122 | loadDocuments(); |
| 123 | } catch (err) { |
| 124 | setAlert({ type: 'error', message: err.message }); |
| 125 | } |
| 126 | }; |
| 127 | |
| 128 | const handleDownload = async (filename) => { |
| 129 | try { |
nothing calls this directly
no test coverage detected