From 2605c1749267dc64c127a0d7376d92c11cc6d9a2 Mon Sep 17 00:00:00 2001 From: Nucleic Date: Sat, 1 Aug 2026 20:29:09 -0700 Subject: [PATCH] Merge nucleic/quiet-fern-viper-bqbc into dev --- NucleicRemote/NucleicRemote/Views/Theme.swift | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Views/Theme.swift b/NucleicRemote/NucleicRemote/Views/Theme.swift index 9442c98..176e226 100644 --- a/NucleicRemote/NucleicRemote/Views/Theme.swift +++ b/NucleicRemote/NucleicRemote/Views/Theme.swift @@ -425,7 +425,21 @@ enum MobileEfforts { static let fallback = "high" static func isOrchestra(_ effort: String) -> Bool { effort == orchestraSentinel } - static func displayName(_ effort: String) -> String { isOrchestra(effort) ? "Orchestra" : effort } + + /// Mirrors the Mac's `ModelCatalog.effortDisplayName` — used only before a `Welcome` catalog + /// (with its own synced labels) has arrived, so this cold-start fallback still reads as plain + /// language rather than a raw wire value like "xhigh". + static func displayName(_ effort: String) -> String { + if isOrchestra(effort) { return "Orchestra" } + switch effort { + case "low": return "Low" + case "medium": return "Medium" + case "high": return "High" + case "xhigh": return "Extra" + case "max": return "Max" + default: return effort.localizedCapitalized + } + } } extension WireModelCatalog {