trustedshops-public / etrusted-ios-trustbadge-library

Show TrustBadge on your iOS app
MIT License
2 stars 2 forks source link

Feature/trustcard UI design #46

Closed prempratapsingh closed 1 year ago

prempratapsingh commented 1 year ago

Relates: MAD-202

Description

Implemented UI/UX design, data object and navigational flow for these Trustcard states,

  1. Classic protection
  2. Protection confirmation

These changes shouldn't be merged with the develop/main branch as so far only the frontend UI/UX and navigation flows have been implemented. Backend services and business logic are yet to be integrated as those are still under discussion.

codecov[bot] commented 1 year ago

Codecov Report

Attention: 71 lines in your changes are missing coverage. Please review.

Comparison is base (027402f) 87.09% compared to head (5286462) 88.42%. Report is 2 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #46 +/- ## =========================================== + Coverage 87.09% 88.42% +1.32% =========================================== Files 64 78 +14 Lines 2983 3515 +532 Branches 1085 1294 +209 =========================================== + Hits 2598 3108 +510 + Misses 144 114 -30 - Partials 241 293 +52 ``` | [Files](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public) | Coverage Δ | | |---|---|---| | [Sources/Trustylib/Models/CurrencyCode.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvTW9kZWxzL0N1cnJlbmN5Q29kZS5zd2lmdA==) | `83.33% <ø> (ø)` | | | [Sources/Trustylib/Models/OrderDetailsModel.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvTW9kZWxzL09yZGVyRGV0YWlsc01vZGVsLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [Sources/Trustylib/Models/TrustcardState.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvTW9kZWxzL1RydXN0Y2FyZFN0YXRlLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...stylib/Utilities/TrustbadeColorSchemeManager.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvVXRpbGl0aWVzL1RydXN0YmFkZUNvbG9yU2NoZW1lTWFuYWdlci5zd2lmdA==) | `93.47% <100.00%> (+2.04%)` | :arrow_up: | | [...ces/Trustylib/ViewModels/TrustbadgeViewModel.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvVmlld01vZGVscy9UcnVzdGJhZGdlVmlld01vZGVsLnN3aWZ0) | `89.65% <100.00%> (+0.83%)` | :arrow_up: | | [.../Trustylib/Views/Extensions/Color + TsColors.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvVmlld3MvRXh0ZW5zaW9ucy9Db2xvciArIFRzQ29sb3JzLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...ources/Trustylib/Views/TrustbadgeColorScheme.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvVmlld3MvVHJ1c3RiYWRnZUNvbG9yU2NoZW1lLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...ources/Trustylib/Views/TrustbadgeViewWrapper.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvVmlld3MvVHJ1c3RiYWRnZVZpZXdXcmFwcGVyLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...b/Views/Trustcard/ProtectionConfirmationView.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvVmlld3MvVHJ1c3RjYXJkL1Byb3RlY3Rpb25Db25maXJtYXRpb25WaWV3LnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...rustylib/Views/Trustcard/ProtectionTermsView.swift](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public#diff-U291cmNlcy9UcnVzdHlsaWIvVmlld3MvVHJ1c3RjYXJkL1Byb3RlY3Rpb25UZXJtc1ZpZXcuc3dpZnQ=) | `100.00% <100.00%> (ø)` | | | ... and [19 more](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/trustedshops-public/etrusted-ios-trustbadge-library/pull/46/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=trustedshops-public)

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

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 11 Code Smells

96.7% 96.7% Coverage
0.0% 0.0% Duplication