You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 🚀 Pull Request
## Brief Description
This PR enhances the ui of the activity details
## Linked Issues
<!-- Link related issues with the format: Fixes#123, Resolves #456,
Closes #1337 -->
- closes#61
- closes#69
## Screenshots
<!-- Add screenshots if UI changes were made. Either new screens only or
before/after -->
|Activity Details | |
|----------| ---------|
|
| |
## GitHub Copilot Text
This pull request includes significant updates to the health tracking
functionality, focusing on enhancements to data processing, user
interface improvements, and localization updates.
### Data Processing Improvements:
* Updated `BaseLocalHealthRepoImpl` to handle `DISTANCE_DELTA` type in
addition to `WORKOUT` type for prioritizing data from Movetopia.
* Fixed calculation of `totalDistance` by ensuring proper type
conversion in `BaseLocalHealthRepoImpl`.
* Replaced direct distance calculations with the `metresToKilometres`
utility function in `HealthServiceImpl`.
[[1]](diffhunk://#diff-3e53fc5b1dfa9fdd52f251a640e34d6e0d9885b33745f4471df5785f1d0dabe0L213-R219)
[[2]](diffhunk://#diff-3e53fc5b1dfa9fdd52f251a640e34d6e0d9885b33745f4471df5785f1d0dabe0L276-R276)
### User Interface Enhancements:
* Added `HearthFrequencyGraph` to visualize heart rate data in
`ActivityDetailsScreen`.
[[1]](diffhunk://#diff-7de7ecaa5049c970d5d1936f0651b260dc61f35c6a4d3b9850684be7e0f41602R66-R68)
[[2]](diffhunk://#diff-7de7ecaa5049c970d5d1936f0651b260dc61f35c6a4d3b9850684be7e0f41602R91-R103)
* Created a generic `GraphVisualization` widget to support various types
of data visualizations.
* Updated `WorkoutDetails` to display additional metrics such as steps
and distance.
[[1]](diffhunk://#diff-06dd21a1c7a21a0959b7a22bb6a06f7fd84693be4ab00873b94d012eb0297f42L2-R20)
[[2]](diffhunk://#diff-06dd21a1c7a21a0959b7a22bb6a06f7fd84693be4ab00873b94d012eb0297f42L32-R56)
### Localization Updates:
* Added new localization strings for activity duration, heart frequency,
and time in both German and English localization files.
[[1]](diffhunk://#diff-36252c65ab82cbff4774b4983cb9027a2bef4cb738d5ea656c0b903939b3871aR14-R19)
[[2]](diffhunk://#diff-9796fde3771f42a3a759ccc941731d83f96037a661e47dde27ce81d3447a69c2R17-R21)
### Code and Dependency Updates:
* Imported necessary utility functions and updated dependencies in
various files to support new functionality.
[[1]](diffhunk://#diff-3e53fc5b1dfa9fdd52f251a640e34d6e0d9885b33745f4471df5785f1d0dabe0R13)
[[2]](diffhunk://#diff-7de7ecaa5049c970d5d1936f0651b260dc61f35c6a4d3b9850684be7e0f41602R7)
* Simplified cache invalidation logic in `HealthServiceImpl`.
These changes collectively enhance the application's ability to process
and display health data more accurately and comprehensively.
0 commit comments