diff --git a/surfsense_web/components/sources/DocumentUploadTab.tsx b/surfsense_web/components/sources/DocumentUploadTab.tsx index 7176afae5..9a32e5a59 100644 --- a/surfsense_web/components/sources/DocumentUploadTab.tsx +++ b/surfsense_web/components/sources/DocumentUploadTab.tsx @@ -1,7 +1,7 @@ "use client"; import { useAtom } from "jotai"; -import { CheckCircle2, ChevronDown, File as FileIcon, FileType, FolderOpen, Plus, Upload, X } from "lucide-react"; +import { ChevronDown, Dot, File as FileIcon, FolderOpen, Upload, X } from "lucide-react"; import { useTranslations } from "next-intl"; import { useCallback, useMemo, useRef, useState } from "react"; @@ -22,7 +22,6 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; -import { Label } from "@/components/ui/label"; import { Progress } from "@/components/ui/progress"; import { Spinner } from "@/components/ui/spinner"; import { Switch } from "@/components/ui/switch"; @@ -362,12 +361,12 @@ export function DocumentUploadTab({ return ( e.stopPropagation()}> - - e.stopPropagation()}> + e.stopPropagation()}> Files @@ -416,32 +415,31 @@ export function DocumentUploadTab({ {renderBrowseButton({ compact: true, fullWidth: true })} ) : ( - + ) ) ) : (
{ if (!isElectron) fileInputRef.current?.click(); }} > - -
-

+ +

+

{isElectron ? "Select files or folder" : "Tap to select files"}

-

- {t("file_size_limit")}{" "} - {t("upload_limits", { maxFiles: MAX_FILES, maxSizeMB: MAX_TOTAL_SIZE_MB })} +

+ {t("file_size_limit")} + + {t("upload_limits", { maxFiles: MAX_FILES, maxSizeMB: MAX_TOTAL_SIZE_MB })}

{isElectron && ( @@ -491,9 +489,10 @@ export function DocumentUploadTab({

{t("drag_drop")}

-

- {t("file_size_limit")}{" "} - {t("upload_limits", { maxFiles: MAX_FILES, maxSizeMB: MAX_TOTAL_SIZE_MB })} +

+ {t("file_size_limit")} + + {t("upload_limits", { maxFiles: MAX_FILES, maxSizeMB: MAX_TOTAL_SIZE_MB })}

{renderBrowseButton()}
@@ -520,28 +519,29 @@ export function DocumentUploadTab({
-
- - -
- -
-
-

Enable AI Summary

-

- Improves search quality but adds latency -

+
+
+
+

Watch folder

+

+ Auto-sync when files change +

+
+ +
+
+
+

Enable AI Summary

+

+ Improves search quality but adds latency +

+
+
-