Commit Graph

52 Commits

Author SHA1 Message Date
Roland Geider
5c77a99bfc Apply dynamic color to the high contrast themes too 2026-08-04 12:19:52 +02:00
Roland Geider
762b679eac Only offer dynamic color where the platform supports it 2026-08-04 12:10:34 +02:00
Roland Geider
a1f4844f6c Replace more hard coded colors with theme generated ones 2026-08-04 11:52:29 +02:00
Roland Geider
1af9471ef4 Replace more hard coded colors with theme generated ones 2026-08-04 11:41:17 +02:00
Roland Geider
07aa325ec5 Generate chart colors from the scheme instead of a fixed palette 2026-08-04 11:24:10 +02:00
Roland Geider
ec20dd45de Use theme colors instead of fixed ones 2026-08-04 00:01:39 +02:00
Praharsha2007
d2dacb116d feat : implemented dynamic colour support 2026-08-03 21:15:00 +05:30
Roland Geider
914e9ac575 Surface involuntary logouts and revalidate the session on app resume
This makes it obvious why users are redirected to the auth screen, since the
snackbar could be easily missed.

See #1265
2026-07-30 15:47:04 +02:00
Roland Geider
b732b619c2 Describe updated behaviour in comments 2026-07-30 15:02:04 +02:00
Roland Geider
1a58dd8f71 Warn in the settings while certificates are not being verified 2026-07-30 14:23:37 +02:00
Roland Geider
3a57479585 Scope the self-signed setting to one host and apply without a restart 2026-07-30 13:57:41 +02:00
Roland Geider
41378988d0 Merge branch 'master' into feat/allow-self-signed-certs
# Conflicts:
#	lib/core/app_settings_notifier.dart
#	lib/core/app_settings_notifier.g.dart
#	lib/core/http_overrides.dart
#	lib/features/auth/widgets/auth_card.dart
#	lib/main.dart
#	test/features/account/widgets/settings_test.dart
2026-07-30 13:20:33 +02:00
Roland Geider
30cc2fc959 Improve logging 2026-07-29 17:42:31 +02:00
Roland Geider
630d4864d8 Cleanup 2026-07-29 17:28:47 +02:00
Roland Geider
9e446e0b94 Allow users to submit issues to github with full stackstrace and sync debug info 2026-07-29 17:23:09 +02:00
Roland Geider
718fa05d1b Add sync diagnostics to the "submit to github" error dialog 2026-07-29 17:06:05 +02:00
Roland Geider
30f44ad471 Show more sync information on the sync status dialog
Also, make it stateful so it shows live data for sync queue size, etc.
2026-07-29 16:50:14 +02:00
Roland Geider
d72a0ccf93 Allow users to force-reconnect to the powersync service 2026-07-29 16:22:30 +02:00
Roland Geider
3ee512fd6c More intelligent powersync service URL handling
When the server-provided powersync URL is not reachable, try using $server-url/ps/.
This should help with self-hosted instances where SITE_URL points to localhost
or other similar misconfigurations

See https://github.com/wger-project/wger/issues/2432
2026-07-28 15:06:34 +02:00
Roland Geider
b277e81088 Detect a sync stream that is blocked on the network path
This might help debugging when an ad-blocker, vpn or similar interferes with
the connections to the sync service

See #1271
2026-07-23 14:56:29 +02:00
Roland Geider
ed623f9108 Improve PowerSync sync diagnostics and token expiry handling 2026-07-23 13:58:06 +02:00
Roland Geider
938001b152 Optimistically set the online status
This avoids having the app register as "offline" after bringing it back from
the background
2026-07-17 21:31:29 +02:00
Roland Geider
290b991311 Consolidate snackbar calls code into a helper 2026-07-01 22:46:26 +02:00
Roland Geider
0d198745ec Consolidate formatting code into a helper 2026-07-01 22:37:37 +02:00
Roland Geider
434ec11fed Localize the date-range form validators
The translations were taken from the react repo
2026-07-01 22:30:30 +02:00
Roland Geider
60c9f67282 Move shared infra to lib/core/ 2026-07-01 20:28:06 +02:00
Roland Geider
bfb44c2157 Extract title from html error messages 2026-06-17 21:39:51 +02:00
Roland Geider
177a48d6c7 Fix use_build_context_synchronously and unused_local_variable lint warnings 2026-06-15 22:45:11 +02:00
Roland Geider
54e97299f9 Consolidate usage of FormSubmitButton 2026-06-14 21:48:41 +02:00
Roland Geider
5f9abdb15f Slight refactor of the error handling
This moves some of the pieces to the correct places
2026-06-14 21:25:59 +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
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
7d958b5055 Top-align the contents of the WidescreenWrapper 2026-05-25 19:52:54 +02:00
Roland Geider
a7e30fcf8c Refactor auth screen
This has been split up into several individual widgets and (hopefully) made
more user friendly
2026-05-24 20:14:25 +02:00
Roland Geider
87a40fd4e6 Switch the pasted-token field from DRF tokens to refresh tokens 2026-05-22 20:08:43 +02:00
Roland Geider
736cb41cb2 Improve the login process
The previous process was depending too much on the backend being available, we
can now bypass many of these checks if the user had already logged in before
2026-05-22 19:19:00 +02:00
Roland Geider
d97de48fee Refactor the error logic
UI related functions have been moved to error_dialogs.dart, while everything else
is kept in errors.dart
2026-05-22 15:50:33 +02:00
Roland Geider
95fb6c6615 Migrate the nutrition provider to riverpod 2026-04-17 18:19:00 +02: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
6620a83baa Improve html error detection
In case the header is not correctly set, try to detect html error messages
from the content itself
2026-01-14 14:59:07 +01:00
Roland Geider
455c9a07b1 Merge branch 'master' into feature/powersync-test
# Conflicts:
#	lib/helpers/errors.dart
#	lib/models/workouts/log.dart
#	lib/models/workouts/session.dart
#	lib/providers/body_weight.dart
#	lib/providers/exercises.dart
#	lib/providers/gym_state.g.dart
#	lib/providers/routines.dart
#	lib/widgets/routines/forms/day.dart
#	lib/widgets/routines/forms/reps_unit.dart
#	lib/widgets/routines/forms/routine.dart
#	lib/widgets/routines/forms/session.dart
#	lib/widgets/routines/forms/slot.dart
#	lib/widgets/routines/forms/slot_entry.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	lib/widgets/routines/gym_mode/session_page.dart
#	pubspec.lock
#	test/exercises/exercise_provider_test.dart
#	test/routine/forms/session_form_test.dart
#	test/routine/gym_mode/session_page_test.dart
#	test/routine/routine_form_test.dart
2025-12-18 12:17:56 +01:00
Roland Geider
077dcaf742 Handle HTML errors in WgerHttpException
These need to be handled separately when the server encounters an error and
returns HTML instead of JSON.
2025-12-17 18:59:45 +01: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
d1e6a04ece Remove old exercise database 2025-11-03 16:53:10 +01:00
Roland Geider
0add2a6bd1 Extract url validator to its own file 2025-10-08 14:03:25 +02:00
Roland Geider
8ce9029459 Start migrating the ingredient cache to a local sqlite database 2024-09-26 21:18:54 +02:00
Dieter Plaetinck
11ee38c03d dart fix --apply 2024-06-20 15:47:55 +03:00
Dieter Plaetinck
cf351c3690 dcm fix --only-rules=prefer-declaring-const-constructor lib 2024-06-07 14:59:00 +03: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