From 5818b94bbe25a2f5c65109d4d79bbbed09b26224 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 13 Jul 2026 14:21:57 +0000 Subject: [PATCH] fix: remove duplicate status displays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Remove delivery status from info grid (already shown as Badge in header) 2. Remove SMS notification Badge from SmsStatusCard header (timeline shows it) 3. Remove inline hint on blocked buttons — keep only warning banner below --- src/components/orders/OrderDetailPanel.jsx | 5 +---- src/components/orders/SmsStatusCard.jsx | 5 +---- src/components/orders/StatusActionPanel.jsx | 4 ---- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/components/orders/OrderDetailPanel.jsx b/src/components/orders/OrderDetailPanel.jsx index 2696461..1e2d8b5 100644 --- a/src/components/orders/OrderDetailPanel.jsx +++ b/src/components/orders/OrderDetailPanel.jsx @@ -911,10 +911,7 @@ export const OrderDetailPanel = ({

Обновлена

{formatDateTime(order.updatedAt)}

-
-

{isPickupOrder ? "Статус самовывоза" : "Статус доставки"}

-

{getOrderGroupDeliveryStatusLabel(order.deliveryStatus || order.delivery_status)}

-
+ {(order.pickupCode || order.pickup_code) && (order.deliveryType === "pickup" || order.delivery_type === "pickup") ? (

Код выдачи

diff --git a/src/components/orders/SmsStatusCard.jsx b/src/components/orders/SmsStatusCard.jsx index d0da684..e93700c 100644 --- a/src/components/orders/SmsStatusCard.jsx +++ b/src/components/orders/SmsStatusCard.jsx @@ -177,11 +177,8 @@ export const SmsStatusCard = ({ order, userRole }) => { return ( -
+

📱 SMS-уведомления

- - {NOTIF_LABELS[notifStatus] || notifStatus} -
{/* Timeline */} diff --git a/src/components/orders/StatusActionPanel.jsx b/src/components/orders/StatusActionPanel.jsx index 38af211..862b671 100644 --- a/src/components/orders/StatusActionPanel.jsx +++ b/src/components/orders/StatusActionPanel.jsx @@ -95,10 +95,6 @@ const StatusActionPanel = ({ variant={isCurrent ? "primary" : (statusOption.mismatch ? "ghost" : "secondary")} onClick={() => { if (blockedBySchedule) { - onConfirmStatus?.({ - type: "hint", - hint: "⚠ Нельзя поставить «" + statusOption.label + "» без даты и времени доставки. Сначала согласуйте дату выше.", - }); return; } if (isCurrent && hint) {