ryanw-mobile / OctoMeter

🔥Kotlin Multiplatform Desktop/Android/iOS Energy Tracker app
Other
78 stars 7 forks source link

(#213) Account screen: show past tariffs #229

Closed ryanw-mobile closed 2 weeks ago

ryanw-mobile commented 2 weeks ago

Updated the Account screen:

Combined TariffSummary and TariffDetails domain model

Simplified Repository interfaces to ask for only tariffCode without productCode

codacy-production[bot] commented 2 weeks ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: -0.03% (target: -1.00%) :white_check_mark: 33.33%
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (d17f711503f0ccc6cf68091282038e4f5eb5af78) | 1825 | 974 | 53.37% | | | Head commit (9f6f150e0dc6dda2a2dbbce97cdf2e1cc8ea1f96) | 1826 (+1) | 974 (+0) | 53.34% (**-0.03%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#229) | 57 | 19 | **33.33%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences


:rocket: Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 25.45455% with 41 lines in your changes missing coverage. Please review.

Project coverage is 48.99%. Comparing base (d17f711) to head (9f6f150).

Files Patch % Lines
...bi/kunigami/data/repository/mapper/TariffMapper.kt 0.00% 11 Missing :warning:
...nigami/data/repository/OctopusRestApiRepository.kt 0.00% 7 Missing :warning:
...om/rwmobi/kunigami/ui/viewmodels/AgileViewModel.kt 0.00% 7 Missing :warning:
...om/rwmobi/kunigami/ui/viewmodels/UsageViewModel.kt 0.00% 6 Missing :warning:
...i/kunigami/data/repository/mapper/ProductMapper.kt 0.00% 4 Missing :warning:
.../kunigami/domain/usecase/SyncUserProfileUseCase.kt 71.42% 0 Missing and 2 partials :warning:
...om/rwmobi/kunigami/domain/model/account/Account.kt 66.66% 0 Missing and 1 partial :warning:
...bi/kunigami/domain/model/product/ProductDetails.kt 0.00% 1 Missing :warning:
...ami/domain/usecase/GenerateUsageInsightsUseCase.kt 83.33% 0 Missing and 1 partial :warning:
.../rwmobi/kunigami/ui/viewmodels/AccountViewModel.kt 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #229 +/- ## ========================================== - Coverage 49.14% 48.99% -0.16% ========================================== Files 98 95 -3 Lines 1636 1541 -95 Branches 237 222 -15 ========================================== - Hits 804 755 -49 + Misses 754 713 -41 + Partials 78 73 -5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.