diff --git a/web/public/locales/en/views/chat.json b/web/public/locales/en/views/chat.json index a2fc7ed799..6d78dc71f8 100644 --- a/web/public/locales/en/views/chat.json +++ b/web/public/locales/en/views/chat.json @@ -12,6 +12,7 @@ "result": "Result", "arguments": "Arguments:", "response": "Response:", + "attachment_chip_label": "{{label}} on {{camera}}", "attachment_chip_remove": "Remove attachment", "open_in_explore": "Open in Explore", "attach_event_aria": "Attach event {{eventId}}", diff --git a/web/src/components/chat/ChatEventThumbnailsRow.tsx b/web/src/components/chat/ChatEventThumbnailsRow.tsx index 89f385d4de..a12153e894 100644 --- a/web/src/components/chat/ChatEventThumbnailsRow.tsx +++ b/web/src/components/chat/ChatEventThumbnailsRow.tsx @@ -1,6 +1,11 @@ import { useApiHost } from "@/api"; import { useTranslation } from "react-i18next"; import { LuExternalLink } from "react-icons/lu"; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; type ChatEvent = { id: string; score?: number }; @@ -50,21 +55,21 @@ export function ChatEventThumbnailsRow({ loading="lazy" /> - e.stopPropagation()} - className="absolute right-1 top-1 flex size-6 items-center justify-center rounded bg-black/60 text-white hover:bg-black/80" - aria-label={t("open_in_explore")} - > - - - {typeof event.score === "number" && !isAnchor && ( - - {Math.round(event.score * 100)}% - - )} + + + e.stopPropagation()} + className="absolute right-1 top-1 flex size-6 items-center justify-center rounded bg-black/60 text-white hover:bg-black/80" + aria-label={t("open_in_explore")} + > + + + + {t("open_in_explore")} + {isAnchor && ( {t("anchor")}