Commit Graph

2645 Commits

Author SHA1 Message Date
Roland Geider
db458acee4 Don't log the user's refresh token 2026-06-14 20:35:23 +02:00
Roland Geider
efaa5121c5 Fix column types 2026-06-14 20:24:49 +02:00
Roland Geider
51508d5027 Handle case where after submitting an exercise it is not synced back yet 2026-06-14 20:21:35 +02:00
Roland Geider
30df030e1e Add converter for date-only fields, otherwise comparisons break 2026-06-14 16:19:02 +02:00
Roland Geider
e93c4effcb Exercise IDs are integers, not text 2026-06-05 23:17:25 +02:00
Roland Geider
675fb44c6e Also properly handle (for now) unused datetime fields 2026-06-05 15:36:19 +02:00
Roland Geider
dbce51f86c The ingredient energy is stored in kcal, not kJ 2026-06-05 15:17:57 +02:00
Roland Geider
662ad9befc Properly handle timezones 2026-06-05 15:17:32 +02:00
Roland Geider
57947eabe6 Don't default to black text
Otherwise this might be unreadable on dark mode
2026-06-05 14:47:36 +02:00
Roland Geider
16a6cd085d Harden detail screen pages
While not very probable, it can happen that a routine etc was deleted on the server
at the same time that a user had opened its detail page. We also changed the argument
for the nutrition screen to ID, for more consistency with the other ones.
2026-06-05 14:39:49 +02:00
Roland Geider
a4425354fc Add bug preventing the web-handoff workflow from working with self-hosted instances 2026-06-05 13:36:54 +02:00
Roland Geider
3cbe7c99dc Correctly reset the session ID so a new one is generated 2026-06-05 13:26:50 +02:00
Roland Geider
0c10e32157 Make sure the search filters are not rebuilt every time 2026-06-05 13:19:04 +02:00
Roland Geider
63cc163a47 Be more lenient on transient server errors 2026-06-05 13:12:25 +02:00
Roland Geider
41bb7d39d7 Throw exception if the db could not be wiped on logout 2026-06-05 13:11:48 +02:00
Roland Geider
b7674aaf41 Reset the accountProvider on logout 2026-06-05 12:43:34 +02:00
Roland Geider
14c7e8d0a8 More i18n cleanup 2026-06-04 22:59:26 +02:00
Roland Geider
40e3b560d1 Fix tests 2026-06-04 22:56:35 +02:00
Roland Geider
b04db2351e Remove unused code 2026-06-04 22:33:49 +02:00
Roland Geider
0e7a7dbcaa Properly save the correct unit type 2026-06-04 21:55:56 +02:00
Roland Geider
c795bb4420 Fix empty selection bug 2026-06-04 21:55:38 +02:00
Roland Geider
e29c120d7f Add more validators
Otherwise the server might reject the values (this was already the case)
2026-06-04 21:42:02 +02:00
Roland Geider
5b9be7440c Add more validators to the slot configs
Otherwise the server might reject the values (this was already the case)
2026-06-04 21:26:56 +02:00
Roland Geider
a923574638 Show a bit more info for RetryableUploadException 2026-06-04 21:10:03 +02:00
Roland Geider
ca2530ecab Better error handling for powersync errors
This new logic properly handles retriable and transient errors
2026-06-04 20:41:06 +02:00
Roland Geider
0d3d7d7cba Remove unused translation keys 2026-06-04 17:25:34 +02:00
Roland Geider
68428a053e Wipe the local DB only on a real user switch 2026-06-04 16:53:01 +02:00
Roland Geider
1a13785929 Add a new hydration provider family for routines
This makes the code much cleaner, and uses riverpod's own logic to de-dup
2026-06-04 12:39:34 +02:00
Roland Geider
67bf65882f Fix bug causing the routine provider to enter a refresh loop
Note that this is a stop-gag measure for now
2026-06-03 16:30:29 +02:00
Roland Geider
a411461638 Cleanup 2026-06-03 16:08:16 +02:00
Roland Geider
33dbd1508f Correctly delete the user's local db on logout 2026-06-03 15:48:02 +02:00
Roland Geider
ae2c6939fb Use leftOuterJoin in the nutrition sql 2026-06-03 15:26:14 +02:00
Roland Geider
f86ee0838e Add tests for the powersync transaction process logic 2026-06-03 15:03:46 +02:00
Roland Geider
8a626ae2bf Handle (transient) case where an exercise has no translations 2026-06-03 13:06:10 +02:00
Roland Geider
137ad197e4 Properly handle "." and "," for numerical inputs 2026-06-03 12:51:00 +02:00
Roland Geider
fb74e255d4 Remove dependency on wgerBaseProvider
This was causing some circular dependency problems
2026-06-02 19:46:33 +02:00
Roland Geider
8f562e5d83 Properly handle exercise videos
These need to be loaded with mediaUrlBuilderProvider, like the exercise images
2026-05-27 17:22:35 +02:00
Roland Geider
ed757d2171 Slight refactor of appVersion handling 2026-05-27 12:11:37 +02:00
Roland Geider
b2250fa8c5 Merge remote-tracking branch 'origin/master' into feature/offline-mode
# Conflicts:
#	lib/widgets/nutrition/ingredient_dialogs.dart
#	lib/widgets/nutrition/widgets.dart
2026-05-27 11:08:31 +02:00
Anja Klipic
70a5ae3ddf fix: use theme color for brightness mode compatibility 2026-05-27 10:39:22 +02:00
Roland Geider
d3da6dc8fa Online-gate the ingredient scan button 2026-05-26 20:04:54 +02:00
Roland Geider
6f0a322b4a Add outgoing icons to external links 2026-05-26 20:02:58 +02:00
Roland Geider
00db3d96e6 Properly online-gate access to the user profile 2026-05-26 19:57:11 +02:00
Roland Geider
400b21065a Add brand to the model 2026-05-26 15:15:16 +02:00
Roland Geider
fa36a16425 Small cleanup 2026-05-25 23:40:54 +02:00
Roland Geider
f4df847511 Extract some logic into their own files
This makes the (still) quite large auth_notifier.dart, a bit more clear and easy
to understand
2026-05-25 23:32:38 +02:00
Roland Geider
9003b46002 Add migration path from old permanent token to JWT
This is needed to allow users coming from an old version of the app to remain
logged-in.
2026-05-25 23:13:40 +02:00
Roland Geider
1009477553 Fix behaviour on logout
We were previously dropping the local db on logout, which could also happen when
the user was too long offline to fetch a new token. Now this only happens when the
user manually logs out, or during login and there's the db from a previous, different,
user.
2026-05-25 20:52:23 +02:00
Roland Geider
98e9ea9417 Smarter handling of token lifetimes
We don't want to logout the user if we can't refresh the token because the
device is offline.
2026-05-25 20:33:50 +02:00
Roland Geider
7d958b5055 Top-align the contents of the WidescreenWrapper 2026-05-25 19:52:54 +02:00