Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
efa7700
[LOOP-4681] initial meals main screen UI; tab bar updates
SwiftlyNoah Jul 13, 2023
b81f889
[CPA-62] Remove trendRateUnit from Glucose Store
Camji55 Jul 17, 2023
8240def
[LOOP-4685] secret favorites foods feature unlock
SwiftlyNoah Jul 19, 2023
ab9d9b9
[CPA-62] Remove trendRateUnit from Glucose Store
Camji55 Jul 21, 2023
1256b0e
[LOOP-4685] Add favorite foods to user defaults; renaming
SwiftlyNoah Jul 24, 2023
10f96c0
Merge pull request #582 from tidepool-org/noah/LOOP-4681-new-meals-ma…
SwiftlyNoah Jul 25, 2023
ea9e39b
Fix accessibility label for UI test
SwiftlyNoah Jul 25, 2023
79b648b
Merge pull request #584 from tidepool-org/noah/ui-test-fix
SwiftlyNoah Jul 26, 2023
e5efa6b
Remove CURRENT_PROJECT_VERSION override
ps2 Jul 27, 2023
655f7e1
Merge remote-tracking branch 'origin/dev' into ps2/LOOP-4688/diy-sync
ps2 Jul 28, 2023
3f5b148
Recompute insulin effect if insulinEffectStartDate is earlier than la…
ps2 Jul 31, 2023
480ad6f
Update error messages
ps2 Aug 9, 2023
e71e7ae
Merge pull request #585 from tidepool-org/ps2/LOOP-4688/diy-sync
ps2 Aug 9, 2023
fd8f1f9
[LOOP-4691] Move favorite foods to settings
SwiftlyNoah Aug 9, 2023
86404f7
[LOOP-4699] StoredFavoriteFood, main screen design updates
SwiftlyNoah Aug 10, 2023
04980c5
[LOOP-4690] Add/Edit/Detail for favorite foods
SwiftlyNoah Aug 10, 2023
882cbff
Merge commit '7b234dba046ac6ef554bf3cb115e501d53a14347'
ps2 Aug 10, 2023
c25ca70
[LOOP-4684] Carb Entry SwiftUI Refactor
SwiftlyNoah Aug 10, 2023
4a8ae67
[LOOP-4687] favorite food carb entry flow
SwiftlyNoah Aug 10, 2023
5baebff
[LOOP-4685] favorite foods feature flag; UserDefaults
SwiftlyNoah Aug 10, 2023
c50eabd
Formatter/localization updates
SwiftlyNoah Aug 11, 2023
e589d2f
Simplify expanded row code
SwiftlyNoah Aug 11, 2023
e5fd6b4
CarbEntryView DIY features: missed meal, override warning
SwiftlyNoah Aug 11, 2023
8059823
Remove unused code, move files from LoopKit
SwiftlyNoah Aug 14, 2023
9ff798e
Merge pull request #587 from tidepool-org/noah/LOOP-4682-favorite-foods
SwiftlyNoah Aug 14, 2023
859f18a
Merge remote-tracking branch 'origin/dev' into ps2/LOOP-4696/algorith…
ps2 Aug 14, 2023
05974e7
UI test fix
SwiftlyNoah Aug 14, 2023
686f7a5
Merge pull request #588 from tidepool-org/noah/ui-test-fix
SwiftlyNoah Aug 14, 2023
6b250a0
Merge remote-tracking branch 'origin/dev' into ps2/LOOP-4696/algorith…
ps2 Aug 14, 2023
cbf0590
Merge pull request #586 from tidepool-org/ps2/LOOP-4696/algorithm-test
ps2 Aug 15, 2023
f6135aa
Asset override for Widgets (#589)
SwiftlyNoah Aug 15, 2023
3739ae0
Remove unused code (#590)
SwiftlyNoah Aug 15, 2023
140c2db
update gitignore (#591)
SwiftlyNoah Aug 15, 2023
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ VersionOverride.xcconfig

Loop/DerivedAssets.xcassets/*
WatchApp/DerivedAssets.xcassets/*
Loop\ Widget\ Extension/DerivedAssets.xcassets/*
# ...except, keep Contents.json
!Loop/DerivedAssets.xcassets/Contents.json
!WatchApp/DerivedAssets.xcassets/Contents.json
!Loop\ Widget\ Extension/DerivedAssets.xcassets/Contents.json

Loop/DerivedAssetsOverride.xcassets
WatchApp/DerivedAssetsOverride.xcassets
Loop\ Widget\ Extension/DerivedAssetsOverride.xcassets
17 changes: 16 additions & 1 deletion Common/FeatureFlags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ extension FeatureFlagConfiguration : CustomDebugStringConvertible {
"* adultChildInsulinModelSelectionEnabled: \(adultChildInsulinModelSelectionEnabled)",
"* profileExpirationSettingsViewEnabled: \(profileExpirationSettingsViewEnabled)",
"* missedMealNotifications: \(missedMealNotifications)",
"* allowAlgorithmExperiments: \(allowAlgorithmExperiments)"
"* allowAlgorithmExperiments: \(allowAlgorithmExperiments)",
"* allowExperimentalFeatures: \(allowExperimentalFeatures)"
].joined(separator: "\n")
}
}
Expand All @@ -290,6 +291,20 @@ extension FeatureFlagConfiguration {
#endif
}

var allowExperimentalFeatures: Bool {
#if EXPERIMENTAL_FEATURES_ENABLED
return true
#elseif EXPERIMENTAL_FEATURES_ENABLED_CONDITIONALLY
if debugEnabled {
return true
} else {
return UserDefaults.appGroup?.allowExperimentalFeatures ?? false
}
#else
return false
#endif
}

var allowSimulators: Bool {
#if SIMULATORS_ENABLED
return true
Expand Down
5 changes: 2 additions & 3 deletions Common/Models/StatusExtensionContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ extension GlucoseDisplayableContext: RawRepresentable {
trendType = nil
}

if let trendRateUnit = rawValue["trendRateUnit"] as? String, let trendRateValue = rawValue["trendRateValue"] as? Double {
trendRate = HKQuantity(unit: HKUnit(from: trendRateUnit), doubleValue: trendRateValue)
if let trendRateValue = rawValue["trendRateValue"] as? Double {
trendRate = HKQuantity(unit: .milligramsPerDeciliterPerMinute, doubleValue: trendRateValue)
} else {
trendRate = nil
}
Expand All @@ -181,7 +181,6 @@ extension GlucoseDisplayableContext: RawRepresentable {
]
raw["trendType"] = trendType?.rawValue
if let trendRate = trendRate {
raw["trendRateUnit"] = HKUnit.milligramsPerDeciliterPerMinute.unitString
raw["trendRateValue"] = trendRate.doubleValue(for: HKUnit.milligramsPerDeciliterPerMinute)
}
raw["glucoseRangeCategory"] = glucoseRangeCategory?.rawValue
Expand Down
4 changes: 2 additions & 2 deletions Common/Models/WatchContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ final class WatchContext: RawRepresentable {
if let rawGlucoseTrend = rawValue["gt"] as? GlucoseTrend.RawValue {
glucoseTrend = GlucoseTrend(rawValue: rawGlucoseTrend)
}
if let glucoseTrendRateUnitString = rawValue["gtru"] as? String, let glucoseTrendRateValue = rawValue["gtrv"] as? Double {
glucoseTrendRate = HKQuantity(unit: HKUnit(from: glucoseTrendRateUnitString), doubleValue: glucoseTrendRateValue)
if let glucoseTrendRateValue = rawValue["gtrv"] as? Double {
glucoseTrendRate = HKQuantity(unit: .milligramsPerDeciliterPerMinute, doubleValue: glucoseTrendRateValue)
}
glucoseDate = rawValue["gd"] as? Date
glucoseIsDisplayOnly = rawValue["gdo"] as? Bool
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading