Merge branch 'stuff' into gemini

This commit is contained in:
JK-le-dev 2025-10-19 11:28:43 -05:00
commit 6ab09eb94e
5 changed files with 15 additions and 66 deletions

View file

@ -20,10 +20,9 @@ export default function ChatHeader({
setIngesting(true);
const res = await fetch("/api/files/import-demo", { method: "POST" });
const json = await res.json().catch(() => ({}));
const imported = json.imported ?? "?";
const skipped = json.skipped ?? "?";
const summary = `Imported: ${imported}, Skipped: ${skipped}`;
setToast(json.error ? `${summary} - ${json.error}` : summary);
setToast(
`Imported: ${json.imported ?? "?"}, Skipped: ${json.skipped ?? "?"}`
);
setTimeout(() => setToast(""), 4000);
} catch (e) {
setToast("Import failed");