Commit Graph

889 Commits

Author SHA1 Message Date
Roland Geider
bb82e4b75b Add a small lookup table for exercises
This also consolidates some search functions to use getByIdOrNull
2026-06-25 20:20:31 +02:00
Roland Geider
564e25b04c Load the logs from the DB directly
This makes sure the past logs list is updated immediately
2026-06-24 21:10:50 +02:00
Roland Geider
54e0634581 Don't try to load user trophies in the gym mode when offline 2026-06-24 20:25:01 +02:00
Roland Geider
87a433bc97 Fix set-state-error on TimeInputWidget
The widget is read-only, so we don't need to use a controller, it is simply rebuilt when the
user selects a new time
2026-06-19 12:10:07 +02:00
Roland Geider
5da7da9067 Use proper references in comments, where possible 2026-06-19 10:57:27 +02:00
Roland Geider
e5c351a311 Refactor the server version check
This now runs before login, so this also works on the 2.5 -> 2.6 backend change, which introduced
new auth endpoints
2026-06-19 10:39:08 +02:00
Roland Geider
af71cb7e1c Don't abort auth operations if the local keyring (from secure storage) is not available 2026-06-19 10:22:50 +02:00
Roland Geider
9bc0b15c6f Merge pull request #1224 from pankaj-basnet/refactor/nutrition-meals-components
Refactor/nutrition meals components
2026-06-18 10:28:25 +02:00
pankaj-basnet
601be2cfe6 fix(nutrition): decouple MealEditingToolbar visibility from ViewMode
- revert translation changes in charts and cleanup meal logs
- fix for the Meal test
2026-06-18 10:17:21 +05:45
Roland Geider
bfb44c2157 Extract title from html error messages 2026-06-17 21:39:51 +02:00
pankaj-basnet
5c7d4cb201 test(nutrition): update MealWidget test with nutrition provider stub
- Update MealWidget constructor call
- Add interaction steps to reveal ingredients section before testing the add button
2026-06-17 23:45:03 +05:45
Roland Geider
cadb63734f Properly mark the correct official/custom server as the one being used 2026-06-17 17:59:04 +02:00
Roland Geider
1311a59f7e Set the same headers for the auth requests
Not having the content type was tripping up anubis
2026-06-17 17:08:45 +02:00
Roland Geider
f77a4b1792 Use correct weight entries list for the screenshots 2026-06-16 11:36:32 +02:00
Roland Geider
bee80eed69 Also return a list of test trophies for the screenshot tests 2026-06-16 10:58:28 +02:00
Roland Geider
9540a1b958 Move screenshot tests to "/test" folder
This allows us to properly generate the needed mocks, and not import them
from random files
2026-06-16 10:29:31 +02:00
Roland Geider
fbc8ad7b07 Replace the deprecated onReorder with onReorderItem 2026-06-15 21:34:00 +02:00
Roland Geider
138177ef9c Run "dart fix --apply" 2026-06-15 21:25:05 +02:00
Roland Geider
6242723a17 Recreate generated files 2026-06-15 21:07:13 +02:00
Roland Geider
62042bd832 Rename allauth's URLs 2026-06-15 14:11:33 +02:00
Roland Geider
54e97299f9 Consolidate usage of FormSubmitButton 2026-06-14 21:48:41 +02:00
Roland Geider
3ec7e23f56 Pass the slotUUID to some gym pages
This makes the logic a bit more robust on null pages
2026-06-14 21:25:10 +02:00
Roland Geider
eae855bef4 Properly handle the case where the token could not be decrypted 2026-06-14 20:51:52 +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
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
40e3b560d1 Fix tests 2026-06-04 22:56:35 +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
ac2eaff807 Revive log_page_test.dart
This tests log-page-specific logic
2026-06-03 16:14:33 +02:00
Roland Geider
152e5ca7c1 Fold the tests from the log_page_test into gym_mode_test.dart 2026-06-03 16:00:14 +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