2149b4cad5
Break down the monolithic BackgroundTasks component into smaller, highly cohesive modules to improve maintainability and readability. - Extract complex UI components into dedicated files (`BackgroundTaskSummary`, `ExpandedTaskPanel`, `TaskStagePill`, `TaskProgressBar`, `BackgroundTaskActions`, and `FailedWorkerItemRow`). - Move task construction, duplicate scan formatting, and progress calculation logic into a dedicated `taskModel.ts` utility file. - Relocate shared interfaces and constants to `types.ts` to cleanly decouple data structures from the presentation layer.