this PR refactors the shortcuts and adds new shorcuts for open-IAPS.
Refactoring
Same organisation of files
Remove junk code
Add internationalization of shortcuts with the use of catalog string of Xcode
List of shortcuts available
Override preset selection, application and cancelation
Add Carbs shortcuts
Carbs preset list and display all carbs, fat and proteins associated
Create And Apply a temporary target with the definition of target, duration, date of start
Apply a preset temporary target
Get the state of open-iAPS : BG, IOB, COB
Command a bolus
Some examples described in the picture :
When your iPhone alarm clock is ringing a Profile override is started/canceled.
• When you get to your gym a Profile Override is started/canceled.
• When you step inside your car (which has CarPlay) a profile override is started/canceled.
• When you start an exercise a profile override is started.
• When you end an exercise the active profile override is canceled.
• .
Select a carb preset, add carbs associated and define a override preset
List of shortcuts available
Cancel temporary preset and/or override preset and adds carbs in the past
temporary preset with a date in 60 minutes
When I start a fitness activity, start sport override except if my BG > 180, wait 30 min and notify me
When you get a specific sms from your parent a specific profile override is started/canceled
Shortcuts open IAPS
this PR refactors the shortcuts and adds new shorcuts for open-IAPS.
Refactoring
List of shortcuts available
Some examples described in the picture :
When your iPhone alarm clock is ringing a Profile override is started/canceled. • When you get to your gym a Profile Override is started/canceled. • When you step inside your car (which has CarPlay) a profile override is started/canceled. • When you start an exercise a profile override is started. • When you end an exercise the active profile override is canceled. • .
New UI for config shortcuts :
Detail of the commit (squash all commits about shortcuts) : Refactoring the shortcuts with adding :