diff --git a/app/routes/admin_pages.py b/app/routes/admin_pages.py index 1e67cfb4..986d3d7d 100644 --- a/app/routes/admin_pages.py +++ b/app/routes/admin_pages.py @@ -23,6 +23,7 @@ Routes: - GET /vendor-themes → Vendor themes selection page (auth required) - GET /vendors/{vendor_code}/theme → Vendor theme editor (auth required) - GET /users → User management page (auth required) +- GET /customers → Customer management page (auth required) - GET /imports → Import history page (auth required) - GET /settings → Settings page (auth required) - GET /platform-homepage → Platform homepage manager (auth required) @@ -449,6 +450,30 @@ async def admin_user_edit_page( ) +# ============================================================================ +# CUSTOMER MANAGEMENT ROUTES +# ============================================================================ + + +@router.get("/customers", response_class=HTMLResponse, include_in_schema=False) +async def admin_customers_page( + request: Request, + current_user: User = Depends(get_current_admin_from_cookie_or_header), + db: Session = Depends(get_db), +): + """ + Render customers management page. + Shows list of all platform customers. + """ + return templates.TemplateResponse( + "admin/customers.html", + { + "request": request, + "user": current_user, + }, + ) + + # ============================================================================ # IMPORT MANAGEMENT ROUTES # ============================================================================ diff --git a/app/templates/admin/customers.html b/app/templates/admin/customers.html new file mode 100644 index 00000000..6f27bcc8 --- /dev/null +++ b/app/templates/admin/customers.html @@ -0,0 +1,51 @@ +{# app/templates/admin/customers.html #} +{% extends "admin/base.html" %} + +{% block title %}Customers{% endblock %} + +{% block alpine_data %}adminCustomers(){% endblock %} + +{% block content %} + +
+ Manage platform customers +
++ Customer management features coming soon. +
++ This section will allow you to view and manage customers across all vendors. +
++ Platform Administration +
++ Platform Administration +
+