diff --git a/app/api/v1/shop/addresses.py b/app/api/v1/shop/addresses.py index 76a78adc..07267e70 100644 --- a/app/api/v1/shop/addresses.py +++ b/app/api/v1/shop/addresses.py @@ -28,7 +28,7 @@ router = APIRouter() logger = logging.getLogger(__name__) -@router.get("/addresses", response_model=CustomerAddressListResponse) +@router.get("/addresses", response_model=CustomerAddressListResponse) # authenticated def list_addresses( request: Request, customer: Customer = Depends(get_current_customer_api), diff --git a/app/api/v1/shop/profile.py b/app/api/v1/shop/profile.py index 32d76086..f9ed6604 100644 --- a/app/api/v1/shop/profile.py +++ b/app/api/v1/shop/profile.py @@ -30,7 +30,7 @@ router = APIRouter() logger = logging.getLogger(__name__) -@router.get("/profile", response_model=CustomerResponse) +@router.get("/profile", response_model=CustomerResponse) # authenticated def get_profile( customer: Customer = Depends(get_current_customer_api), db: Session = Depends(get_db), diff --git a/app/templates/vendor/dashboard.html b/app/templates/vendor/dashboard.html index 662f8516..9ad7204f 100644 --- a/app/templates/vendor/dashboard.html +++ b/app/templates/vendor/dashboard.html @@ -1,6 +1,8 @@ {# app/templates/vendor/dashboard.html #} {% extends "vendor/base.html" %} {% from "shared/macros/feature_gate.html" import limit_warning, usage_bar, upgrade_card, tier_badge %} +{% from "shared/macros/alerts.html" import loading_state, error_state %} +{% from "shared/macros/tables.html" import table_wrapper, table_header %} {% block title %}Dashboard{% endblock %} @@ -12,6 +14,7 @@ {{ limit_warning("products") }} +{# noqa: FE-007 - Custom header with tier_badge alongside title #}
Loading dashboard...
-Error loading dashboard
- -| Order ID | -Customer | -Amount | -Status | -Date | +|||||
|---|---|---|---|---|---|---|---|---|---|
| + + | ++ | ++ | ++ + | ++ | |||||
| - - | -- | -- | -- - | -- | -