-
Notifications
You must be signed in to change notification settings - Fork 15
Rework Survey and Introduce Task Instructions #97
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
Conversation
# Update `SpeziAccessGuard` ## ♻️ Current situation & Problem The problem with the previous approach was that the EnterCodeView was added as an overlay of the guarded view, which means that when the EnterCodeView is shown, all the work happening onAppear of the guarded view will be executed even though the view is not visible. ## ⚙️ Release Notes StanfordSpezi/SpeziAccessGuard#29 StanfordSpezi/SpeziAccessGuard#30 ### Code of Conduct & Contributing Guidelines By creating and submitting 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). 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.
Looks great; only had a few comments.
In the future we should consider using the new ResearchKit SwiftUI views for the work here; their current state is not yet fully tested and defined but it could simply this process in the future.
LLMonFHIR/FHIRInterpretation/MultipleResources/MultipleResourcesChatView.swift
Outdated
Show resolved
Hide resolved
LLMonFHIR/FHIRInterpretation/UserStudy/Survey/Views/TaskInstructionView.swift
Show resolved
Hide resolved
Thanks for the feedback @PSchmiedmayer. What complexities do you see right now that these ResearchKit views could help simplify? |
RK could help us to cover some of the UI components we manually implemented for the questions here and the way how we parse information form them. I think it might make sense to look into this, especially their SwiftUI views as they start to make them more stable and extend them. But that is a follow-up PR and even an element that we are trying to work on in ResearchKitOnFHIR and did not yet have the time to do so + the SwiftUI implementation of RK is missing some elements that we reported in the past and they are working on. |
Rework Survey and Introduce Task Instructions
♻️ Current situation & Problem
In the previous approach, most of the code was added in the two different files making it a bit overwhelming to navigate and understand the code.
⚙️ Release Notes
LimitedCollection
(a collection that holds a set number of items and gives an error when full) andLimitedCollectionDictionary
(a dictionary where each key links to a collection with a set limit), which handle the work for the feature above.Code of Conduct & Contributing Guidelines
By creating and submitting this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: