Finalize/surgery_home #68
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Finalize SurgeryView UI and refactor HomeView
♻️ Current situation & Problem
The SurgeryView previously did not have room for the "chat" button in the toolbar to bring up the LLM chat assistant. Also, the HomeView code was extremely messy and used disable swiftlint commands to avoid warnings.
⚙️ Release Notes
Got rid of the "edit" button in SurgeryView. Added a "delete" button to the InspectSurgeryView (it is not shown when adding a new surgery). Now, if a user wants to delete a surgery, they can either swipe left on the surgery in SurgeryView or click on it to edit and select the "delete" button. SurgeryView now has a "chat" button in the toolbar to activate the LLM assistant.
📚 Documentation
This is what the new views look like:



✅ Testing
This code will be thoroughly tested along with the rest of the codebase.
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: