From 79fbd73e8f4c344836506d5ed18f4df9b6ef9190 Mon Sep 17 00:00:00 2001 From: jbcarras Date: Wed, 11 Mar 2026 12:22:55 -0400 Subject: [PATCH 1/2] Fix active visits route and some frontend reorganization --- api/queue/routes.py | 1 + client/src/components/EnrollmentEntry.vue | 46 ------------------- client/src/components/ManageTable.vue | 56 +++++++++++++++++++++++ client/src/components/TableEntry.vue | 31 +++++++++++++ client/src/pages/ManageCourse.vue | 49 ++------------------ 5 files changed, 92 insertions(+), 91 deletions(-) delete mode 100644 client/src/components/EnrollmentEntry.vue create mode 100644 client/src/components/ManageTable.vue create mode 100644 client/src/components/TableEntry.vue diff --git a/api/queue/routes.py b/api/queue/routes.py index 0061930..ffb33f2 100644 --- a/api/queue/routes.py +++ b/api/queue/routes.py @@ -176,6 +176,7 @@ def get_active_visits(): "ta_id": visit["ta_id"], "ta_name": ta_name }) + return visits @blueprint.route("/visits/", methods=["GET"]) @min_level('instructor') diff --git a/client/src/components/EnrollmentEntry.vue b/client/src/components/EnrollmentEntry.vue deleted file mode 100644 index 19d64ba..0000000 --- a/client/src/components/EnrollmentEntry.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - \ No newline at end of file diff --git a/client/src/components/ManageTable.vue b/client/src/components/ManageTable.vue new file mode 100644 index 0000000..ebb9c72 --- /dev/null +++ b/client/src/components/ManageTable.vue @@ -0,0 +1,56 @@ + + + + + \ No newline at end of file diff --git a/client/src/components/TableEntry.vue b/client/src/components/TableEntry.vue new file mode 100644 index 0000000..647fd07 --- /dev/null +++ b/client/src/components/TableEntry.vue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/client/src/pages/ManageCourse.vue b/client/src/pages/ManageCourse.vue index a15bf81..f96589e 100644 --- a/client/src/pages/ManageCourse.vue +++ b/client/src/pages/ManageCourse.vue @@ -2,9 +2,10 @@ import {useRouter} from "vue-router"; import {ref} from "vue"; -import EnrollmentEntry from "@/components/EnrollmentEntry.vue"; +import TableEntry from "@/components/TableEntry.vue"; import ConfirmationDialog from "@/components/ConfirmationDialog.vue"; import Alert from "@/components/Alert.vue"; +import ManageTable from "@/components/ManageTable.vue"; const router = useRouter() @@ -181,54 +182,15 @@ const resetAuth = () => { -
- - - - - - - - - - - - - - - -
UsernamePerson NumberPreferred NameLast NameRoleUser IDActions
-
- - + + \ No newline at end of file From 057e357bee325fc549872c0579d9687d1a42a1c3 Mon Sep 17 00:00:00 2001 From: jbcarras Date: Wed, 18 Mar 2026 20:23:35 -0400 Subject: [PATCH 2/2] Show active visits in frontend and reorganization --- client/src/components/{ => common}/Alert.vue | 0 .../{ => common}/ConfirmationDialog.vue | 0 .../src/components/{ => common}/EditInfo.vue | 2 +- client/src/components/{ => common}/Header.vue | 0 .../src/components/instructor/ActiveEntry.vue | 27 +++++++ .../{ => instructor}/OnSiteEntry.vue | 2 +- .../{ => instructor}/QueueControlEntry.vue | 0 .../{ => instructor}/QueueEntry.vue | 2 +- .../src/components/{ => instructor}/Visit.vue | 2 +- client/src/layouts/AppLayout.vue | 2 +- client/src/pages/InstructorQueue.vue | 73 ++++++++++++++++--- client/src/pages/ManageCourse.vue | 4 +- client/src/pages/StudentQueue.vue | 6 +- client/src/pages/Swipe.vue | 2 +- 14 files changed, 101 insertions(+), 21 deletions(-) rename client/src/components/{ => common}/Alert.vue (100%) rename client/src/components/{ => common}/ConfirmationDialog.vue (100%) rename client/src/components/{ => common}/EditInfo.vue (95%) rename client/src/components/{ => common}/Header.vue (100%) create mode 100644 client/src/components/instructor/ActiveEntry.vue rename client/src/components/{ => instructor}/OnSiteEntry.vue (89%) rename client/src/components/{ => instructor}/QueueControlEntry.vue (100%) rename client/src/components/{ => instructor}/QueueEntry.vue (90%) rename client/src/components/{ => instructor}/Visit.vue (98%) diff --git a/client/src/components/Alert.vue b/client/src/components/common/Alert.vue similarity index 100% rename from client/src/components/Alert.vue rename to client/src/components/common/Alert.vue diff --git a/client/src/components/ConfirmationDialog.vue b/client/src/components/common/ConfirmationDialog.vue similarity index 100% rename from client/src/components/ConfirmationDialog.vue rename to client/src/components/common/ConfirmationDialog.vue diff --git a/client/src/components/EditInfo.vue b/client/src/components/common/EditInfo.vue similarity index 95% rename from client/src/components/EditInfo.vue rename to client/src/components/common/EditInfo.vue index 316d9f1..dc0c573 100644 --- a/client/src/components/EditInfo.vue +++ b/client/src/components/common/EditInfo.vue @@ -1,6 +1,6 @@ + + + + \ No newline at end of file diff --git a/client/src/components/OnSiteEntry.vue b/client/src/components/instructor/OnSiteEntry.vue similarity index 89% rename from client/src/components/OnSiteEntry.vue rename to client/src/components/instructor/OnSiteEntry.vue index 77ffc14..2acdde4 100644 --- a/client/src/components/OnSiteEntry.vue +++ b/client/src/components/instructor/OnSiteEntry.vue @@ -1,6 +1,6 @@ diff --git a/client/src/pages/InstructorQueue.vue b/client/src/pages/InstructorQueue.vue index 5a71b7a..4b8d723 100644 --- a/client/src/pages/InstructorQueue.vue +++ b/client/src/pages/InstructorQueue.vue @@ -1,16 +1,18 @@