-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Introduce SpeziValidation #21
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
==========================================
+ Coverage 73.33% 77.29% +3.97%
==========================================
Files 21 34 +13
Lines 686 1061 +375
==========================================
+ Hits 503 820 +317
- Misses 183 241 +58
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Nice, great start here @Supereg 🚀 |
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 moving this over to this target and dramatically improving it!
Looks great and ready to be merge from my side. Feel free to tag a new release once the elements are merged.
# Add PersonalInfo and Validation to SPI documentation targets ## ♻️ Current situation & Problem #20 and #21 introduced additional documentation targets. This PR adds them to the spi.yml such that the Swift Package Index properly builds them. ## ⚙️ Release Notes * Configured new documentation targets to be exported to SPI. ## 📚 Documentation -- ## ✅ Testing -- ## 📝 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).
# Move to SpeziValidation package ## ♻️ Current situation & Problem Currently, SpeziAccount contains a lot of code that is not specific to account management. One part is input validation. StanfordSpezi/SpeziViews#21 introduces the new `SpeziValidation` library, based on previous code in SpeziAccount. This PR makes the efforts to move to that new software package and greatly simplify the `SpeziAccount` code base. ## ⚙️ Release Notes * Update to `SpeziValidation`, a new one-stop software package for input validation ## 📚 Documentation Documentation was addressed where needed. _TBA_: Some documentation still requires external links once the SpeziViews PR is merged. ## ✅ Testing Tests were adapted where needed. Nothing new was added. ## 📝 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).
Introduce SpeziValidation
♻️ Current situation & Problem
SpeziAccount currently implements a lot of logic around input validation that can easily separated into its own, self-contained target. This PR factors out those validation-based components and moves them into a new target in SpeziViews: SpeziValidation. This includes models to build
ValidationRule
s and views likeVerifiableTextField
that automatically perform validation on their input (given it's configured in the environment) and display potential validation errors.Would recommend to visit the nicely structured documentation for a great overview of the different components :)
⚙️ Release Notes
Breaking Changes
onTapFocus
modifiers were replaced by a new, simple to usefocusOnTap()
modifier that doesn't require passing in a FocusState anymore.📚 Documentation
Components coming from SpeziAccount were already documented in great detail. This PR created the respective string catalog and structured all new files within a new SPM target.
✅ Testing
Appropriate UI testing was added.
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: