From 713c3b6cf9d056d3eef10077f56a11ad24122f0c Mon Sep 17 00:00:00 2001 From: Joel Thomas Date: Wed, 20 May 2026 16:24:34 +0530 Subject: [PATCH] Implement View Technician Notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NOT003: View Technician Notifications 1. Added MenuHelper.h to the project for shared notification viewing helper support. 2. Updated TechnicianMenu.cpp to include MenuHelper.h and route viewNotifications() through the shared notification handler. Precondition: 1. Technician user exists and is logged into the system. 2. Technician has one or more notifications available. 3. “View Notifications” option is visible in the Technician menu. Steps: 1. Navigate to Technician Menu. 2. Select “View Notifications”. 3. Verify that the system displays a list of notifications showing title, message, and timestamp. 4. Select a notification to view full details. - Verify that the selected notification is displayed and deleted after viewing. 5. Return to the notification list or reopen “View Notifications”. - Verify that the previously viewed notification is no longer present. Sreeja Reghukumar, please review --- .../Trenser.VehicleServiceSystem.vcxproj | 1 + .../Trenser.VehicleServiceSystem/views/MenuHelper.h | 6 ++++++ .../Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem.vcxproj b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem.vcxproj index a65c46d..aaca946 100644 --- a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem.vcxproj +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem.vcxproj @@ -180,6 +180,7 @@ + diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h new file mode 100644 index 0000000..74025b7 --- /dev/null +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h @@ -0,0 +1,6 @@ +#pragma once +#include "Controller.h" + +inline void viewAndDeleteNotification(Controller& controller) +{ +} diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp index d6c4d57..24bf28f 100644 --- a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp @@ -1,6 +1,7 @@ #include "TechnicianMenu.h" #include "InputHelper.h" #include "OutputHelper.h" +#include "MenuHelper.h" void TechnicianMenu::showMenu() { @@ -37,4 +38,5 @@ void TechnicianMenu::completeJob() void TechnicianMenu::viewNotifications() { + viewAndDeleteNotification(m_controller); }