StanfordSpezi / SpeziTemplateApplication

Template application demonstrating the usage of the Stanford Spezi framework.
https://stanfordspezi.github.io/SpeziTemplateApplication
MIT License
97 stars 19 forks source link

Upgrade to SpeziAccount 2.0 #83

Closed Supereg closed 2 weeks ago

Supereg commented 1 month ago

Upgrade to SpeziAccount 2.0

:recycle: Current situation & Problem

This PR upgrade the Spezi Template Application to the upcoming SpeziAccount release.

:gear: Release Notes

--

:books: Documentation

--

:white_check_mark: Testing

UI test times were slightly optimized, adding a new FeatureFlag to automatically set up a test account upon app start.

:pencil: Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 66.01942% with 35 lines in your changes missing coverage. Please review.

Project coverage is 81.44%. Comparing base (e662bd4) to head (7569770). Report is 1 commits behind head on main.

Files Patch % Lines
...eApplication/Firestore/FirebaseConfiguration.swift 56.37% 24 Missing :warning:
...plateApplication/TemplateApplicationStandard.swift 60.00% 8 Missing :warning:
TemplateApplication/Schedule/ScheduleView.swift 66.67% 1 Missing :warning:
...tion/Schedule/TemplateApplicationTaskContext.swift 0.00% 1 Missing :warning:
...plateApplication/TemplateApplicationDelegate.swift 94.45% 1 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83/graphs/tree.svg?width=650&height=150&src=pr&token=6EPKiz2l15&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi)](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) ```diff @@ Coverage Diff @@ ## main #83 +/- ## ========================================== - Coverage 83.84% 81.44% -2.39% ========================================== Files 23 24 +1 Lines 798 792 -6 ========================================== - Hits 669 645 -24 - Misses 129 147 +18 ``` | [Files](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | Coverage Δ | | |---|---|---| | [TemplateApplication/Account/AccountButton.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FAccount%2FAccountButton.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9BY2NvdW50L0FjY291bnRCdXR0b24uc3dpZnQ=) | `100.00% <100.00%> (ø)` | | | [...mplateApplication/Account/AccountSetupHeader.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FAccount%2FAccountSetupHeader.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9BY2NvdW50L0FjY291bnRTZXR1cEhlYWRlci5zd2lmdA==) | `100.00% <ø> (ø)` | | | [TemplateApplication/Account/AccountSheet.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FAccount%2FAccountSheet.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9BY2NvdW50L0FjY291bnRTaGVldC5zd2lmdA==) | `75.68% <100.00%> (-19.97%)` | :arrow_down: | | [TemplateApplication/Contacts/Contacts.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FContacts%2FContacts.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9Db250YWN0cy9Db250YWN0cy5zd2lmdA==) | `91.84% <100.00%> (ø)` | | | [TemplateApplication/Home.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FHome.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9Ib21lLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...lateApplication/Onboarding/AccountOnboarding.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FOnboarding%2FAccountOnboarding.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9PbmJvYXJkaW5nL0FjY291bnRPbmJvYXJkaW5nLnN3aWZ0) | `100.00% <ø> (+11.12%)` | :arrow_up: | | [...emplateApplication/Onboarding/OnboardingFlow.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FOnboarding%2FOnboardingFlow.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9PbmJvYXJkaW5nL09uYm9hcmRpbmdGbG93LnN3aWZ0) | `97.23% <100.00%> (ø)` | | | [...eApplication/TemplateApplicationTestingSetup.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FTemplateApplicationTestingSetup.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9UZW1wbGF0ZUFwcGxpY2F0aW9uVGVzdGluZ1NldHVwLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [TemplateApplication/Schedule/ScheduleView.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FSchedule%2FScheduleView.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9TY2hlZHVsZS9TY2hlZHVsZVZpZXcuc3dpZnQ=) | `83.79% <66.67%> (ø)` | | | [...tion/Schedule/TemplateApplicationTaskContext.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree&filepath=TemplateApplication%2FSchedule%2FTemplateApplicationTaskContext.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9TY2hlZHVsZS9UZW1wbGF0ZUFwcGxpY2F0aW9uVGFza0NvbnRleHQuc3dpZnQ=) | `43.75% <0.00%> (ø)` | | | ... and [3 more](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Last update [e662bd4...7569770](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/83?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi).