mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-18 04:08:48 -05:00
0a4a1535c1
Architecture and maintainability improvements per production-readiness plan: - API v1: Split monolithic api_v1.py into per-resource blueprints (api_v1_projects, api_v1_tasks, api_v1_clients, api_v1_invoices, api_v1_expenses, api_v1_payments, api_v1_mileage, api_v1_deals, api_v1_leads, api_v1_contacts). Register all in blueprint_registry; keep info, health, auth and remaining routes in api_v1.py. - Bootstrap: Move setup_logging to app/utils/setup_logging.py and legacy migrations (task management, issues tables) to app/utils/legacy_migrations.py. Use SQLAlchemy 2-compatible db.engine.begin() in legacy_migrations. - Dashboard: Add AnalyticsService.get_dashboard_top_projects and get_time_by_project_chart; thin main dashboard route to call services only and remove inline TimeEntry aggregation. - Docs: Update ARCHITECTURE.md (module table, API structure, data flow, design decisions), DEVELOPMENT.md (workflow, build steps, test examples), CHANGELOG.md (Unreleased refactor entry).