Commit Graph

2085 Commits

Author SHA1 Message Date
Paul Plant d2904829a0 update trace to include settings changes in 5.2.0 2024-05-04 11:27:59 +02:00
Paul Plant 4c2ca4022d target value message localization: NL
Co-Authored-By: Johan Degraeve <13840461+johandegraeve@users.noreply.github.com>
2024-05-02 08:30:11 +02:00
Paul Plant d63a22f883 remove TimeInterval() from ConstantsWidget to prevent compiler complaining 2024-05-01 21:04:26 +02:00
Paul Plant 4657d5143d target value message localization: FR
Co-Authored-By: Patrick Sonnerat <patrick.sonnerat@hotmail.com>
2024-05-01 16:37:39 +02:00
Paul Plant 989f6f82c4 small large widget layout change for live activity
- to match systemSmall widget changes
2024-05-01 16:34:18 +02:00
Paul Plant 10ff067ff4 correction to live activity debugging 2024-05-01 13:22:06 +02:00
Paul Plant 02919651d5 remove "Show Target" option from Settings
- check if showTarget is disabled and set targetMarkValue accordingly
- targetMarkValue will be set to 0 if showTarget was disabled
- showTarget in user defaults is now deprecated but should be left in place for the next few versions until all users have transitioned over to the new method
- settings UI will show a new message when setting target value
- settings UI will show "Disabled" when target value is set to 0
- targetMarkValueInUserChosenUnit user defaults modified to allow setting 0 values
- initial localizations: EN, ES, DE
2024-05-01 13:09:27 +02:00
Paul Plant 3f33eff0f7 update settings section icons to use a constants file 2024-05-01 13:02:34 +02:00
Paul Plant 4077bb69da re-order some settings sections for clarity
- also correct Dexcom Upload icon as it was "pointing the wrong way"
- change develop settings hide timer to 120 seconds
2024-05-01 12:31:27 +02:00
Paul Plant 18570a63a1 add icons to Settings screen titles
- probably the most pointless commit ever in the world, but it actually looks much nicer than I thought it would and adds a little bit of context when quickly scrolling through the settings
- it would be much better to use SF Symbols, but the protocol only calls for a String returned so using emoticons is a rather childish, but quick and easy way to do it :)
2024-05-01 12:12:08 +02:00
Paul Plant a215d7a11d correction to Apple Watch Settings view row count 2024-04-29 21:26:47 +02:00
Paul Plant d5f390d302 FR localization of Watch App and Complications
Co-Authored-By: Patrick Sonnerat <patrick.sonnerat@hotmail.com>
2024-04-29 21:26:47 +02:00
Paul Plant 6d32a000e3 add placeholder chart data to the widgets (iOS and WatchOS)
- also remove "no trend" arrow that was previously added as it doesn't look good - prefer to leave it blank
2024-04-29 20:46:25 +02:00
Paul Plant 5f91f320ab remove the rest of @available >iOS16 checks as deployment target...
...makes them redundant
2024-04-29 19:13:07 +02:00
Paul Plant 3a955f3bfd remove legacy "show objectives" option for y-axis on charts
- glucose charts will now only work using the low/high objectives as y-axis values
- 99.99999% of all users (probably) use objectives so the settings can be safely removed to declutter
- moved the target value between high and low values
- added visual indicators for objectives/ranges to maintain consistency as per other parts of the app
- removed all localizations for the removed settings options
2024-04-29 13:31:29 +02:00
Paul Plant ab65f2eb27 move remaining complications settings row to developer settings
- move remaining complications settings row to developer settings and add a confirmation action to manually force an update (with explanation)
- change developer settings auto-hide to after 60 seconds
2024-04-29 13:02:38 +02:00
Paul Plant 379fcfd40a hide Developer Settings by default
- declutter settings menu and also hopefully avoid that people automatically just activate things
2024-04-29 13:02:38 +02:00
Paul Plant de3303f32c NL localization of Watch App and Complications
Co-Authored-By: Johan Degraeve <13840461+johandegraeve@users.noreply.github.com>
2024-04-29 11:23:59 +02:00
Paul Plant f871166c47 DE localization of Watch App and Complications
Co-Authored-By: Deniz Cengiz <48965855+dnzxy@users.noreply.github.com>
2024-04-27 21:40:37 +02:00
Paul Plant 9b4ca5b941 initial localizations of Watch App and Complications
- EN
- ES

Also changes to hide the widget values if the BG values are more than 20 minutes old
2024-04-27 18:25:50 +02:00
Paul Plant a2304836f0 changes to watch complication logic
- Apple Watch settings in main iOS app
- disable by default the complication values to prevent the (constant) user confusion
- force the user to agree that the complications will not update in real-time. If they don't, don't show values in the complications
- localizations added for Watch complications
- watch app "last reading since" changed to "x mins ago"
- double-tapping "remaining complications" will silently force a complication update
- watch state request indicator now changes to orange whilst pending reply from iOS companion app
-
2024-04-26 21:53:02 +02:00
Paul Plant 0b84e8bee4 tracing format update for active sensor max days 2024-04-22 09:20:45 +02:00
Paul Plant 64ac32fb47 remove @available iOS/WatchOS checks as deployment target makes them redundant 2024-04-20 13:21:12 +02:00
Paul Plant 8b14dc7634 logging improvements and corrections 2024-04-20 13:18:03 +02:00
Paul Plant 6e0f8c8ad5 updates to GlucoseChartType to configure new Siri intent type from the existing swiftui glucose chart
- extend and improve the current swiftui glucose chart
- add siri glucose chart type
- add conditional handlers for frame, aspectRatio and padding etc
- tidy up ConstantsGlucoseChartSwiftUI file ro improve readability and remove unnecessary constants
2024-04-20 13:01:03 +02:00
Paul Plant 2b327ac413 tidy up project structure 2024-04-20 13:01:03 +02:00
Paul Plant 8c6dfc2f15 siri integration - initial PR from @gshaviv
from https://github.com/JohanDegraeve/xdripswift/pull/492

Glucose intent

play with response graph scale

app shortcuts

add alternate app pronounciations

Add mention in settings for shortcuts

donate intent on move to foreground

add trend to siri response

fix trend calculation for Siri

Co-Authored-By: Guy Shaviv <guy@shaviv.org>
2024-04-20 13:01:03 +02:00
Paul Plant 8e8a50f02c contact image translations (DE)
Co-Authored-By: Deniz Cengiz <48965855+dnzxy@users.noreply.github.com>
2024-04-14 15:40:04 +02:00
Paul Plant 8a1be8928a forceComplicationRefreshTimeInMinutes to 20 minutes
- change back to 20 minute forced refresh intervals

- using 10 minutes (correctly) runs out of remainingComplicationUserInfoTransfers by around 17hrs
2024-04-14 14:35:42 +02:00
Paul Plant cf797f33a8 update text strings for Contact Image 2024-04-14 14:33:08 +02:00
Paul Plant bed459135c contact image updates
- simplify even further to limit user interaction needed
- contact is now automatically created and updated based upon the app name (to allow it to work with app variants)
- contact orgranization name will show data source and update time
- contact notes will show a localized note to say that the app created the contact automatically and when
- contact will be automatically deleted from contacts if the user disables the contact image function
- initial translations done to EN, ES
2024-04-14 14:12:02 +02:00
Paul Plant 460daed601 initial adaptation to xDrip4iOS
- remove range indicator as this is combined with text colour as per xDrip4iOS UI style
- add font size scaling to keep each string size occupying the same space in the complication
- simplification
2024-04-14 09:34:26 +02:00
Paul Plant 2adc5384ec correction to watchManager() forceComplicationRefreshTimeInMinutes 2024-04-13 09:18:03 +02:00
Paul Plant a3bb69b87e rename NumberImageView to ContactImageView and move to SwiftUIViews folder 2024-04-12 21:01:27 +02:00
Paul Plant 8040eb44d8 rename "Contact Trick" to "Contact Image" in the whole project 2024-04-12 13:54:07 +02:00
Paul Plant ed3a3d84e7 remove old self. references from previous closure in processWatchState() 2024-04-11 19:43:48 +02:00
Paul Plant 9a737c8c74
Merge pull request #527 from yurique/feature/contact-trick
contact trick - missed file
2024-04-11 18:10:26 +02:00
Iurii Malchenko 29a40169c6 Merge remote-tracking branch 'yurique/feature/contact-trick' into feature/contact-trick
# Conflicts:
#	xdrip.xcodeproj/project.pbxproj
2024-04-11 17:43:28 +02:00
Iurii Malchenko 931f918278 uncommitted change 2024-04-11 17:41:20 +02:00
Paul Plant e4977cf1c7
Merge pull request #505 from yurique/feature/contact-trick
adding the "contact trick"
2024-04-11 17:40:51 +02:00
Paul Plant 31a3c42cb5
Merge branch 'staging-5.2' into feature/contact-trick 2024-04-11 17:38:45 +02:00
Paul Plant cd0c6f8c7d
Merge pull request #526 from paulplant/develop
Merge into staging to work on adding external PRs
2024-04-11 17:27:24 +02:00
Iurii Malchenko 9d4d58ab12 dropping some settings 2024-04-11 16:43:40 +02:00
Iurii Malchenko da1d5ab74a Merge branch 'develop' into feature/contact-trick
# Conflicts:
#	xdrip.xcodeproj/project.pbxproj
#	xdrip/Constants/ConstantsLog.swift
#	xdrip/View Controllers/Root View Controller/RootViewController.swift
2024-04-11 15:52:13 +02:00
Paul Plant 65bd945ac3 Update GlucoseChartView to change upper bounds for y axis when on readings
- if there are no BG readings passed to the view, the chart was scaling from 40->400mg/dL which looks stretched for an empty chart.
- modified the upper bounding, in case of bgReadings array being nil, to use the user urgent high value
2024-04-11 11:42:57 +02:00
Paul Plant 7103c3ba31 colour updates/corrections for all widgets
- colour updates/corrections for all widgets

- remove gray color for not recent readings in watch complications

- when using standard apple widgetkit constraints, changing the colour of the bg value and delta to gray when > x minutes old makes no sense as it doesn't indicate that the bg readings are old, rather than that the complication hasn't gotten new data yet (which can be normal for the Watch complication updates).
96ec614a
2024-04-11 11:42:57 +02:00
Paul Plant a3ba279dbf revert internal complication update constraint limits 2024-04-09 23:50:05 +02:00
Paul Plant 1107ac6ac1 improvements to trace file logging
- reworked to include new settings layout since 5.1.0
- watchManager logging updated
2024-04-09 19:27:36 +02:00
Paul Plant d2daad8b9a initial implementation of watch/complications background refresh 2024-04-09 18:54:16 +02:00
Paul Plant bfe1e9dcb4 Correction to live activity compactTrailing text color when no recent BG values 2024-04-07 10:00:32 +02:00