HH/apps/dashboard/urls.py
2026-03-28 14:03:56 +03:00

48 lines
2.0 KiB
Python

"""
Dashboard URLs
"""
from django.urls import path
from .views import (
CommandCenterView,
my_dashboard,
dashboard_bulk_action,
admin_evaluation,
admin_evaluation_chart_data,
staff_performance_detail,
staff_performance_trends,
department_benchmarks,
export_staff_performance,
performance_analytics_api,
command_center_api,
employee_evaluation,
employee_evaluation_data,
complaint_request_list,
complaint_request_export,
)
app_name = "dashboard"
urlpatterns = [
path("", CommandCenterView.as_view(), name="command-center"),
path("api/", command_center_api, name="command_center_api"),
path("my/", my_dashboard, name="my_dashboard"),
path("bulk-action/", dashboard_bulk_action, name="bulk_action"),
# Admin Evaluation
path("admin-evaluation/", admin_evaluation, name="admin_evaluation"),
path("admin-evaluation/chart-data/", admin_evaluation_chart_data, name="admin_evaluation_chart_data"),
# Employee Evaluation (PAD Department Weekly Dashboard)
path("employee-evaluation/", employee_evaluation, name="employee_evaluation"),
path("employee-evaluation/data/", employee_evaluation_data, name="employee_evaluation_data"),
# Enhanced Staff Performance
path("admin-evaluation/staff/<str:staff_id>/", staff_performance_detail, name="staff_performance_detail"),
path("admin-evaluation/staff/<str:staff_id>/trends/", staff_performance_trends, name="staff_performance_trends"),
path("admin-evaluation/benchmarks/", department_benchmarks, name="department_benchmarks"),
path("admin-evaluation/export/", export_staff_performance, name="export_staff_performance"),
path("admin-evaluation/analytics/", performance_analytics_api, name="performance_analytics_api"),
# Step 0 — Complaint Requests Report
path("complaint-requests/", complaint_request_list, name="complaint_request_list"),
path("complaint-requests/export/", complaint_request_export, name="complaint_request_export"),
]