A free, open source, and extensible speech-to-text application that works completely offline.
Declutter model cards (only show quantization label on modelcard in debug mode) (#1685)
Mika Krul4357c728d967
diff --git a/src/components/onboarding/ModelCard.tsx b/src/components/onboarding/ModelCard.tsxindex a0285cd8..7da33206 100644--- a/src/components/onboarding/ModelCard.tsx+++ b/src/components/onboarding/ModelCard.tsx@@ -22,6 +22,7 @@ import {} from "../../lib/constants/languages";import Badge from "../ui/Badge";import { Button } from "../ui/Button";+import { useSettingsStore } from "@/stores/settingsStore";// Get display text for model's language supportconst getLanguageDisplayText = (@@ -91,6 +92,9 @@ const ModelCard: React.FC<ModelCardProps> = ({showRecommended = true,}) => {const { t } = useTranslation();+ const debugMode = useSettingsStore(+ (state) => state.settings?.debug_mode ?? false,+ );const isFeatured = variant === "featured";const isClickable =status === "available" || status === "active" || status === "downloadable";@@ -264,7 +268,9 @@ const ModelCard: React.FC<ModelCardProps> = ({<HardDrive className="w-3.5 h-3.5" />)}<span>{formattedModelSize}</span>- {quantLabel && <span className="text-text/40">{quantLabel}</span>}+ {debugMode && quantLabel && (+ <span className="text-text/40">{quantLabel}</span>+ )}</span>)}{onDelete && (status === "available" || status === "active") && (