From 0e1f0d09e5e8f050739e8e2cf615d7ffa9aabe9a Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sun, 22 Feb 2026 04:20:46 +0530 Subject: [PATCH] feat: enhance file upload tooltip with detailed information on limits and guidelines --- surfsense_web/components/assistant-ui/thread.tsx | 11 ++++++++++- .../components/assistant-ui/tooltip-icon-button.tsx | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index 047ac25d8..14e474315 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -18,6 +18,7 @@ import { ChevronLeftIcon, ChevronRightIcon, CopyIcon, + Dot, DownloadIcon, FileWarning, Paperclip, @@ -745,7 +746,15 @@ const ComposerAction: FC = ({
+ Upload and mention files + Max 10 files 50 MB each + Total upload limit: 200 MB +
+ ) + } side="bottom" variant="ghost" size="icon" diff --git a/surfsense_web/components/assistant-ui/tooltip-icon-button.tsx b/surfsense_web/components/assistant-ui/tooltip-icon-button.tsx index 154240cb4..55f7c6a2e 100644 --- a/surfsense_web/components/assistant-ui/tooltip-icon-button.tsx +++ b/surfsense_web/components/assistant-ui/tooltip-icon-button.tsx @@ -1,13 +1,13 @@ "use client"; import { Slottable } from "@radix-ui/react-slot"; -import { type ComponentPropsWithRef, forwardRef } from "react"; +import { type ComponentPropsWithRef, type ReactNode, forwardRef } from "react"; import { Button } from "@/components/ui/button"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; export type TooltipIconButtonProps = ComponentPropsWithRef & { - tooltip: string; + tooltip: ReactNode; side?: "top" | "bottom" | "left" | "right"; };