Roland Geider
7ebb97c462
Fix source default, hide health settings section when unavailable
2026-07-17 18:05:51 +02:00
Roland Geider
f0a088eb0e
Round imported health values to match backend and lowercase external ids
2026-07-17 18:05:51 +02:00
Roland Geider
5a65b84943
Merge pull request #1266 from pankaj-basnet/feat/tests--measurements-healthsync
...
test(measurements): add unit tests for chart rendering and multi-value category cards (#1251 )
2026-07-17 17:44:22 +02:00
Roland Geider
b6c83ff37f
Rename files so they match the ones they test
2026-07-17 17:38:50 +02:00
pankaj-basnet
432d9f1dde
feat(measurements): add category form test , update categories screen test
2026-07-14 12:42:21 +05:45
pankaj-basnet
5c129bbb7d
test(measurements): add GroupMeasurementEntryForm widget tests and addGroupEntries notifier unit tests
2026-07-13 15:49:47 +05:45
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
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
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
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
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
Roland Geider
164b7de049
Merge pull request #1249 from wger-project/feature/file-restructuring
...
Folder restructuring
2026-07-01 20:39:52 +02:00
Roland Geider
60c9f67282
Move shared infra to lib/core/
2026-07-01 20:28:06 +02:00
Roland Geider
c4f5c78459
Move auth UI to lib/features/auth/
2026-07-01 18:34:24 +02:00
Roland Geider
a46bd22025
Move account feature to lib/features/account/
2026-07-01 18:28:10 +02:00
Roland Geider
8b929b23c1
Move routines feature to lib/features/routines/
2026-07-01 18:22:50 +02:00
Roland Geider
33fbe279ca
Move nutrition feature to lib/features/nutrition/
2026-07-01 17:57:49 +02:00
Roland Geider
08fe476e5b
Move exercises feature to lib/features/exercises/
2026-07-01 17:45:43 +02:00
Roland Geider
21ea4dbc54
Move gallery feature to lib/features/gallery/
2026-07-01 17:30:11 +02:00
Roland Geider
ae513e3566
Move trophies feature to lib/features/trophies/
2026-07-01 17:21:18 +02:00
Roland Geider
9a393465f3
Move trophies feature to lib/features/trophies/
2026-07-01 17:09:45 +02:00
Roland Geider
ae81c32a23
Move weight feature to lib/features/weight
2026-07-01 16:55:09 +02:00
Roland Geider
09da3a5672
Refactor measurement category form to use common behaviour
2026-07-01 11:00:28 +02:00
Roland Geider
e8951ca8cb
Refactor session models and their use in forms
...
We now either pass the existing workout session to edit, or null if we want
to add a new entry
2026-07-01 10:59:52 +02:00
Roland Geider
b9d326045b
Prefill start and end times for lazily created sessions
2026-07-01 10:59:52 +02:00
Roland Geider
38706a5ebe
Merge pull request #1241 from wger-project/dependabot/pub/package_info_plus-10.2.0
...
Bump package_info_plus from 10.1.0 to 10.2.0
2026-07-01 10:59:07 +02:00