-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow AccountSetup to be created with async function to handle completeness of the account setup #73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great work 🚀
I think the PR is generally in a good shape. Just had a few comments and ideas that discusses some of the detailed design of this PR.
318ed30
to
71b8a89
Compare
I reverted the changes that are needed in ENGAGE-HF and will open a different PR instead, since this might still be a nice addition, but actually isn't needed urgently anymore. Feel free to keep this open / ask for adaptions though! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the work here @pauljohanneskraft! I had a comment about the API surface were we could improve the naming; apart from this the change looks good and once @Supereg's comment are addressed we can merge this as a nicer generalization of this feature.
Sources/SpeziAccount/ViewModifier/AccountRequiredModifier.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates @pauljohanneskraft!
@Supereg feel free to provide a last review and merge the PR before we tag a next major version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, sorry for the delay here. The PR is in a very good shape. Great work 🚀 I only had some smaller comments.
# Add `AccountKeyRequirement.manual` ## ♻️ Current situation & Problem There is currently no way to add AccountKeys that shouldn't be shown to the user. Since this might still be reasonable though (e.g. to check a status of the user like enrollment in a study), we introduce `AccountKeyRequirement.manual`. ## ⚙️ Release Notes - Add `AccountKeyRequirement.manual` to allow account keys that are not automatically shown to the user, either used entirely internally or exposed by custom UI elements. ## 📚 Documentation *Please ensure that you properly document any additions in conformance to [Spezi Documentation Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).* *You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.* ## ✅ Testing *Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.* *This section describes important information about the tests and why some elements might not be testable.* ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md). --------- Co-authored-by: Andreas Bauer <[email protected]>
76ceb51
to
fb27fe9
Compare
To save you some context switches and time, I went forward and quickly incorporated the changes I had in my comments and rebased onto the latest changes from |
Amazing; thank you @Supereg! Feel free to merge the PR if it looks good to you @pauljohanneskraft 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me in general, just two minor comments that may be irrelevant - let me know what you think 😊 otherwise I'd be happy to merge, especially that new @Entry
API looks really nice 🎉
Allow AccountSetup to be created with async throwing function to handle completeness of the account setup
♻️ Current situation & Problem
When an account setup is successful, one may want to run additional code that is async and throwing to finish the account setup completely.
Specifically in ENGAGE-HF, we need to call a Firebase function when a new account has been created before the account can actually be used.
⚙️ Release Notes
setupComplete
parameter inAccountSetup
to be async-throwing.📚 Documentation
Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.
You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.
✅ Testing
Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.
This section describes important information about the tests and why some elements might not be testable.
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: