From 2f92b0eb7b635a39cca072f2721f9fbb5cd4446b Mon Sep 17 00:00:00 2001 From: "Janus C. H. Knudsen" Date: Wed, 21 Jan 2026 21:49:10 +0100 Subject: [PATCH] Refactors reports page search and filtering functionality Moves search and filtering logic from inline script to a dedicated TypeScript module Improves code organization by creating a ReportsController with: - Enhanced search capabilities - Advanced range query parsing - Flexible filtering mechanisms Removes inline JavaScript and integrates modular approach in the application --- .../Features/Reports/Pages/Index.cshtml | 182 --------- PlanTempus.Application/wwwroot/ts/app.ts | 3 + .../wwwroot/ts/modules/reports.ts | 361 ++++++++++++++++++ 3 files changed, 364 insertions(+), 182 deletions(-) create mode 100644 PlanTempus.Application/wwwroot/ts/modules/reports.ts diff --git a/PlanTempus.Application/Features/Reports/Pages/Index.cshtml b/PlanTempus.Application/Features/Reports/Pages/Index.cshtml index 81776df..d51ba43 100644 --- a/PlanTempus.Application/Features/Reports/Pages/Index.cshtml +++ b/PlanTempus.Application/Features/Reports/Pages/Index.cshtml @@ -391,188 +391,6 @@ @section Scripts {