From 8e6d86895435fb2043c0c2e7b95ddd7f312a605d Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 7 May 2026 23:28:26 +0200 Subject: [PATCH] Remove inclusion status tracking and toggle functionality for files and URLs --- src/App.tsx | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 11764a8..41ba47e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,7 +14,6 @@ type FileEntry = { name: string; type: string; size: string; - include: boolean; }; type UrlEntry = { @@ -23,7 +22,6 @@ type UrlEntry = { name: string; type: "url"; size: string; - include: boolean; }; type RowEntry = FileEntry | UrlEntry; @@ -187,13 +185,6 @@ export default function App() { }; }, [files]); - const includeMap = useMemo(() => { - const map: Record = {}; - files.forEach((f) => (map[f.path] = f.include)); - websites.forEach((w) => (map[w.url] = w.include)); - return map; - }, [files, websites]); - const addFilesByPath = async (paths: string[], expandDirs: boolean) => { if (!paths.length) return; setStatus("Indexing files..."); @@ -212,7 +203,6 @@ export default function App() { name: item.name, type: item.type, size: item.size, - include: true, }); } }); @@ -258,7 +248,6 @@ export default function App() { name, type: "url", size: "web", - include: true, }, ]; }); @@ -290,18 +279,6 @@ export default function App() { }); }; - const toggleInclude = (row: RowEntry) => { - if (row.kind === "file") { - setFiles((prev) => - prev.map((f) => (f.path === row.path ? { ...f, include: !f.include } : f)) - ); - } else { - setWebsites((prev) => - prev.map((w) => (w.url === row.url ? { ...w, include: !w.include } : w)) - ); - } - }; - const onRephrase = async () => { if (!ollamaModel || ollamaModel === "Select model...") { window.alert("Please select a model first.");