From 1dca4cff827f55f3b87a8d964478f6640c74a327 Mon Sep 17 00:00:00 2001 From: Damon Bayer Date: Thu, 26 Nov 2026 11:22:16 -0600 Subject: [PATCH 1/2] Provide the Therapy Settings help link --- LoopSupportKitUI/Localizable.xcstrings | 143 +++++++++++++++++++++++++ LoopSupportKitUI/LoopSupportUI.swift | 18 ++++ 2 files changed, 161 insertions(+) diff --git a/LoopSupportKitUI/Localizable.xcstrings b/LoopSupportKitUI/Localizable.xcstrings index 2d57bb2..c2cdba5 100644 --- a/LoopSupportKitUI/Localizable.xcstrings +++ b/LoopSupportKitUI/Localizable.xcstrings @@ -319,6 +319,149 @@ "Fill in any of these so developers can follow up with you." : { "comment" : "Footer for issue report contact details" }, + "Get help with Therapy Settings" : { + "comment" : "Support button for Therapy Settings", + "localizations" : { + "ar" : { + "stringUnit" : { + "state" : "translated", + "value" : "Get help with Therapy Settings" + } + }, + "da" : { + "stringUnit" : { + "state" : "translated", + "value" : "Få hjælp til indstillinger" + } + }, + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Bekomme Unterstützung bei den Therapieeinstellungen" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Obtener ayuda con la Configuración de la Terapia" + } + }, + "fi" : { + "stringUnit" : { + "state" : "translated", + "value" : "Apua hoitoasetuksiin" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Obtenir de l'aide avec les paramètres de thérapie" + } + }, + "he" : { + "stringUnit" : { + "state" : "translated", + "value" : "Get help with Therapy Settings" + } + }, + "hu" : { + "stringUnit" : { + "state" : "translated", + "value" : "Get help with Therapy Settings" + } + }, + "it" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ottieni assistenza per le impostazioni terapia" + } + }, + "nb" : { + "stringUnit" : { + "state" : "translated", + "value" : "Få hjelp med behandlingsinnstillinger" + } + }, + "nb-NO" : { + "stringUnit" : { + "state" : "translated", + "value" : "Få hjelp med behandlingsinnstillinger" + } + }, + "nl" : { + "stringUnit" : { + "state" : "translated", + "value" : "Krijg hulp bij therapieinstellingen" + } + }, + "pl" : { + "stringUnit" : { + "state" : "translated", + "value" : "Uzyskaj pomoc dotyczącą ustawień terapii" + } + }, + "pt" : { + "stringUnit" : { + "state" : "new", + "value" : "Get help with Therapy Settings" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Get help with Therapy Settings" + } + }, + "ro" : { + "stringUnit" : { + "state" : "translated", + "value" : "Obțineți ajutor cu setările terapiei" + } + }, + "ru" : { + "stringUnit" : { + "state" : "translated", + "value" : "Получить помощь в настройках терапии" + } + }, + "sk" : { + "stringUnit" : { + "state" : "translated", + "value" : "Get help with Therapy Settings" + } + }, + "sv" : { + "stringUnit" : { + "state" : "translated", + "value" : "Få hjälp med behandlingsinställningar" + } + }, + "tr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Tedavi Ayarları ile ilgili yardım alın" + } + }, + "uk" : { + "stringUnit" : { + "state" : "translated", + "value" : "Get help with Therapy Settings" + } + }, + "vi" : { + "stringUnit" : { + "state" : "translated", + "value" : "Nhận trợ giúp về Cài đặt điều trị" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "Get help with Therapy Settings" + } + } + } + }, "GitHub Username" : { "comment" : "Issue report contact GitHub placeholder" }, diff --git a/LoopSupportKitUI/LoopSupportUI.swift b/LoopSupportKitUI/LoopSupportUI.swift index ce141f2..3c71996 100644 --- a/LoopSupportKitUI/LoopSupportUI.swift +++ b/LoopSupportKitUI/LoopSupportUI.swift @@ -50,6 +50,24 @@ public final class LoopSupportUI: SupportUI { AnyView(ReportProblemModal(delegate: delegate)) } + public func therapySettingsHelpView() -> AnyView? { + AnyView( + Link(destination: URL(string: "https://loopkit.github.io/loopdocs/loop-3/therapy-settings/")!) { + HStack { + Text(LocalizedString("Get help with Therapy Settings", comment: "Support button for Therapy Settings")) + .foregroundColor(.primary) + Spacer() + Image(systemName: "chevron.right") + .imageScale(.small) + .font(.headline) + .foregroundColor(.secondary) + .opacity(0.5) + } + .contentShape(Rectangle()) + } + ) + } + public func loopWillReset() { } public func loopDidReset() { } From 29118bcf20d0808abb725053805c98a1ceb9022f Mon Sep 17 00:00:00 2001 From: Damon Bayer Date: Thu, 26 Nov 2026 23:29:29 -0600 Subject: [PATCH 2/2] Register Therapy Settings help through the menu API --- LoopSupportKitUI/LoopSupportUI.swift | 29 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/LoopSupportKitUI/LoopSupportUI.swift b/LoopSupportKitUI/LoopSupportUI.swift index 3c71996..faa3c09 100644 --- a/LoopSupportKitUI/LoopSupportUI.swift +++ b/LoopSupportKitUI/LoopSupportUI.swift @@ -42,6 +42,7 @@ public final class LoopSupportUI: SupportUI { public func configurationMenuItems() -> [LoopKitUI.CustomMenuItem] { return [ CustomMenuItem(section: .support, view: AnyView(ReportProblemMenuItem(support: self))), + CustomMenuItem(section: .therapySettingsSupport, view: AnyView(therapySettingsHelpMenuItem)), CustomMenuItem(section: .configuration, view: AnyView(UsageDataPrivacyPreferenceMenuItem())), ] } @@ -50,22 +51,20 @@ public final class LoopSupportUI: SupportUI { AnyView(ReportProblemModal(delegate: delegate)) } - public func therapySettingsHelpView() -> AnyView? { - AnyView( - Link(destination: URL(string: "https://loopkit.github.io/loopdocs/loop-3/therapy-settings/")!) { - HStack { - Text(LocalizedString("Get help with Therapy Settings", comment: "Support button for Therapy Settings")) - .foregroundColor(.primary) - Spacer() - Image(systemName: "chevron.right") - .imageScale(.small) - .font(.headline) - .foregroundColor(.secondary) - .opacity(0.5) - } - .contentShape(Rectangle()) + private var therapySettingsHelpMenuItem: some View { + Link(destination: URL(string: "https://loopkit.github.io/loopdocs/loop-3/therapy-settings/")!) { + HStack { + Text(LocalizedString("Get help with Therapy Settings", comment: "Support button for Therapy Settings")) + .foregroundColor(.primary) + Spacer() + Image(systemName: "chevron.right") + .imageScale(.small) + .font(.headline) + .foregroundColor(.secondary) + .opacity(0.5) } - ) + .contentShape(Rectangle()) + } } public func loopWillReset() { }