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
This commit is contained in:
Janus C. H. Knudsen 2026-01-21 21:49:10 +01:00
parent 405dabeb34
commit 2f92b0eb7b
3 changed files with 364 additions and 182 deletions

View file

@ -15,6 +15,7 @@ import { ControlsController } from './modules/controls';
import { ServicesController } from './modules/services';
import { CustomersController } from './modules/customers';
import { TrackingController } from './modules/tracking';
import { ReportsController } from './modules/reports';
/**
* Main application class
@ -31,6 +32,7 @@ export class App {
readonly services: ServicesController;
readonly customers: CustomersController;
readonly tracking: TrackingController;
readonly reports: ReportsController;
constructor() {
// Initialize controllers
@ -45,6 +47,7 @@ export class App {
this.services = new ServicesController();
this.customers = new CustomersController();
this.tracking = new TrackingController();
this.reports = new ReportsController();
}
}