Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions LoopSupportKitUI/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
17 changes: 17 additions & 0 deletions LoopSupportKitUI/LoopSupportUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
]
}
Expand All @@ -50,6 +51,22 @@ public final class LoopSupportUI: SupportUI {
AnyView(ReportProblemModal(delegate: delegate))
}

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() { }

public func loopDidReset() { }
Expand Down