Commit Graph
130 Commits
Author SHA1 Message Date
Roland Geider 209ab7cbbe Add gallery sync tables 2026-05-01 15:25:31 +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 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 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 c1d2fbe67b Show loading spinner for the routine widget in the dashboard 2026-04-23 15:38:21 +02:00
Roland Geider f5ab4ca390 Handle HTTP errors
If the indetify the error as having HTML (e.g. during development, a wrongly configured
reverse proxy, etc.) render the HTML instead
2026-04-23 13:33:10 +02:00
Roland Geider f7458f86f5 Add unreachable server screen and related error handling 2026-04-23 12:41:37 +02:00
Roland Geider 1258382957 Use common widget to render AsyncValues (errors, loading, etc.) 2026-04-18 23:02:17 +02:00
Roland Geider 8252dcdd74 Properly check if the userprofile was correctly loaded 2026-04-18 16:21:41 +02:00
Roland Geider c1a733b423 Clear the powersync database when a user logs out 2026-04-17 22:48:14 +02:00
Roland Geider 97dee19368 Migrate the gallery provider to riverpod 2026-04-17 21:12:34 +02:00
Roland Geider 95fb6c6615 Migrate the nutrition provider to riverpod 2026-04-17 18:19:00 +02:00
Roland Geider f4a0a9bff6 Migrate the user provider to riverpode 2026-04-17 17:11:59 +02:00
Roland Geider 8ad3585ce6 Refactor the auth provider, and move it to riverpod 2026-04-17 16:25:04 +02:00
Roland Geider 7221109a64 Revert to using ID and UUID as names for the fields
This is more explicit and seems like a better way to do it.
2026-03-13 22:58:11 +01:00
Roland Geider a5f08c09ac Add the network information widget to regular list of dashboard widgets 2026-03-13 14:52:13 +01:00
Roland Geider c87d3825b4 Merge branch 'master' into feature/offline-mode
# Conflicts:
#	lib/l10n/app_en.arb
#	lib/models/workouts/log.dart
#	lib/models/workouts/weight_unit.dart
#	lib/providers/exercises.dart
#	lib/providers/gym_log_state.g.dart
#	lib/providers/routines.dart
#	lib/widgets/routines/forms/reps_unit.dart
#	lib/widgets/routines/forms/weight_unit.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	macos/Flutter/GeneratedPluginRegistrant.swift
#	pubspec.lock
#	pubspec.yaml
#	test/core/settings_test.mocks.dart
#	test/core/validators_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/exercises/exercise_provider_db_test.dart
#	test/exercises/exercises_detail_widget_test.mocks.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/repetition_unit_form_widget_test.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/routine/routines_screen_test.mocks.dart
#	test/routine/weight_unit_form_widget_test.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
#	test/widgets/routines/gym_mode/log_page_test.mocks.dart
#	test_data/routines.dart
2026-03-12 14:23:11 +01:00
Roland Geider 891dd6be27 Hide donation section when running under iOS 2026-01-29 14:37:14 +01:00
Roland Geider 92aee1228e Properly filter hidden widgets 🙄 2026-01-19 16:39:06 +01:00
Roland Geider f32dec2b08 Merge branch 'master' into feature/offline-mode
# Conflicts:
#	lib/main.dart
#	lib/models/workouts/log.dart
#	lib/models/workouts/session.g.dart
#	lib/providers/exercises.dart
#	lib/providers/gym_state.g.dart
#	lib/providers/wger_base_riverpod.dart
#	lib/screens/dashboard.dart
#	lib/screens/home_tabs_screen.dart
#	lib/widgets/core/app_bar.dart
#	lib/widgets/core/settings.dart
#	lib/widgets/dashboard/calendar.dart
#	lib/widgets/dashboard/widgets/weight.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	lib/widgets/routines/gym_mode/summary.dart
#	lib/widgets/routines/logs/day_logs_container.dart
#	lib/widgets/routines/logs/exercises_expansion_card.dart
#	pubspec.lock
#	pubspec.yaml
#	test/core/settings_test.dart
#	test/core/settings_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/exercises/exercise_provider_db_test.dart
#	test/exercises/exercise_provider_test.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/routine_logs_screen_test.dart
#	test/routine/routine_logs_screen_test.mocks.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/routine/routines_screen_test.mocks.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
2026-01-19 13:16:55 +01:00
Roland Geider f5a591a3b7 Add trophies to configurable dashboard lists 2026-01-17 14:01:17 +01:00
Roland Geider b81331609a Also allow changing the order of the dashboard widgets
This makes the behaviour more consistent and allows users to remove widgets
they won't be using, like the trophies
2026-01-17 13:43:28 +01:00
Roland Geider 5574f74a2f Move dashboard visibility settings to own screen
This seems cleaner and can be opened from other places
2026-01-17 12:50:07 +01:00
dhituval 60f902fe14 Merge branch 'master' into issue852/hide-diet-plan 2025-12-08 14:00:39 -05:00
Diya Hituvalli c0d04cbb11 allow the users to hide / show all widgets in the home screen 2025-12-08 13:57:42 -05:00
Roland Geider 909b85c850 Merge conflicts 2025-12-02 13:12:38 +01:00
Roland Geider 559eb26631 Make the app work better on wider screens 2025-12-01 13:44:25 +01:00
Roland Geider eedc249cea Merge branch 'master' into feature/powersync-test
# Conflicts:
#	lib/models/body_weight/weight_entry.dart
#	lib/models/body_weight/weight_entry.g.dart
#	lib/models/workouts/log.dart
#	lib/models/workouts/log.g.dart
#	lib/models/workouts/session.g.dart
#	pubspec.lock
#	pubspec.yaml
#	test/exercises/contribute_exercise_image_test.mocks.dart
#	test/exercises/contribute_exercise_test.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/nutrition/nutritional_meal_form_test.mocks.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
#	test/weight/weight_model_test.dart
#	test/weight/weight_provider_test.dart
#	test_data/body_weight.dart
2025-11-25 21:23:22 +01:00
Diya Hituvalli 9e24714cbd Add user preference in settings to hide diet plan if not used 2025-11-19 14:32:02 -05:00
Roland Geider f6a073766a Improve and consolidate the image error handler 2025-11-10 20:23:52 +01:00
Roland Geider e1359d0c51 Add a new riverpod provider for the routines
This is not a wrapper around the old one, which was making problems.
Delete unneeded generated files as well.
2025-11-10 15:37:59 +01:00
Roland Geider 2132249682 Wrap the routines provider
This makes it easier to load the data from the powersync database
2025-11-07 15:10:04 +01:00
Roland Geider 2b44a1eade Remove the exercise cache settings tile
This is now handled automatically by powersync
2025-10-31 10:59:48 +01:00
Roland Geider b8ea38b951 Use WarningCard to display offline mode 2025-10-31 10:36:10 +01:00
Roland Geider 666359155d Use the powersync drift provider to show exercises 2025-10-24 20:52:02 +02:00
Roland Geider d255cdb573 Consolidate body weight repositories and other providers, cleanup 2025-10-23 22:19:31 +02:00
Roland Geider 017cccab18 Start adding drift and using riverpod 2025-10-22 20:49:38 +02:00
Roland Geider 4d2083f05a Update body weight provider to use riverpod 2025-10-21 12:04:59 +02:00
Roland Geider bc6a5ebdbf Make common widget for when an image format is not supported 2025-10-16 22:03:40 +02:00
Roland Geider 93a11a16e4 Recreate generated files and reformat the repo
Seems the default dart formatting rules changed recently, and this was causing
huge diffs in branches
2025-10-09 17:39:02 +02:00
Roland Geider 136d0e0825 Extract some logic to their own widgets 2025-10-06 12:43:05 +02:00
Roland Geider fa7f670e9f Some light cleanup 2025-10-06 12:31:12 +02:00
Roland Geider 9ea8362d20 Show an overview with the new exercise data before saving
Also, correctly parse all validation errors that might be returned by the server
2025-09-19 16:59:18 +02:00
Roland Geider 5a4d4c7208 Save the application logs
This allows us to show the logs to the user and also send them along with any
bug reports. This is a simple system that just keeps the last entries in memory
and nothing is stored permanently, but that's ok for our use case and can be
changed in the future if the need arises.
2025-09-06 22:08:35 +02:00
Roland Geider d85ee13ed9 Give users more control over the exercise cache
This allows users to manually refresh the cache and load all exercises
from the server.
2025-09-06 15:05:52 +02:00
Roland Geider e470087f4c Move ConfigureAvailablePlates to its own widget
This makes the corresponding screen to be much clearer
2025-05-27 17:56:55 +02:00
Roland Geider 116888d824 Also add link to exercise submission screen 2025-05-11 17:00:17 +02:00
Roland Geider f091694b47 Extract common urls to consts.dart 2025-05-09 22:37:06 +02:00