from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles

from app.modules.clients.ui import router as clients_ui_router, portal_router as client_portal_router
from app.modules.clients.scope_ui import router as client_scope_ui_router
from app.modules.client_groups.ui import router as client_groups_ui_router
from app.modules.consultants.ui import router as consultants_ui_router, portal_router as consultant_portal_router
from app.modules.employees.ui import router as employees_ui_router, portal_router as employee_portal_router
from app.modules.manager_dashboard.ui import router as manager_dashboard_router
from app.modules.managers.ui import router as managers_ui_router
from app.modules.partner_dashboard.ui import router as partner_dashboard_router
from app.modules.partners.ui import router as partners_ui_router
from app.modules.core.audit.ui import router as audit_ui_router
from app.modules.core.iam.ui import router as iam_ui_router
from app.modules.core.rbac.ui import router as rbac_ui_router
from app.modules.services.ui import router as services_ui_router
from app.modules.services.engagements_ui import router as engagements_ui_router
from app.modules.services.subscriptions_ui import router as service_subscriptions_ui_router
from app.modules.services.work_tracker_ui import router as work_tracker_ui_router
from app.modules.billing.ui import router as billing_ui_router
from app.modules.platform_billing.ui import router as platform_billing_ui_router
from app.modules.marketplace.ui import router as marketplace_ui_router, public_router as marketplace_public_router
from app.modules.documents.ui import router as documents_ui_router
from app.modules.alerts.ui import router as alerts_ui_router
from app.modules.work_detail.ui import router as work_detail_ui_router
from app.modules.system_settings.ui import router as system_settings_router
from app.modules.email_integration.ui import router as email_integration_router
from app.modules.domain_management.ui import router as domain_management_router
from app.modules.notice_cases.ui import router as notice_cases_router
from app.modules.wizards.ui import router as wizards_ui_router
from app.modules.system_admin_dashboard.ui import router as system_admin_dashboard_router
from app.ui.routes.auth import router as auth_router
from app.ui.routes.pwa import router as pwa_router
from app.modules.workspace_navigation.ui import router as workspace_navigation_router
from app.modules.firm_admin_dashboard.ui import router as firm_admin_dashboard_router
from app.modules.aqmm_dashboard.ui import router as aqmm_dashboard_router
from app.modules.peer_review_export.ui import router as peer_review_export_router
from app.modules.bank_statement_analyzer.ui import router as bank_statement_analyzer_router
from app.modules.registrations.ui import router as registrations_ui_router
from app.modules.credential_vault.ui import router as credential_vault_ui_router
from app.modules.client_identity.ui import router as client_identity_ui_router


def mount_ui(app: FastAPI) -> None:
    app.mount("/static", StaticFiles(directory="app/ui/static"), name="static")
    app.mount("/storage", StaticFiles(directory="/app/data/storage"), name="storage")
    app.include_router(marketplace_public_router)
    app.include_router(auth_router)
    app.include_router(pwa_router)
    app.include_router(firm_admin_dashboard_router)
    app.include_router(system_settings_router)
    app.include_router(email_integration_router)
    app.include_router(domain_management_router)
    app.include_router(iam_ui_router)
    app.include_router(rbac_ui_router)
    app.include_router(audit_ui_router)
    app.include_router(services_ui_router)
    app.include_router(aqmm_dashboard_router)
    app.include_router(peer_review_export_router)
    app.include_router(bank_statement_analyzer_router)
    app.include_router(work_tracker_ui_router)
    app.include_router(billing_ui_router)
    app.include_router(platform_billing_ui_router)
    app.include_router(marketplace_ui_router)
    app.include_router(documents_ui_router)
    app.include_router(alerts_ui_router)
    app.include_router(workspace_navigation_router)
    app.include_router(notice_cases_router)
    app.include_router(wizards_ui_router)
    app.include_router(system_admin_dashboard_router)
    app.include_router(work_detail_ui_router)
    app.include_router(clients_ui_router)
    app.include_router(client_scope_ui_router)
    app.include_router(client_groups_ui_router)
    app.include_router(registrations_ui_router)
    app.include_router(credential_vault_ui_router)
    app.include_router(client_identity_ui_router)
    app.include_router(employees_ui_router)
    app.include_router(manager_dashboard_router)
    app.include_router(managers_ui_router)
    app.include_router(partner_dashboard_router)
    app.include_router(partners_ui_router)
    app.include_router(employee_portal_router)
    app.include_router(consultants_ui_router)
    app.include_router(engagements_ui_router)
    app.include_router(service_subscriptions_ui_router)
    app.include_router(client_portal_router)
    app.include_router(consultant_portal_router)





