You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Combine lab results and medications into one page with two tabs, fix bug, revise ui tests (#35)
# *Combine lab results and medications into one page with two tabs, fix
bug, revise ui tests*
## ♻️ Current situation & Problem
Currently, lab results and medications are on separate pages. Since we
plan to add a dashboard and a connect page, we want to keep the total
number of main pages to five. Given the functional similarities between
lab results and medications, it makes sense to combine them into a
single page with tabs for better organization and navigation.
## ⚙️ Release Notes
1. New Records Page:
- Combined lab results and medications into a single page with two tabs.
- Users can switch between lab results and medications without
navigating to different pages.
2. UI Improvements:
- Replaced swipe-to-edit/delete actions for medications with direct
"Edit" and "Delete" buttons to avoid conflicts with tab gestures.
- Added icons and spacing to make the new buttons more intuitive and
clean.
3. Bug Fixes:
- Found and Fixed sorting issue in `LabResultsManager` to ensure records
are ordered chronologically.
4. Updated UI Tests:
- Refactored tests for lab results and medication views to reflect the
new tabbed interface.
- Added checks for the presence of the new buttons and verified the
tab-switching behavior.
<img width="385" alt="image"
src="https://github.com/user-attachments/assets/a77888a9-b0a5-4846-9b1c-883b2abd0eb7"
/>
## 📚 Documentation
*Please ensure that you properly document any additions in conformance
to [Spezi Documentation
Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).*
*You can use this section to describe your solution, but we encourage
contributors to document your reasoning and changes using in-line
documentation.*
## ✅ Testing
*Please ensure that the PR meets the testing requirements set by CodeCov
and that new functionality is appropriately tested.*
*This section describes important information about the tests and why
some elements might not be testable.*
## 📝 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).
0 commit comments