From d891000b1980fcd431c79f1c290c5bbf0c09fc3c Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 10 Dec 2025 19:45:39 +0300 Subject: [PATCH] Features: None; Fixes: None; Extra: 1) Remove redundant comments from `_kpis.html`; 2) Exclude unused `_income_overview.html` include from `index.html`; 3) Comment out GA/Yandex/Ads integration placeholder in `_filters.html`. --- engine/core/templates/admin/dashboard/_filters.html | 6 +++--- engine/core/templates/admin/dashboard/_kpis.html | 10 ---------- engine/core/templates/admin/index.html | 1 - 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/engine/core/templates/admin/dashboard/_filters.html b/engine/core/templates/admin/dashboard/_filters.html index ca57db27..cdf24eb8 100644 --- a/engine/core/templates/admin/dashboard/_filters.html +++ b/engine/core/templates/admin/dashboard/_filters.html @@ -15,8 +15,8 @@ 360d {% endwith %} -
- {% trans "TODO: Integrate GA/Yandex.Metrica & Ads metrics" %} -
+{#
#} +{# TODO: Integrate GA/Yandex.Metrica & Ads metrics#} +{#
#} {% endcomponent %} diff --git a/engine/core/templates/admin/dashboard/_kpis.html b/engine/core/templates/admin/dashboard/_kpis.html index e60465ad..d3dcb255 100644 --- a/engine/core/templates/admin/dashboard/_kpis.html +++ b/engine/core/templates/admin/dashboard/_kpis.html @@ -1,12 +1,6 @@ {% load i18n unfold %} -{# - KPI cards (mobile-first): GMV, Orders, AOV, Net revenue, Refund rate - Uses `kpi` dict and `currency_symbol` provided by dashboard_callback -#} -
- {# GMV #} {% component "unfold/components/card.html" %}
{% component "unfold/components/text.html" %}{% trans "GMV" %} ({{ tf|default:30 }}d){% endcomponent %} @@ -21,7 +15,6 @@ {% endcomponent %} {% endcomponent %} - {# Orders #} {% component "unfold/components/card.html" %}
{% component "unfold/components/text.html" %}{% trans "Orders" %} ({{ tf|default:30 }}d){% endcomponent %} @@ -36,7 +29,6 @@ {% endcomponent %} {% endcomponent %} - {# AOV #} {% component "unfold/components/card.html" %}
{% component "unfold/components/text.html" %}{% trans "AOV" %} ({{ tf|default:30 }}d){% endcomponent %} @@ -51,7 +43,6 @@ {% endcomponent %} {% endcomponent %} - {# Net revenue #} {% component "unfold/components/card.html" %}
{% component "unfold/components/text.html" %}{% trans "Net revenue" %} ({{ tf|default:30 }}d){% endcomponent %} @@ -66,7 +57,6 @@ {% endcomponent %} {% endcomponent %} - {# Refund rate #} {% component "unfold/components/card.html" %}
{% component "unfold/components/text.html" %}{% trans "Refund rate" %} ({{ tf|default:30 }}d){% endcomponent %} diff --git a/engine/core/templates/admin/index.html b/engine/core/templates/admin/index.html index 08c4986f..3257e12b 100644 --- a/engine/core/templates/admin/index.html +++ b/engine/core/templates/admin/index.html @@ -29,7 +29,6 @@
{% include "admin/dashboard/_daily_sales.html" %}
- {% include "admin/dashboard/_income_overview.html" %}