Commit Graph

4795 Commits

Author SHA1 Message Date
pankaj-basnet
e81bb990ea test(measurements): add unit tests for chart rendering, aggregation, metric routing, and composite group cards (#1251)
Validates MeasurementBarChartWidgetFl rendering, aggregatePerDay logic, buildChartForMetricType routing, and CategoriesCard group composition for multi-value metrics like blood pressure.
2026-07-13 09:51:54 +05:45
dependabot[bot]
181cc69315 Bump video_player from 2.11.1 to 2.12.0
Bumps [video_player](https://github.com/flutter/packages/tree/main/packages/video_player) from 2.11.1 to 2.12.0.
- [Commits](https://github.com/flutter/packages/commits/video_player-v2.12.0/packages/video_player)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-13 00:54:24 +00:00
dependabot[bot]
d2b036c775 Bump app_links from 7.2.0 to 7.2.1
Bumps [app_links](https://github.com/llfbandit/app_links) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/llfbandit/app_links/releases)
- [Commits](https://github.com/llfbandit/app_links/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-13 00:54:14 +00:00
Roland Geider
c088af2223 Merge pull request #1261 from pankaj-basnet/feat/healthsync--sort-measurements-categories-1258
feat(measurements): implement drag-and-drop category reordering (#1258)
2026-07-11 00:46:39 +02:00
Roland Geider
55cdd64fb3 Fix trigger for CI 2026-07-11 00:46:20 +02:00
Roland Geider
3fc33e1acc Add multi-value measurements to the test data 2026-07-11 00:37:10 +02:00
Roland Geider
cbb960bdef Filter out sub-categories, fix off-by-one index 2026-07-11 00:31:35 +02:00
Roland Geider
8ae054dfe8 Merge branch 'feature/health-sync' into feat/healthsync--sort-measurements-categories-1258 2026-07-11 00:25:58 +02:00
pankaj-basnet
29032dec40 feat(measurements): add order field to MeasurementCategory model and drag-and-drop category sort screen
- sort categories by order and implement reorder logic
2026-07-10 21:06:16 +05:45
Roland Geider
066d6430d8 Refactor the data model for multi-value categories
Measurement categories can optionally point to another category, In practice, this
will just be something like blood pressure since these values only make sense in a
pair. Others can be interesting while combined (heart rate and steps), but are valid
on their own.
2026-07-10 16:18:48 +02:00
Roland Geider
8aac3da7a8 Add workaround for swift package manager for the health package 2026-07-10 15:46:42 +02:00
Mustafa Senoglu
0a42125285 chore: regenerate database.g.dart for nullable routineId 2026-07-10 12:43:45 +03:00
Roland Geider
23a792f6a7 Merge branch 'feature/health-sync' into feature/dynamic-measurements-category 2026-07-10 01:15:04 +02:00
Roland Geider
a7a31baac4 Merge pull request #1251 from pankaj-basnet/feat/healthsync
feat(measurements): measurement charts and metric type selection #1247
2026-07-09 17:20:13 +02:00
Roland Geider
42507844d2 Cleanup, translations and small tests 2026-07-09 17:12:51 +02:00
Roland Geider
bad4993226 Merge branch 'feature/health-sync' into feat/healthsync
# Conflicts:
#	lib/database/powersync/tables/measurements.dart
#	lib/features/measurements/models/measurement_category.dart
#	lib/features/measurements/widgets/helpers.dart
2026-07-09 16:10:54 +02:00
Roland Geider
b9b3669c40 Merge pull request #1234 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-07-09 13:19:26 +02:00
Mustafa Senoglu
cc483f3dae fix: make routineId nullable in WorkoutLogTable to prevent crash
Server allows workout logs without a routine (free/ad-hoc logging),
but the app's Drift table declared routineId as non-nullable.
This caused a null check operator crash when PowerSync delivered
a row with routine_id = NULL.

Changes:
- WorkoutLogTable.routineId: integer() → integer().nullable()
- Log.routineId: late int → int?
- Log constructor: required this.routineId → this.routineId
- Log.toCompanion: handle null routineId with Value.absent()

Fixes #1250
2026-07-09 14:15:04 +03:00
Roland Geider
f4eef63a59 Merge remote-tracking branch 'origin/master' into feature/weblate 2026-07-09 13:12:52 +02:00
Roland Geider
4a8a1d6d00 Split test into shards for parallel runs 2026-07-09 13:07:07 +02:00
Roland Geider
fb002c5c34 Merge pull request #1253 from wger-project/dependabot/pub/app_links-7.2.0
Bump app_links from 7.1.2 to 7.2.0
2026-07-09 12:54:54 +02:00
Roland Geider
3b89ebf7ee Merge pull request #1254 from wger-project/dependabot/pub/equatable-2.1.0
Bump equatable from 2.0.8 to 2.1.0
2026-07-09 12:54:37 +02:00
Roland Geider
be1c994970 Merge pull request #1256 from pankaj-basnet/feat/gym-mode-log-controls-1240
feat(gym-mode): add logs history scope and deduplication controls (#1240)
2026-07-09 12:53:57 +02:00
Roland Geider
0a2ebed6f0 Remove references to cocoapods, this is not needed anymore 2026-07-09 12:45:06 +02:00
Roland Geider
388b403b5d Cleanup some of the new translation keys 2026-07-09 12:45:06 +02:00
Roland Geider
79d663f17f Move gym-mode settings directly into GymModeOptions
I'd say the widget is not big enough to be split up (yet)
2026-07-09 12:01:34 +02:00
Roland Geider
275523f75b Take the repetition unit ID into account while deduping 2026-07-08 17:49:38 +02:00
Roland Geider
569c51c98a Fix setLogScopeWeeks
We now pass clearLogScopeWeeks so that selecting "current routine" actually
resets the scope instead of keeping the previous week count
2026-07-08 17:00:41 +02:00
pankaj-basnet
583982ba1d feat(gym-mode): add logScopeWeeks and showDistinctLogs to GymModeState
- implement persistence for log scope and distinct settings
- refactor(logs): update pastExerciseLogsProvider to support custom scope and deduplication
- feat(ui): add log scope controls to StartPage and LogPage
2026-07-07 22:40:25 +05:45
dependabot[bot]
ec834abc50 Bump equatable from 2.0.8 to 2.1.0
Bumps [equatable](https://github.com/felangel/equatable) from 2.0.8 to 2.1.0.
- [Release notes](https://github.com/felangel/equatable/releases)
- [Changelog](https://github.com/felangel/equatable/blob/master/CHANGELOG.md)
- [Commits](https://github.com/felangel/equatable/compare/v2.0.8...v2.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-06 00:54:41 +00:00
dependabot[bot]
861aeb8692 Bump app_links from 7.1.2 to 7.2.0
Bumps [app_links](https://github.com/llfbandit/app_links) from 7.1.2 to 7.2.0.
- [Release notes](https://github.com/llfbandit/app_links/releases)
- [Commits](https://github.com/llfbandit/app_links/compare/7.1.2...7.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-06 00:54:34 +00:00
dependabot[bot]
1c5b9e5751 Bump image_picker from 1.2.2 to 1.2.3
Bumps [image_picker](https://github.com/flutter/packages/tree/main/packages/image_picker) from 1.2.2 to 1.2.3.
- [Commits](https://github.com/flutter/packages/commits/image_picker-v1.2.3/packages/image_picker)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-06 00:54:26 +00:00
pankaj-basnet
5ff9d259d3 feat(charts): add smoothed trendline to measurement charts
- Implement centered moving average trendline in charts.dart.
- Update MeasurementChartWidgetFl to render trendline bar data.
- Integrate smoothedTreadline logic into metric chart builder.

refactor(db): implement MetricType Drift converter
- Add MeasurementMetricTypeConverter to map enum to SQLite text.
- Update MeasurementCategoryTable to use the new converter.
2026-07-04 19:49:13 +05:45
pankaj-basnet
6c3373fc73 feat(measurements): add metricType to category schema
- Add metricType property to MeasurementCategory model and DB table.

- Include local-only persistence for metric categorization.

- Update UI form and localization strings.
2026-07-04 13:29:35 +05:45
pankaj-basnet
5d1f037219 feat(measurements): add metric type selection and detail view support
- Replace hardcoded line charts with buildChartForMetricType

- add metric type selection and detail view support
- Add DropdownButtonFormField to MeasurementCategory form for user assignment
- Pass metricType to detail view rendering pipeline in EntriesList
- Update form state management to handle manual metric type assignment
2026-07-03 14:44:41 +05:45
pankaj-basnet
84d0de78c6 feat(measurements): introduce MetricType enum and category properties
- Add MetricType enum supporting Django API field mapping
- Provide localized en string descriptors for health categories

- implement daily aggregation logic and bar chart widget
- Implement MeasurementBarChartWidgetFl using fl_chart

- Update getOverviewWidgets signatures to dynamically handle MetricType
- Add buildChartForMetricType conditional rendering interceptor
- Bind step, distance, sleep, and energy categories to the bar chart pipeline
2026-07-03 09:57:08 +05:45
Roland Geider
01c13b1ad6 Add health repository
This follows the convention in the rest of the application and allows us to
easily mock it for tests.
2026-07-02 22:07:03 +02:00
Roland Geider
18b745f365 Start reworking the sync logic
We don't just want to sync the weight entries
2026-07-02 21:45:53 +02:00
Roland Geider
ee084f1000 Merge branch 'pr-1156' into feature/health-sync 2026-07-02 21:17:16 +02:00
Roland Geider
1dada59c31 Merge pull request #1243 from wger-project/dependabot/pub/powersync-2.3.1
Bump powersync from 2.3.0 to 2.3.1
2026-07-02 20:51:37 +02:00
dependabot[bot]
dc4e161684 Bump powersync from 2.3.0 to 2.3.1
Bumps [powersync](https://github.com/powersync-ja/powersync.dart) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/powersync-ja/powersync.dart/releases)
- [Commits](https://github.com/powersync-ja/powersync.dart/compare/powersync-v2.3.0...powersync-v2.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 17:42:56 +00:00
Roland Geider
dcb58ec146 Merge pull request #1242 from wger-project/dependabot/pub/connectivity_plus-7.2.0
Bump connectivity_plus from 7.1.1 to 7.2.0
2026-07-02 19:39:03 +02:00
Roland Geider
99a2c4729c Bump flutter version 2026-07-02 10:08:04 +02:00
Roland Geider
8b4587a58c Consolidate ingredient dialogs tests into one file 2026-07-01 23:09:36 +02:00
Roland Geider
6797c04fce Split MealItem tests out of nutritional_plan_model_test.dart 2026-07-01 23:04:28 +02:00
Roland Geider
9df1e3fe35 Split settings_test into notifier and widget tests 2026-07-01 22:59:30 +02:00
Roland Geider
2158075e12 Merge base_provider_extra_test into base_provider_test
Both were testing the same thing
2026-07-01 22:51:01 +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