From 427c52a49935e45643533580059d2327ed7f585c Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Wed, 10 Jun 2026 14:39:35 -0400 Subject: [PATCH] Fix Ready for Pickup filter returning no results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Ready pill passed searchTerm=ReadyForPickup which did a text search — "readyforpickup" (no spaces) never matched the display name "Ready for Pickup". Converted to statusGroup=ready and added the corresponding controller case. Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Web/Controllers/JobsController.cs | 4 ++++ src/PowderCoating.Web/Views/Jobs/Index.cshtml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PowderCoating.Web/Controllers/JobsController.cs b/src/PowderCoating.Web/Controllers/JobsController.cs index 9b4b306..cf06f22 100644 --- a/src/PowderCoating.Web/Controllers/JobsController.cs +++ b/src/PowderCoating.Web/Controllers/JobsController.cs @@ -152,6 +152,10 @@ public class JobsController : Controller || j.JobStatus.StatusCode == AppConstants.StatusCodes.Job.ReadyForPickup || j.JobStatus.StatusCode == AppConstants.StatusCodes.Job.Delivered; } + else if (statusGroup == "ready") + { + filter = j => j.JobStatus.StatusCode == AppConstants.StatusCodes.Job.ReadyForPickup; + } // "all" or unknown group: no filter applied (show every status) } else if (!string.IsNullOrWhiteSpace(searchTerm)) diff --git a/src/PowderCoating.Web/Views/Jobs/Index.cshtml b/src/PowderCoating.Web/Views/Jobs/Index.cshtml index 1074efd..590adcd 100644 --- a/src/PowderCoating.Web/Views/Jobs/Index.cshtml +++ b/src/PowderCoating.Web/Views/Jobs/Index.cshtml @@ -147,7 +147,7 @@ Overdue @_overdue - + Ready @_ready