Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(VIST-CPC-913): sorting visits into status tables (#536)
JIRA: link to jira ticket https://champlainsaintlambert.atlassian.net/browse/CPC-913 ## Context: This ticket is regarding making updates to the Visit-List UI. Our team thought it would be an interesting idea to separate visits into more than just a single table and, to compliment our recent implementations of status-button functionalities, we thought it would be best for these tables to be based on visit status. We now have a total of four tables: Upcoming Visits, Confirmed Visits, Cancelled Visits and Completed Visits. ## Changes - Tweaks to the controller.js file were made to push visitData to the appropriate status table - Three new status tables were added to the html template (aside from our original upcoming visits table that was previously implemented) - Styling modifications were made to make the UI maintain consistency and be more visually appealing ## Before and After UI (Required for UI-impacting PRs) Before changes: <img width="1792" alt="273456000-c9c47dd1-d8da-44cc-b0ca-7e873fdfa0ad" src="https://github.com/cgerard321/champlain_petclinic/assets/77695020/41ebfc68-ad65-4af9-99a4-4a7643ea6db2"> After Changes: ![After_Changes](https://github.com/cgerard321/champlain_petclinic/assets/77695020/cdf1b26c-4eb8-4fa5-8c28-e8a08aead452) After all visits are removed from a particular table: ![After_Removing_All_Visits_From_A_Table](https://github.com/cgerard321/champlain_petclinic/assets/77695020/8865ad02-fc19-4ef8-a1f3-30be80a0fb4f) ## Dev notes (Optional) - A table that has no visits in it will be hidden until a new one is eventually added to it. This is possible through the use of ' ng-show="$ctrl.table.length > 0 '
- Loading branch information