Skip to content

Commit 3514009

Browse files
authored
Merge pull request #1470 from trioneer-dev/fix/1451-glucose-on-top
Plot glucose on the top chart layer so carbs and boluses no longer hide it
2 parents a1f3361 + 78515a0 commit 3514009

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

Trio/Sources/Localizations/Main/Localizable.xcstrings

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36762,6 +36762,10 @@
3676236762
}
3676336763
}
3676436764
},
36765+
"Alert Identifier" : {
36766+
"comment" : "The name of the parameter for the alert identifier in the StopCriticalAlertIntent.",
36767+
"isCommentAutoGenerated" : true
36768+
},
3676536769
"Alert Sound" : {
3676636770
"comment" : "A section header for the alert sound settings.",
3676736771
"localizations" : {
@@ -179301,6 +179305,10 @@
179301179305
}
179302179306
}
179303179307
},
179308+
"Manager Identifier" : {
179309+
"comment" : "The title of the parameter for the manager identifier in the StopCriticalAlertIntent.",
179310+
"isCommentAutoGenerated" : true
179311+
},
179304179312
"Manual" : {
179305179313
"comment" : "Manual Bolus",
179306179314
"localizations" : {
@@ -263407,6 +263415,10 @@
263407263415
}
263408263416
}
263409263417
},
263418+
"Stop Trio Alarm" : {
263419+
"comment" : "Title of the intent that stops a Trio critical-alert alarm.",
263420+
"isCommentAutoGenerated" : true
263421+
},
263410263422
"Stopped Override successfully." : {
263411263423
"comment" : "Stopped Override successfully",
263412263424
"localizations" : {

Trio/Sources/Modules/Home/View/Chart/MainChartView.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -929,16 +929,6 @@ extension MainChartCanvas {
929929
viewContext: context
930930
)
931931

932-
GlucoseChartView(
933-
glucoseData: glucose,
934-
units: state.units,
935-
highGlucose: state.highGlucose,
936-
lowGlucose: state.lowGlucose,
937-
currentGlucoseTarget: state.currentGlucoseTarget,
938-
isSmoothingEnabled: state.isSmoothingEnabled,
939-
glucoseColorScheme: state.glucoseColorScheme
940-
)
941-
942932
InsulinView(
943933
glucoseData: glucose,
944934
insulinData: insulin,
@@ -964,6 +954,16 @@ extension MainChartCanvas {
964954
forecastDisplayType: state.forecastDisplayType,
965955
lastDeterminationDate: state.determinationsFromPersistence.first?.deliverAt ?? .distantPast
966956
)
957+
958+
GlucoseChartView(
959+
glucoseData: glucose,
960+
units: state.units,
961+
highGlucose: state.highGlucose,
962+
lowGlucose: state.lowGlucose,
963+
currentGlucoseTarget: state.currentGlucoseTarget,
964+
isSmoothingEnabled: state.isSmoothingEnabled,
965+
glucoseColorScheme: state.glucoseColorScheme
966+
)
967967
}
968968
.frame(width: canvasWidth, height: mainHeight)
969969
.chartXScale(domain: windowStart ... windowEnd)

0 commit comments

Comments
 (0)