From 37c7680323fc62fc38681e87262e8e195814ed82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bj=C3=B6rkert?= Date: Wed, 21 Oct 2026 07:46:13 +0200 Subject: [PATCH] Label Loop automatic boluses as Auto Bolus in the chart The chart popup for an automatic bolus says SMB for every system. Loop does not use SMBs, so for Loop it now says Auto Bolus and other systems keep SMB. --- LoopFollow/Charts/BGChartModel.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LoopFollow/Charts/BGChartModel.swift b/LoopFollow/Charts/BGChartModel.swift index ab6deeb67..a9b8815d7 100644 --- a/LoopFollow/Charts/BGChartModel.swift +++ b/LoopFollow/Charts/BGChartModel.swift @@ -492,6 +492,7 @@ final class BGChartModel: ObservableObject { detail: $0.detail ) }, minGap: Spread.carbGap, maxShift: Spread.carbShift) + let automaticBolusTitle = isLoop ? "Auto Bolus" : "SMB" let smbPoints = (showBolus ? vc.smbData : []).map { let dose = self.formatDose($0.value) return TreatmentPoint( @@ -499,7 +500,7 @@ final class BGChartModel: ObservableObject { value: $0.value, sgv: Double($0.sgv), label: dose, - pillText: "SMB\n\(dose)U\n\(pillTimeString(for: Date(timeIntervalSince1970: $0.date)))", + pillText: "\(automaticBolusTitle)\n\(dose)U\n\(pillTimeString(for: Date(timeIntervalSince1970: $0.date)))", detail: $0.detail ) }