-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Switch Bios #55
Switch Bios #55
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.
@MatthewTurk247 Thank you for the first PR for this feature!
I would suggest the following: Instead of doing this in every View it might be good if we can separate this in a small Observable
class that is injected in the environment. We could even make it a Spezi Module. You can probably just use EnvironmentAccessible
.
This module can then cache that information (and pull it right on the first login, it could even get the user ID from Firebase directly without using Spezi Account) and then have that injected in the View hierarch to access it from every view were we might need to make these changes.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
==========================================
+ Coverage 54.97% 58.60% +3.63%
==========================================
Files 37 39 +2
Lines 1370 1379 +9
==========================================
+ Hits 753 808 +55
+ Misses 617 571 -46
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@PSchmiedmayer, do we need the additional code for Firebase, or will what I have already written suffice? Specifically, here is what we talked about earlier today:
So far, I used |
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.
@MatthewTurk247 Thank you for the improvements and moving this to the SwiftUI environment! I had some initial comments, let me know if you have any follow-up questions! 🚀
Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
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 further improvements @MatthewTurk247; I had a few follow-up comments and suggestions. Thank you for also working on the UI tests, will be great to see this in this PR 🚀
Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
For some reason, the automated UI test appears to be getting stuck loading on the screen for redeeming the invitation code. However, when I run the test locally, it works just fine. Still trying to figure out why. |
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.
Sounds good; let me know once you could identify the issue @MatthewTurk247.
In the meantime; here are a few smaller comments on the current state.
# Improve Automated Firebase Emulator Selection for Fastlane Builds ## ⚙️ Release Notes - Improve Automated Firebase Emulator Selection for Fastlane Builds - Fixes an issue where cloud functions were not properly executed as they required a fully configured Admin SDK including permissions of a service account (StanfordBDHG/PediatricAppleWatchStudy#55) ### Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
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.
@MatthewTurk247 The PR looks great; last steps would be to sync up about the changes with @aydinzahedi and Scott to ensure that we have correct information in there and to see in what other parts of the app we might need to change the UI to incorporate the adult study.
Would be important to ensure that all other text parts are applicable to both studies.
Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
Switch Bios
♻️ Current situation & Problem
Provides support for switching the list of contacts featured in the app, depending on whether the user is enrolled in the pediatric study or the adult study. Each patient is assigned an age group in Firebase when they sign up.
⚙️ Release Notes
account
environment variable) indicating whether the logged-in user is in the pediatric age group or the adult age group.📚 Documentation
See #52.
✅ Testing
Included in code changes.
Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: