Commit Graph

2898 Commits

Author SHA1 Message Date
Roland Geider
140fe11e2a Mark the day in the routine for the current date 2025-03-11 21:03:20 +01:00
Roland Geider
4e60f14917 The dashboard can be a StatelessWidget 2025-03-11 20:44:42 +01:00
Roland Geider
325cc93865 Refresh the whole routine after modifying further objects.
This makes sure that all the structures are present and have the correct
content (dayData, etc.). Also, add more feedback to the user for some operations
that take a bit longer due to loading the whole routine.
2025-03-11 20:36:38 +01:00
Roland Geider
3abfd43be0 Rename variable to make it clearer what it does 2025-03-11 14:27:15 +01:00
Roland Geider
929acc7938 Refresh the whole routine after modifying a day
This makes sure that all the structures are present and have the correct
content (dayData, etc.)
2025-03-11 14:06:09 +01:00
Roland Geider
9c68a5abf4 Show button to edit the routine if it is empty 2025-03-11 13:51:47 +01:00
Roland Geider
1f647b5033 Correctly navigate to new routine after creating it 2025-03-11 13:50:13 +01:00
Roland Geider
883490ecd4 Juggle with the widgets so the routine form doesn't cause overflow errors
Seems this is the only form to make it work within the SingleChildScrollView
2025-03-11 13:25:30 +01:00
Roland Geider
27f0afb059 Merge branch 'master' into feature/flexible-routines
# Conflicts:
#	pubspec.lock
2025-03-11 10:31:52 +01:00
dependabot[bot]
061598df74 Bump drift from 2.25.1 to 2.26.0
Bumps [drift](https://github.com/simolus3/drift) from 2.25.1 to 2.26.0.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift-2.25.1...drift-2.26.0)

---
updated-dependencies:
- dependency-name: drift
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 21:22:37 +01:00
dependabot[bot]
9872c7f2a9 Bump drift_dev from 2.25.2 to 2.26.0
Bumps [drift_dev](https://github.com/simolus3/drift) from 2.25.2 to 2.26.0.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift_dev-2.25.2...drift_dev-2.26.0)

---
updated-dependencies:
- dependency-name: drift_dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 21:22:27 +01:00
dependabot[bot]
f2aa2a23ab Bump sqlite3_flutter_libs from 0.5.30 to 0.5.31
Bumps [sqlite3_flutter_libs](https://github.com/simolus3/sqlite3.dart) from 0.5.30 to 0.5.31.
- [Release notes](https://github.com/simolus3/sqlite3.dart/releases)
- [Commits](https://github.com/simolus3/sqlite3.dart/compare/sqlite3_flutter_libs-0.5.30...sqlite3_flutter_libs-0.5.31)

---
updated-dependencies:
- dependency-name: sqlite3_flutter_libs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-09 18:08:30 +01:00
dependabot[bot]
236f052be0 Bump package_info_plus from 8.2.1 to 8.3.0
Bumps [package_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus) from 8.2.1 to 8.3.0.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/package_info_plus-v8.3.0/packages/package_info_plus)

---
updated-dependencies:
- dependency-name: package_info_plus
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-09 18:08:18 +01:00
dependabot[bot]
88b1573278 Bump flex_color_scheme from 8.1.0 to 8.1.1
Bumps [flex_color_scheme](https://github.com/rydmike/flex_color_scheme) from 8.1.0 to 8.1.1.
- [Release notes](https://github.com/rydmike/flex_color_scheme/releases)
- [Changelog](https://github.com/rydmike/flex_color_scheme/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rydmike/flex_color_scheme/compare/8.1.0...8.1.1)

---
updated-dependencies:
- dependency-name: flex_color_scheme
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-09 18:08:05 +01:00
dependabot[bot]
54edd4df0e Bump build_runner from 2.4.14 to 2.4.15
Bumps [build_runner](https://github.com/dart-lang/build) from 2.4.14 to 2.4.15.
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_runner-v2.4.14...build_runner-v2.4.15)

---
updated-dependencies:
- dependency-name: build_runner
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 21:34:34 +01:00
dependabot[bot]
2cfdb3a3f0 Bump video_player from 2.9.2 to 2.9.3
Bumps [video_player](https://github.com/flutter/packages/tree/main/packages/video_player) from 2.9.2 to 2.9.3.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/video_player-v2.9.3/packages/video_player)

---
updated-dependencies:
- dependency-name: video_player
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 21:34:23 +01:00
dependabot[bot]
cb71b1b87c Bump shared_preferences from 2.5.1 to 2.5.2
Bumps [shared_preferences](https://github.com/flutter/packages/tree/main/packages/shared_preferences) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/shared_preferences-v2.5.2/packages/shared_preferences)

---
updated-dependencies:
- dependency-name: shared_preferences
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 21:34:12 +01:00
dependabot[bot]
00f471dcab Bump json_serializable from 6.9.3 to 6.9.4
Bumps [json_serializable](https://github.com/google/json_serializable.dart) from 6.9.3 to 6.9.4.
- [Release notes](https://github.com/google/json_serializable.dart/releases)
- [Commits](https://github.com/google/json_serializable.dart/compare/json_serializable-v6.9.3...json_serializable-v6.9.4)

---
updated-dependencies:
- dependency-name: json_serializable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 21:34:03 +01:00
Roland Geider
2f975b1fd3 Correctly handle the state
The problem was that some of the previous changes were asynchronous and would
not always represent the actual current state. This solution works, but is
a bit verbose and perhaps overly complicated?
2025-02-22 23:09:59 +01:00
Roland Geider
eecaa6fcf0 Merge branch 'feature/flexible-routines' into Jackpkn-fix/gym-provider-navigation 2025-02-21 22:16:25 +01:00
Roland Geider
f25e9867a2 Cleanup 2025-02-21 22:05:29 +01:00
Roland Geider
4f94a6a41e Make the repetition and weight units nullable as per the backend 2025-02-21 16:37:16 +01:00
dependabot[bot]
d9115ed632 Bump sqlite3_flutter_libs from 0.5.29 to 0.5.30
Bumps [sqlite3_flutter_libs](https://github.com/simolus3/sqlite3.dart) from 0.5.29 to 0.5.30.
- [Release notes](https://github.com/simolus3/sqlite3.dart/releases)
- [Commits](https://github.com/simolus3/sqlite3.dart/compare/sqlite3_flutter_libs-0.5.29...sqlite3_flutter_libs-0.5.30)

---
updated-dependencies:
- dependency-name: sqlite3_flutter_libs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-17 12:34:07 +01:00
dependabot[bot]
a383a6e36c Bump package_info_plus from 8.1.4 to 8.2.1
Bumps [package_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus) from 8.1.4 to 8.2.1.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/package_info_plus-v8.2.1/packages/package_info_plus)

---
updated-dependencies:
- dependency-name: package_info_plus
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-17 12:33:42 +01:00
dependabot[bot]
b9f91b9170 Bump drift_dev from 2.24.0 to 2.25.2
Bumps [drift_dev](https://github.com/simolus3/drift) from 2.24.0 to 2.25.2.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift_dev-2.24.0...drift_dev-2.25.2)

---
updated-dependencies:
- dependency-name: drift_dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-17 12:33:25 +01:00
dependabot[bot]
6dd4b738ed Bump drift from 2.24.0 to 2.25.1
Bumps [drift](https://github.com/simolus3/drift) from 2.24.0 to 2.25.1.
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](https://github.com/simolus3/drift/compare/drift-2.24.0...drift-2.25.1)

---
updated-dependencies:
- dependency-name: drift
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-17 12:33:15 +01:00
Roland Geider
14a5d7285b Extract the day data for the current routine
instead of loading the same data from the server
2025-02-16 21:19:17 +01:00
dependabot[bot]
dcaef4e749 Bump package_info_plus from 8.1.3 to 8.1.4
Bumps [package_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus) from 8.1.3 to 8.1.4.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/package_info_plus-v8.1.4/packages/package_info_plus)

---
updated-dependencies:
- dependency-name: package_info_plus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 11:53:36 +01:00
dependabot[bot]
bb0b2fa07f Bump shared_preferences from 2.4.0 to 2.5.1
Bumps [shared_preferences](https://github.com/flutter/packages/tree/main/packages/shared_preferences) from 2.4.0 to 2.5.1.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/shared_preferences-v2.5.1/packages/shared_preferences)

---
updated-dependencies:
- dependency-name: shared_preferences
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 11:53:19 +01:00
Roland Geider
460b6e7125 Add smoke test for fetchAndSetRoutineFull 2025-02-02 22:38:05 +01:00
Roland Geider
888989a8f3 Update goldens 2025-02-02 14:51:12 +01:00
Roland Geider
2498183094 Rename further instances of "reps" to "repetitions" 2025-02-01 19:24:15 +01:00
Roland Geider
323b18320f Rename key to be more consistent 2025-02-01 15:34:00 +01:00
Roland Geider
3ef8b62d53 Update exercise info API paths 2025-02-01 15:29:14 +01:00
Roland Geider
110c98ffbd Merge branch 'feature/flexible-routines' into Jackpkn-fix/gym-provider-navigation 2025-01-31 21:33:57 +01:00
Roland Geider
5e389664b7 Make LogChartWidgetFl work again 2025-01-31 18:11:35 +01:00
Roland Geider
8256c46d4f Initialize the units for the log entries in the session 2025-01-31 17:52:47 +01:00
dependabot[bot]
c9ff884961 Bump shared_preferences from 2.3.5 to 2.4.0
Bumps [shared_preferences](https://github.com/flutter/packages/tree/main/packages/shared_preferences) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/shared_preferences-v2.4.0/packages/shared_preferences)

---
updated-dependencies:
- dependency-name: shared_preferences
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-31 16:59:29 +01:00
Roland Geider
65cccbe824 Update language list 2025-01-31 16:38:00 +01:00
Roland Geider
8fa75c2aa6 Update goldens 2025-01-31 16:35:48 +01:00
Roland Geider
2e62fdee83 Cleanup 2025-01-31 16:25:03 +01:00
Roland Geider
5058498c4f Allow passing all parameters to the WorkoutSession constructor 2025-01-31 16:24:56 +01:00
Roland Geider
ef4db2c772 Pass the routine ID to the RoutineScreen widget 2025-01-31 16:24:21 +01:00
Roland Geider
bfcc793e1c Fix integration tests 2025-01-31 16:21:57 +01:00
Roland Geider
3e6ee0b082 Update models due to changes in exercise api response changes 2025-01-30 21:48:44 +01:00
Roland Geider
4bd16f5c0d Remove logs from the routine
The logs are now in the session list and can be easily extracted if needed
2025-01-30 18:21:09 +01:00
Roland Geider
7c6fbebdf5 Show workout session information 2025-01-26 20:11:21 +01:00
Roland Geider
51ed2ef428 Format numeric log values 2025-01-26 19:33:20 +01:00
Roland Geider
6869dc9789 Use logging package for debug messages in routines provider 2025-01-26 15:12:01 +01:00
Roland Geider
b4f8a59a70 Add the newly created session to the routine 2025-01-26 15:07:37 +01:00