Переглянути джерело

Fix build: drop stray CGM-lifetime fragment from HomeRootView

HomeRootView's glucoseView passed cgmProgress/cgmStatus/cgmSensorExpiresAt/
cgmWarmupEndsAt to CurrentGlucoseView, but those args and the backing
Home.StateModel members exist only on the CGM-lifetime-indicator feature
(feat/dev-libre3), not on this PR's base (feat/o5). The supporting code was
never merged here, so the target didn't compile. Revert glucoseView to the
feat/o5 form (no CGM-lifetime args; restore .scaleEffect(0.9)); the feature
belongs in its own merge.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
James Woglom 2 тижнів тому
батько
коміт
837ac4444b
1 змінених файлів з 13 додано та 17 видалено
  1. 13 17
      Trio/Sources/Modules/Home/View/HomeRootView.swift

+ 13 - 17
Trio/Sources/Modules/Home/View/HomeRootView.swift

@@ -133,24 +133,20 @@ extension Home {
                 cgmAvailable: state.cgmAvailable,
                 currentGlucoseTarget: state.currentGlucoseTarget,
                 glucoseColorScheme: state.glucoseColorScheme,
-                glucose: state.latestTwoGlucoseValues,
-                cgmProgress: state.cgmProgressHighlight,
-                cgmStatus: state.cgmDisplayState,
-                cgmSensorExpiresAt: state.cgmSensorExpiresAt,
-                cgmWarmupEndsAt: state.cgmWarmupEndsAt
-            )
-            .onTapGesture {
-                if !state.cgmAvailable {
-                    showCGMSelection.toggle()
-                } else {
-                    state.shouldDisplayCGMSetupSheet.toggle()
+                glucose: state.latestTwoGlucoseValues
+            ).scaleEffect(0.9)
+                .onTapGesture {
+                    if !state.cgmAvailable {
+                        showCGMSelection.toggle()
+                    } else {
+                        state.shouldDisplayCGMSetupSheet.toggle()
+                    }
+                }
+                .onLongPressGesture {
+                    let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
+                    impactHeavy.impactOccurred()
+                    state.showModal(for: .snooze)
                 }
-            }
-            .onLongPressGesture {
-                let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
-                impactHeavy.impactOccurred()
-                state.showModal(for: .snooze)
-            }
         }
 
         var pumpView: some View {