Skip to content

Renaming, Logging, View changes#2

Merged
marionbarker merged 3 commits into
marionbarker:dosing-strategy-linear-rampfrom
bjorkert:experimental
Jun 4, 2023
Merged

Renaming, Logging, View changes#2
marionbarker merged 3 commits into
marionbarker:dosing-strategy-linear-rampfrom
bjorkert:experimental

Conversation

@bjorkert
Copy link
Copy Markdown

@bjorkert bjorkert commented Jun 4, 2023

The Algorithm Experiments section in settings was refactored. The header for this section now includes a warning emoji and the settings inside have been changed. The "Enable Enhanced AutoBolus" option was replaced by "Glucose Based Partial Application", which reflects its state (On/Off) next to the option name.

The file GlucoseBasedApplicationFactor.swift was renamed to GlucoseBasedApplicationFactorStrategy.swift to better reflect its role in the system. The content of this file was also refactored. The struct inside was renamed to match the new filename and variable references were updated accordingly.

Changes were also made to LoopDataManager.swift. In this file, the method for creating a dosing strategy based on user settings was updated to use GlucoseBasedApplicationFactorStrategy instead of the old GlucoseBasedApplicationFactor. Additionally, the logging process was updated from print to logger.debug and the user default key used to fetch the state of the Glucose Based Partial Application feature was changed to match the new naming scheme.

The file EnhancedAutoBolusSelectionView.swift was removed and replaced with a new file, GlucoseBasedApplicationFactorSelectionView.swift. This new file provides a SwiftUI view for controlling the Glucose Based Partial Application feature.

Lastly, the SettingsView.swift file was updated. The internal state for storing the state of the Glucose Based Partial Application feature was changed to reflect the new naming scheme.

@marionbarker marionbarker merged commit 4b203de into marionbarker:dosing-strategy-linear-ramp Jun 4, 2023
marionbarker added a commit that referenced this pull request Jun 12, 2023
Removed unnecessary xcscheme files, Moved up algorithmExperimentsSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants