From ffffc1a4f6f259f0035e9c58a89c4abe2dc9fc12 Mon Sep 17 00:00:00 2001 From: jarves Date: Wed, 17 Jun 2026 11:02:56 +0000 Subject: [PATCH] feat: add hardware tier badge with recommended settings in Settings UI --- app/frontend/src/components/Settings.jsx | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/app/frontend/src/components/Settings.jsx b/app/frontend/src/components/Settings.jsx index 64c4c2b..b918fda 100644 --- a/app/frontend/src/components/Settings.jsx +++ b/app/frontend/src/components/Settings.jsx @@ -425,6 +425,59 @@ function Settings({ + {/* Hardware Tier Badge */} + {specs?.tier && ( +
+
+ +
+
+ {specs.tier === "high" ? "🚀 High-End PC" : + specs.tier === "mid" ? "⚖️ Balanced PC" : + "🥔 Potato PC"} +
+
+ {specs.cpu_name} • {specs.cpu_cores_physical} cores • {specs.ram_total_gb}GB RAM + {specs.gpu_name && specs.gpu_name !== "Loading..." && ` • ${specs.gpu_name}`} + {specs.gpu_vram_gb > 0 && ` • ${specs.gpu_vram_gb}GB VRAM`} +
+
+
+ {specs.recommended_text_settings && ( +
+
+ Recommended text settings: +
+
+ + Ctx: {specs.recommended_text_settings.contextSize} + + + Threads: {specs.recommended_text_settings.threads} + + + KV: {specs.recommended_text_settings.cacheTypeK} + + + Batch: {specs.recommended_text_settings.batchSize} + +
+
+ )} +
+ )} + {/* Card 3: Image Memory Optimizations */}