Refactor the UI code to move reusable components into a dedicated Flask Blueprint. This will improve code reuse, separation of concerns, and route organization.
Tasks
- Identify common UI components and views
- Move each to a new UI blueprint
- Register the blueprint with the Flask app
- Update imports and route references