diff --git a/apps/web/src/components/common/tool-card.tsx b/apps/web/src/components/common/tool-card.tsx index a8c2584e..2216939a 100644 --- a/apps/web/src/components/common/tool-card.tsx +++ b/apps/web/src/components/common/tool-card.tsx @@ -1,6 +1,6 @@ import type { Tool } from "@snapotter/shared"; import { MODALITIES, PYTHON_SIDECAR_TOOLS, TOOL_BUNDLE_MAP } from "@snapotter/shared"; -import { Clock, Download, FileImage, Loader2, Star } from "lucide-react"; +import { Clock, Download, FileImage, Loader2 } from "lucide-react"; import { useMemo } from "react"; import { Link } from "react-router-dom"; import { useTranslation } from "@/contexts/i18n-context"; @@ -38,12 +38,14 @@ export function ToolCard({ tool, variant = "compact", showModalityBadge }: ToolC return bundle?.status === "installed" ? "installed" : "not_installed"; }, [isAiTool, tool.id, bundles, installing, queued]); + const modalityColor = MODALITY_COLOR_MAP[tool.modality] ?? "#6B7280"; + const modalityBadge = showModalityBadge ? ( {MODALITIES.find((m) => m.id === tool.modality)?.name ?? tool.modality} @@ -52,20 +54,14 @@ export function ToolCard({ tool, variant = "compact", showModalityBadge }: ToolC const aiStatusIcon = aiStatus === "not_installed" ? ( - <> -