generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine Assessment Charts and Fix Bugs (#43)
# *Refine Assessment Charts and Fix Bugs* ## ♻️ Current situation & Problem Previously, we set up the assessment tab with trail-making and stroop tests. This PR refines the assessment tab by (1) fixing the error that stroop test fails to start, and (2) refine the chart visualizations. ## ⚙️ Release Notes - Fix the error that the app will crash when attempting to start the stroop test with `NSInvalidArgumentException`. The error was possibly due to that the delegate no longer has a window property by default in the newer version. Currently, we walk around this error by manually adding the window property back, but might be better to check with the Spezi team about whether this could be fixed by either updating the forked ResearchKit version in [StanfordBDHG](https://github.com/StanfordBDHG) or fixing it there. - Plot the line chart of the assessment results. - Enable highlighting the selected result line mark, and click again to de-select. Similar to the HealthKit visualizations, the charts are coded with reference to the [Swift-Charts-Examples repo](https://github.com/jordibruin/Swift-Charts-Examples/blob/main/Swift%20Charts%20Examples/Charts/LineCharts/SingleLineLollipop.swift) - Show the result details (time spent and error count/score) when selected. If no mark is selected, show the details of the last result if available. - Style the buttons that start assessments to restrict clickable areas to not start tests on clicking the chars. <p align="left"> <img src="https://github.com/CS342/2024-PICS/assets/32094663/803a9b59-434c-4fef-aab5-6b7063f004c9" width="300"> <img src="https://github.com/CS342/2024-PICS/assets/32094663/fba34759-d365-4ef6-9cdc-d12d7e5b57ba" width="300"> <img src="https://github.com/CS342/2024-PICS/assets/32094663/299cb976-3e70-4143-bb76-dffa87c1874d" width="300"> </p> ## 📚 Documentation Related comments are added to the codes. ## ✅ Testing Manually tested in simulator. ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
- Loading branch information
Showing
7 changed files
with
352 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.