Commit Graph

343 Commits

Author SHA1 Message Date
Roland Geider
dad109d5bd Inject the shared preferences class for easier testing 2025-01-24 13:59:08 +01:00
Roland Geider
86f8b7ae35 Add a third option to the theme mode
This allows the user to use the system settings as well, and not always force
light or dark mode in the app. Also move the logic to the UserProvider and
do some light refactoring.
2025-01-23 23:22:50 +01:00
Roland Geider
50f3c34a06 Update goldens 2025-01-05 21:13:15 +01:00
Roland Geider
4673bb5a64 Update screenshots 2024-11-09 13:08:29 +01:00
Roland Geider
906fa7257a Rename function 2024-09-29 11:45:31 +02:00
Roland Geider
8f42514544 Remove "multiple databases open" error 2024-09-29 11:33:50 +02:00
Roland Geider
72a68b4f59 Allow resetting the ingredient cache from the settings page 2024-09-29 11:25:14 +02:00
Roland Geider
5f33a2d5d7 Update goldens 2024-09-27 16:11:51 +02:00
Roland Geider
dbdec5c9dd Add tests for db cache 2024-09-27 11:11:35 +02:00
Roland Geider
b1a49218ad Fix tests 2024-09-27 10:25:55 +02:00
Roland Geider
188dcddf23 Rename field to "lastFetched" and add migration class 2024-09-26 23:37:50 +02:00
Dieter Plaetinck
f90609f147 various dcm cleanups 2024-09-18 21:52:21 +03:00
Dieter Plaetinck
85c245d67d dcm fix --only-rules=unnecessary-trailing-comma lib test test_data 2024-09-18 16:01:10 +03:00
Dieter Plaetinck
66ced6ccc4 dcm fix --only-rules=prefer-trailing-comma lib test test_data integration_test 2024-09-18 16:00:43 +03:00
Dieter Plaetinck
a589d87fad dcm fix --only-rules=avoid-redundant-async 2024-09-18 15:52:55 +03:00
Dieter Plaetinck
349efa6d21 fix tests 2024-09-18 14:22:53 +03:00
Dieter Plaetinck
3dc1c4e79e fix tests 2024-09-11 23:00:04 +03:00
Dieter Plaetinck
a64a50f425 fix tests 2024-09-07 19:51:29 +03:00
Dieter Plaetinck
dc1f220292 refactor
ingredient details dialog:
 - give it close/continue buttons to load into selection
 - always use image property from loaded ingredient
   this is a bit slower, but:
   * more consistent (no need to support absolute vs relative URL's
     separately)
   * cleaner (no need to pass it thru explicitly)
   * more future proof: we will get rid of the dedicated
     /ingredient/search endpoint which gives us images before we load
     the full ingredient. in the future we will simply load the
     ingredients, completely, all at once.
   * allows for easier code reuse with barcode scan result dialog

barcode scan result dialog:
 - show image and detailed nutrition table
 - support a loading spinner
 - simplify error handling
 - deduplicate code between found & not found
 - share code with ingredient details dialog
2024-07-16 11:34:11 +03:00
Dieter Plaetinck
5fa08894ce update nutritional plan info detail response fixture with new plan 2024-07-12 14:11:07 +03:00
Dieter Plaetinck
2ef68ce24d cleanup 2024-07-12 14:11:07 +03:00
Dieter Plaetinck
d06ecabadf use ingredientinfo api, for image + new source and remote id fields
also update fixtures accordingly
2024-07-12 13:50:04 +03:00
Dieter Plaetinck
e1e27fb1dd for consistency and safety, always use prefs constants 2024-07-11 20:22:25 +03:00
Dieter Plaetinck
4656612f54 update goldens 2024-07-11 19:19:34 +03:00
Roland Geider
c918e48f7e Commit generated files 2024-07-10 16:42:40 +02:00
Roland Geider
69c40d76b4 Add registration test 2024-07-10 16:02:05 +02:00
Dieter Plaetinck
11ee38c03d dart fix --apply 2024-06-20 15:47:55 +03:00
Dieter Plaetinck
7f96672b8b Merge branch 'master' into simplify-tables 2024-06-16 12:27:06 +03:00
Dieter Plaetinck
1c6d96e732 update goldens 2024-06-16 12:21:33 +03:00
Dieter Plaetinck
57f424547b update goldens 2024-06-10 23:23:33 +03:00
Dieter Plaetinck
82a6e8e6ab update goldens 2024-06-10 15:32:57 +03:00
Dieter Plaetinck
a7012070d8 improve design 2024-06-08 10:15:43 +03:00
Dieter Plaetinck
90ebeec146 also show kcal consumed for "other" logs 2024-06-08 10:09:51 +03:00
Dieter Plaetinck
b7a2830106 show kcal consumed vs planned, on meal tiles 2024-06-07 21:35:08 +03:00
Dieter Plaetinck
cad829986e flutter test --update-goldens 2024-06-06 18:28:32 +03:00
Dieter Plaetinck
6f3d690594 mealtile: show macros + replace 'Log' with diary button 2024-06-06 11:22:16 +03:00
Dieter Plaetinck
accc2e7293 flutter test --update-goldens 2024-06-05 19:55:18 +03:00
Dieter Plaetinck
ccda552f4c update goldens 2024-05-29 17:20:19 +02:00
Dieter Plaetinck
d5fa2b9c18 fiber rename fixes 2024-05-29 13:04:50 +02:00
Roland Geider
cebb53c31a Merge branch 'log-fractional-meals' 2024-05-29 11:22:58 +02:00
Roland Geider
3e138d24dd Merge pull request #592 from wger-project/ingredient-form-ux
IngredientForm UX fixes
2024-05-29 10:48:33 +02:00
Dieter Plaetinck
a4bdf70582 consistent, improved deduplication behavior across mealitems and logs
deduplicate by ingredient AND amount: so if you use the same
ingredient, but in a different amount, the different amount
will show up
this increases the list of suggestions for editing meals,
and decreases the list logging an ingredient (significantly,
if you often log the same ingredient in the same amount)
2024-05-28 11:58:38 +02:00
Dieter Plaetinck
4fcacbcdce fix test 2024-05-27 10:05:13 +02:00
Dieter Plaetinck
caa2866bdf Merge branch 'master' into goal-fiber 2024-05-25 09:53:47 +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
Roland Geider
5d237e1ddf Consistently use "fiber" 2024-05-23 17:54:50 +02:00
Roland Geider
239e1a1caa Consistently use "fibers" instead of "fibres" 2024-05-20 22:06:47 +02:00
Dieter Plaetinck
36d9dd55f1 update test fixtures 2024-05-18 22:53:16 +02:00
Dieter Plaetinck
7c4f85b820 flutter test --update-goldens 2024-05-18 22:44:00 +02:00