The Tasks.tsx file under frontend/src/components/HomeComponents/Tasks/ has grown to over 2000 lines and has become difficult to manage and maintain. Refactor the codebase to split this file into smaller, focused components and utility files. Be sure to:
- Identify logical segments (UI components like Dialog Boxes, hooks, utilities, state management, etc.) that can be extracted.
- Incrementally refactor and extract each segment into its own file or module.
- After each extraction, thoroughly test to ensure nothing is broken.
- For each breaking or significant structural change, create a separate, small pull request to ease review and avoid introducing regressions.
- Continue until Tasks.tsx is reduced to a manageable size and follows organized directory/file structure.
A 2000+ line single file should not exist for maintainability. Prioritize clarity, readability, and atomic PRs throughout the process.