Commit Graph

296 Commits

Author SHA1 Message Date
Dieter Plaetinck
4fcacbcdce fix test 2024-05-27 10:05:13 +02:00
Dieter Plaetinck
d4d298ad9e fix tests 2024-05-23 19:59:57 +02:00
Dieter Plaetinck
74002350ba unify IngredientLogForm and MealItemForm 2024-05-23 19:59:57 +02:00
Dieter Plaetinck
1b1b6ab06d flutter test --update-goldens 2024-05-15 22:04:47 +02:00
Dieter Plaetinck
0634f300db flutter test --update-goldens 2024-05-15 12:07:21 +02:00
Dieter Plaetinck
f7981e4dfb flutter test --update-goldens 2024-05-15 11:09:01 +02:00
Dieter Plaetinck
7fffa94925 cleanup 2024-05-08 22:48:26 +02:00
Dieter Plaetinck
578d56a0df fix tests, introduce golden tests
to make golden tests work, we no longer plot the "now time" for "other logs"
this was pretty silly anyway...
2024-05-08 22:48:26 +02:00
Dieter Plaetinck
1ae3eafd72 more tests 2024-05-04 18:13:24 +02:00
Dieter Plaetinck
faa417d183 fix test 2024-05-04 18:13:16 +02:00
Dieter Plaetinck
36697a660d proper nullable "nutritional goals" with inference
differentiate between a goal being set (but as 0) vs a goal not being
set. fixes various correctness issues
2024-05-04 14:20:00 +02:00
Dieter Plaetinck
b756e5e11f test fix 2024-04-30 21:20:58 +02:00
Dieter Plaetinck
d2c8e4a4c3 remove FlNutritionalDiaryChartWidget, it is no longer used 2024-04-30 18:54:20 +02:00
Roland Geider
1e16179d78 Merge pull request #555 from wger-project/feature/nutrition-goals
Move planned vs logged calories closer to feature on web application
2024-04-21 18:46:02 +02:00
Roland Geider
0502c459af Fix tests 2024-04-21 18:39:58 +02:00
Dieter Plaetinck
cb17e48f8e tiny nutrition fixes 2024-04-10 19:03:22 +02:00
Roland Geider
a50c625114 Fix test 2024-02-24 12:29:50 +01:00
Roland Geider
84c9fe888e Some renamings 2024-02-23 20:37:10 +01:00
Roland Geider
ef51431e62 Fix provider test 2024-02-23 19:22:00 +01:00
Roland Geider
9b0985fbf3 Add chart for percentage of logged nutritional values for meals 2024-02-23 19:19:13 +01:00
Roland Geider
6ad549251f Merge pull request #512 from mutairibassam/test/colors-file
test: add unit test for generateChartColors() function in colors.dart…
2024-02-17 18:59:02 +01:00
Roland Geider
9c7b65bc49 Allow users to quickly increment the body weight 2024-02-17 18:48:48 +01:00
Bassam A
36f9d1651e modify generateChartColors() test cases to use _iterator_ instead of toList() since it's been used in the original code. 2024-02-03 11:55:33 +03:00
Bassam A
1764147c18 test: add unit test for generateChartColors() function in colors.dart file 2024-02-03 11:38:46 +03:00
Bassam A
6012075658 test: add unit test for all json.dart file functions 2024-01-30 18:41:00 +03:00
Roland Geider
faf1018f2a Fixes for flutter typeahead 5.1.0
Also, add some models for the API response from the search
2024-01-29 12:07:26 +01:00
Roland Geider
003038e67d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	test/weight/weight_screen_test.dart
2024-01-23 16:42:25 +01:00
Roland Geider
b0cae79650 Merge branch 'ux_fixes_problem' 2024-01-23 16:40:36 +01:00
Roland Geider
d4e4f3384a Use the user's preferred unit for body weight 2024-01-23 16:33:32 +01:00
Roland Geider
3f46277c75 Fix test
Since we're mocking the provider no entries are actually being deleted anywhere
2024-01-23 14:58:53 +01:00
Costas Korai
135ddb4a78 Update to use clock.now where needed
- The initial time set in the MealForm is defined in
the meal model object provided to the MealForm so both
the test and the meal object had to use clock.now in
order for the fixed value to apply to both.
2024-01-24 00:47:43 +11:00
Roland Geider
28826bd874 Merge branch 'master' into ux_fixes_problem
# Conflicts:
#	flatpak/scripts/flatpak_shared.dart
#	flatpak/scripts/manifest_generator.dart
2024-01-23 14:38:46 +01:00
Roland Geider
2dc08a133e Merge pull request #459 from 12people/ux_fixes
Removing Dismissible for better discoverability
2024-01-23 14:31:16 +01:00
Roland Geider
3008dcc6ce Merge branch 'master' into ux_fixes 2024-01-23 14:24:13 +01:00
Roland Geider
41555c4bce Recreate generated files 2024-01-22 17:01:23 +01:00
Roland Geider
51a0e8798d Correctly show any errors from the server on the registration page
Also, add some tests
2024-01-22 16:55:59 +01:00
Roland Geider
dd12e040e9 Fun "dart fix" 2024-01-22 09:55:29 +01:00
Roland Geider
190f47f76b Merge branch 'master' into ux_fixes 2024-01-12 14:54:25 +01:00
Roland Geider
fbc4f163c9 Commit missing mocks file 2024-01-11 22:16:21 +01:00
Roland Geider
e67d992385 Add (for now) simple settings page to reset the exercise cache
This should be expanded later to allow to re-fetch all available exercises, etc.
2024-01-11 22:13:11 +01:00
Roland Geider
d51b6d7d87 Merge branch 'master' into feat/data-persistence
# Conflicts:
#	lib/main.dart
#	lib/providers/exercises.dart
#	lib/widgets/workouts/day.dart
#	pubspec.lock
#	pubspec.yaml
2024-01-09 15:37:48 +01:00
Roland Geider
24e031d595 Finally fix the tests
We now dependency inject the database for the whole exercise provider,
this makes our lives a bit easier
2024-01-09 15:00:36 +01:00
Roland Geider
acbee49100 Simplify generating translation objects 2023-12-30 17:55:52 +01:00
Roland Geider
f951b6117a Try to generate ExerciseApiData objects only within the exercises model 2023-12-28 22:32:28 +01:00
Roland Geider
c4577ca5d7 Further tweaking exercise cache handling
handleUpdateExerciseFromApi should now be faster and save up on some requests.
Ideally we would pre-populate the database with all exercises on first run, or
even just ship it pre-filled
2023-12-28 17:48:15 +01:00
Roland Geider
35a9dc046f Add test for force initializing the cache dates 2023-12-27 13:41:50 +01:00
Roland Geider
b64458603f Rename further occurrences of "exercise base" to just "exercise" 2023-12-26 21:38:07 +01:00
Roland Geider
c5cbb4f851 Rework exercise database
This is now separated into individual tables and methods so that they can be
tested separately
2023-12-26 17:03:20 +01:00
Roland Geider
65ba2275ae Run "dart format --line-length=100 ." to make the diff smaller 2023-12-23 16:40:05 +01:00
Abhishek Saini
c69c639fac fix(drift): built a model for exercise and fixes in fromSql type converter 2023-12-23 14:28:38 +05:30