fix: clean up mobile card + desktop first column

Mobile card: removed phone, dates, updatedAt, buildGroupSummary — kept only
  name + delivery type badge + status badge + order numbers + problem alert
Desktop first column: removed duplicate name and groupKey (phone|date),
  kept only name + phone
This commit is contained in:
root 2026-06-18 16:40:23 +00:00
parent 693da3236e
commit aefc588844
1 changed files with 1 additions and 12 deletions

View File

@ -147,12 +147,8 @@ export const OrdersTable = ({
</Badge> </Badge>
</div> </div>
</div> </div>
<div className="text-sm text-[var(--color-text-muted)]">
{group.displaySubtitle || [group.customerPhone, group.customerDate].filter(Boolean).join(" · ")}
</div>
</div> </div>
<div className="mt-3 text-sm text-[var(--color-text-muted)]">{buildGroupSummary(group)}</div>
<div className="mt-2 text-sm text-[var(--color-text-muted)]">{renderMobileOrderNumbers(group)}</div> <div className="mt-2 text-sm text-[var(--color-text-muted)]">{renderMobileOrderNumbers(group)}</div>
{group.hasDeliveryProblem && ( {group.hasDeliveryProblem && (
<div className="mt-2 rounded-lg border border-[var(--color-warning)] bg-[var(--color-warning-soft)] px-2 py-1 text-xs"> <div className="mt-2 rounded-lg border border-[var(--color-warning)] bg-[var(--color-warning-soft)] px-2 py-1 text-xs">
@ -162,12 +158,6 @@ export const OrdersTable = ({
)} )}
</div> </div>
)} )}
{!group.hasDeliveryProblem && Array.isArray(group?.driverShipmentData) && group.driverShipmentData.length > 0 && (
<div className="mt-2 text-xs text-[var(--color-accent)]"> Доставка без проблем</div>
)}
<div className="mt-3 text-xs text-[var(--color-text-muted)]">
{formatDateTime(group.updatedAt)}
</div>
</Button> </Button>
); );
})} })}
@ -207,9 +197,8 @@ export const OrdersTable = ({
<div className="px-5 py-4"> <div className="px-5 py-4">
<div className="font-medium">{group.displayTitle || group.customerName || group.groupKey}</div> <div className="font-medium">{group.displayTitle || group.customerName || group.groupKey}</div>
<div className="mt-1 text-sm text-[var(--color-text-muted)]"> <div className="mt-1 text-sm text-[var(--color-text-muted)]">
{[group.customerName, group.customerPhone].filter(Boolean).join(" · ")} {group.customerPhone || ""}
</div> </div>
<div className="text-xs text-[var(--color-text-muted)]">{group.groupKey}</div>
</div> </div>
<div className="max-w-[260px] px-5 py-4 text-sm text-[var(--color-text-muted)]"> <div className="max-w-[260px] px-5 py-4 text-sm text-[var(--color-text-muted)]">
{renderOrderNumbers(group)} {renderOrderNumbers(group)}