from django.urls import path
from django.views.generic import RedirectView
from . import views

app_name = "executive"

urlpatterns = [
    path("", views.ExecutiveDashboardView.as_view(), name="executive_dashboard"),
    path("api/", views.executive_dashboard_api, name="executive_api"),
    path("api/analyze/overview/", views.analyze_overview, name="analyze_overview"),
    path("api/analyze/trends/", views.analyze_trends, name="analyze_trends"),
    path("api/analyze/insights/", views.analyze_insights, name="analyze_insights"),
    path("insights/", views.PredictiveInsightsView.as_view(), name="predictive_insights"),
    path(
        "insights/<uuid:insight_id>/acknowledge/",
        views.acknowledge_insight,
        name="acknowledge_insight",
    ),
    path(
        "qa/",
        RedirectView.as_view(url="/executive/", permanent=False),
        name="executive_qa",
    ),
    path("reports/generate/", views.generate_executive_report, name="generate_report"),
    path(
        "reports/<uuid:report_id>/pdf/",
        views.ExecutivePDFReportView.as_view(),
        name="report_pdf",
    ),
]
