-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
HealthSummaryAction and MedicationsAction #86
Conversation
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
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 working on this @Basler182; let me know if you run into any issues with the feature.
@nriedman did a great job with this on iOS to show it in the Account Settings and as a sheet in the main view when pressing on the message. You can inspect the same behavior in the latest TestFlight release on iOS using the example patient credentials.
The only difference at the moment is that we are utilising practical Android functionality here. We have the option of simply displaying the PDF in the Android PDF Viewer. As soon as you click back, you are still in the app. In addition, you get on top for free, the whole Google functionality, Save to Drive, Download, Print, Share, etc. and in addition the full PDF functionality, such as marking, editing, copying. If you try to view it directly in the app without a dedicated viewer, it appears to simply display the PDF as a bitmap and all the advantages are gone. The account settings don't exist in Android yet, but I think I can add them in this PR. |
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
@Basler182 Thank you for the context; that makes sense. Looks like this is the intended behavior on Android. Nice to see all that included functionally! Regarding the account settings: I would suggest to keep the PRs small and targeted, we can add this in a separate PR and then include the PDF export in there. |
In the meantime, I have already added a basic version of the ‘Account Settings’. We can then customise this later and extend the functionality. |
Sounds good 👍 |
app/src/main/kotlin/edu/stanford/bdh/engagehf/messages/HealthSummaryRepository.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/messages/HealthSummaryService.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/bluetooth/BluetoothViewModel.kt
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/bluetooth/BluetoothViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/messages/HealthSummaryService.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/navigation/components/AccountTopAppBarButton.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/navigation/screens/AppScreenViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/navigation/screens/AppScreenViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/edu/stanford/bdh/engagehf/navigation/screens/AppScreenViewModel.kt
Outdated
Show resolved
Hide resolved
modules/account/src/main/kotlin/edu/stanford/spezi/module/account/manager/UserSessionManager.kt
Show resolved
Hide resolved
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
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 working on the comments. Besides of missing tests, the rest looks great to me and approving already 🚀
app/src/main/kotlin/edu/stanford/bdh/engagehf/navigation/screens/AppScreenViewModel.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
Signed-off-by: Basler182 <showdialog@web.de>
# Conflicts: # app/src/main/kotlin/edu/stanford/bdh/engagehf/bluetooth/BluetoothViewModel.kt # app/src/main/kotlin/edu/stanford/bdh/engagehf/health/weight/WeightViewModel.kt # app/src/main/kotlin/edu/stanford/bdh/engagehf/health/weight/bottomsheet/AddWeightBottomSheetViewModel.kt # app/src/main/kotlin/edu/stanford/bdh/engagehf/navigation/screens/AppScreen.kt # app/src/main/kotlin/edu/stanford/bdh/engagehf/navigation/screens/AppScreenViewModel.kt # app/src/main/res/values-de/strings.xml # app/src/main/res/values/strings.xml # app/src/test/kotlin/edu/stanford/bdh/engagehf/bluetooth/BluetoothViewModelTest.kt # app/src/test/kotlin/edu/stanford/bdh/engagehf/health/HealthViewModelTest.kt # app/src/test/kotlin/edu/stanford/bdh/engagehf/health/weight/bottomsheet/AddWeightBottomSheetViewModelTest.kt
message actions
♻️ Current situation & Problem
Currently not all expected messages are being handled
⚙️ Release Notes
QuestionnaireAction is provided via the following branch (https://github.com/StanfordSpezi/SpeziKt/tree/feature/questionnaire) afterwards.
✅ Testing
the required tests are added after the first review
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: