From ce50467816405ecd3628a3426dc653436bbfe215 Mon Sep 17 00:00:00 2001 From: Jissin Mathew Date: Mon, 1 Jun 2026 18:00:27 +0530 Subject: [PATCH] Fix Technician Job Status Update Screen UI and Formatting Issues - Corrected inconsistent status label formatting: replaced "Inprogress" with "In Progress" in TechnicianMenu and MenuHelper. - Updated headings in selectJobCardToUpdate to clearer phrasing: - "Select a job to mark as In Progress" - "Select a job to mark as Completed". - Added spacing before and after the "No jobs available" message to improve readability and provide clear separation from headings. - Replaced duplicated prompt "Select the Job Card to Update (Index):" with concise "Enter the job index to update:". - Improved TechnicianMenu option display to show "In Progress" instead of "Inprogress". Fixes #1808 --- .../Trenser.VehicleServiceSystem/views/MenuHelper.h | 8 ++++---- .../Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h index 372b003..83720c0 100644 --- a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/MenuHelper.h @@ -736,7 +736,7 @@ inline std::string selectJobCardToUpdate(util::Map& util::Map incompleteJobCards; if (assignedJobCards.getSize() == 0) { - std::cout << "No jobs available.\n\n"; + std::cout << "\nNo jobs available.\n\n"; return ""; } int currentIndex = 1; @@ -744,12 +744,12 @@ inline std::string selectJobCardToUpdate(util::Map& if (selectedJobStatusType == util::ServiceJobStatus::STARTED) { util::clear(); - std::cout << "Select a job to update to Inprogress\n"; + std::cout << "Select a job to mark as In Progress\n"; } else if (selectedJobStatusType == util::ServiceJobStatus::IN_PROGRESS) { util::clear(); - std::cout << "Select a job to update to Completed\n"; + std::cout << "Select a job to mark as Completed\n"; } else { @@ -780,7 +780,7 @@ inline std::string selectJobCardToUpdate(util::Map& incompleteJobCards.insert(currentIndex++, currentJobCard); } } - std::cout << "Select the Job Card to Update (Index): "; + std::cout << "Enter the job index to update: "; util::read(choice); int selectedJobCardIndex = incompleteJobCards.find(choice); if (selectedJobCardIndex != -1) diff --git a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp index 5d125cc..8ff3e12 100644 --- a/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp +++ b/Trenser.VehicleServiceSystem/Trenser.VehicleServiceSystem/views/TechnicianMenu.cpp @@ -121,7 +121,7 @@ void TechnicianMenu::updateJobStatus() std::string selectedJobID; util::ServiceJobStatus selectedJobStatus = util::ServiceJobStatus::PENDING; util::Map assignedJobCards = m_controller.getJobCardsByUser(); - std::cout << "Select the type of job you want to update\n1.Started\n2.Inprogress\nChoice: "; + std::cout << "Select the type of job you want to update:\n1.Started\n2.In Progress\nChoice: "; util::read(choice); if (choice == 1) {