Commit Graph

4795 Commits

Author SHA1 Message Date
pankaj-basnet
1a9ab581a5 refactor: improve image error handling with pattern matching and URI parsing 2026-05-03 02:26:58 +05:45
Roland Geider
d6affe4036 Sync the rest of the nutrition tables with powersync 2026-05-02 12:36:08 +02:00
Roland Geider
cf13af1740 Sync the rest of the nutrition tables to powersync 2026-05-01 20:24:26 +02:00
Roland Geider
a63cce2478 Test the powersync communications with the outer world 2026-05-01 19:22:44 +02:00
Roland Geider
35789cfb99 Remove validateLanguage, this wasn't used 2026-05-01 19:12:07 +02:00
Roland Geider
df9a69d0ff Create a new id for when setting new logs 2026-05-01 19:03:47 +02:00
Roland Geider
e56d5a8861 Add missing tests for the new repositories and states 2026-05-01 19:03:28 +02:00
Roland Geider
2cb40612b1 Cleanup providers and use consistent naming 2026-05-01 16:58:08 +02:00
Roland Geider
5d30a1ca79 Cleanup providers and use consistent naming 2026-05-01 16:50:15 +02:00
Roland Geider
2f2c7812cb Cleanup providers and use consistent naming 2026-05-01 16:18:29 +02:00
Roland Geider
16ffafeb28 Remove unused methods 2026-05-01 15:36:15 +02:00
Roland Geider
209ab7cbbe Add gallery sync tables 2026-05-01 15:25:31 +02:00
Roland Geider
35404372f9 Refactor exercise repository online/offline search
This behaves now similarly to what the ingredients do as well
2026-05-01 13:22:47 +02:00
Roland Geider
9226b06454 Rename for more consistency 2026-05-01 13:10:39 +02:00
Roland Geider
09f020226e Merge remote-tracking branch 'origin/feature/offline-mode' into feature/offline-mode 2026-05-01 12:28:16 +02:00
Roland Geider
9f365f8069 Consolidate ingredient search methods into the ingredient repo 2026-05-01 12:27:49 +02:00
aria-tec
01f68546dc fix: address review comments (fix syntax and update README) 2026-05-01 08:56:45 +07:00
Roland Geider
5fea670ba3 Merge master 2026-04-30 19:41:17 +02:00
Roland Geider
d1f6fc2dfe Sync nutritional logs 2026-04-30 18:10:02 +02:00
Roland Geider
73e1621e6f Updated goldens 2026-04-30 16:12:27 +02:00
Roland Geider
445063b1a9 Properly fake network connectivity in the tests 2026-04-30 16:10:11 +02:00
Roland Geider
a1722f18f8 Open ingredient info dialog from the nutritional plan list 2026-04-30 15:54:38 +02:00
Roland Geider
97c4a5b07e Refactor ingredient weight unit handling and remove unused methods 2026-04-30 14:33:32 +02:00
Roland Geider
d152031633 Refactor ingredient weight unit handling and remove unused methods 2026-04-30 14:11:56 +02:00
Roland Geider
5ee653bbf8 Improve error logging 2026-04-30 13:47:56 +02:00
Roland Geider
d6e652f2c9 Sync the ingredient weight units to the local sqlite db 2026-04-30 13:41:58 +02:00
Roland Geider
a9644ab383 Refactor ingredient handling to use direct object references 2026-04-30 12:58:35 +02:00
Roland Geider
c5ac06309b Properly mark columns as nullable 2026-04-30 12:00:05 +02:00
Roland Geider
350561101b Be a bit smarter about contructing the absolute URL for images 2026-04-30 10:49:26 +02:00
Roland Geider
4751b2ddc3 Delete old images from the device older than approx. 3 months 2026-04-30 10:48:57 +02:00
Roland Geider
d135e81d4f Cache ingredient and exercise images on device 2026-04-30 10:48:20 +02:00
Roland Geider
5bf2dd22ee Properly load the ingredient images 2026-04-29 20:53:50 +02:00
Roland Geider
3fbdaac4b3 Consolidate routine hydration logic 2026-04-29 19:58:22 +02:00
Roland Geider
e0068e96ce Hydrate exercise and unit objects in routine entries 2026-04-29 19:32:48 +02:00
Roland Geider
271d9f9835 Refactor unit selection for repetitions and weight
This is now done inline with a suffix icon, instead of having an extra
toggle that showed an explicit dropdown. Existing logs can now be edited
in the routine log overview page.
2026-04-29 16:56:06 +02:00
aria-tec
b7b8a50537 feat(android): implement Android 13 per-app language support (#550)
- added locales_config.xml with supported languages
- linked localeConfig in AndroidManifest.xml
- updated MaterialApp with localeListResolutionCallback for system sync
2026-04-29 21:13:41 +07:00
Roland Geider
5f52538d13 Wrap the log and session saving logic in a transaction
This prevents orphaned logs
2026-04-29 14:48:14 +02:00
Roland Geider
379d86c1ad Commit connector transform test 2026-04-29 12:59:56 +02:00
Roland Geider
40c3bbc95c Use the workout session and logs from the current routine in summary.dart
This data is now always current from powersync
2026-04-29 12:59:34 +02:00
Roland Geider
733fe24fa7 Remove fetchAndSetRoutineFull from future
This was only used to fetch current workout logs and sessions, which is not
needed anymore
2026-04-29 11:05:58 +02:00
Roland Geider
c5dbcc27ef Extract routines repository to its own file 2026-04-29 10:56:17 +02:00
Roland Geider
cbc4fa1f53 Properly handle DateFields
These only accept the "YYYY-MM-DD" format on django's side, so we need
to massage them into the correct shape
2026-04-29 10:35:14 +02:00
Roland Geider
06a445a72b Properly gate the nutritional plan FAB when there's no network connectivity 2026-04-29 10:09:18 +02:00
Roland Geider
680127e139 Sync the base Routine and Nutritional plan entries via powersync
This makes sure the lists is always kept current and allows the user to edit
them offline as well. Note that we still kepp the backend's ID here, so no
creation is possible.
2026-04-29 10:03:59 +02:00
Roland Geider
4353f00913 Start handling validation errors from the backend for powersync operations 2026-04-28 21:22:39 +02:00
Roland Geider
4b581173d8 Show more sync information to the user 2026-04-24 14:44:04 +02:00
Roland Geider
72ef83e1a2 Translate the sync status in the main icon 2026-04-24 13:15:24 +02:00
Roland Geider
e2d650fdb5 Use the AsyncValueWidget when handling Stream-Provider data 2026-04-24 12:52:41 +02:00
Roland Geider
88e0248480 Remove BodyWeightState
This wasn't used at the moment, and if we need any filter Methods, we
can add it back
2026-04-24 12:38:50 +02:00
Roland Geider
b6923d1a6c Refactor exercise providers
The exercise provider now returns an ExerciseState, which exposes some filter
methods on the exercises
2026-04-24 12:26:43 +02:00