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:
parent
693da3236e
commit
aefc588844
|
|
@ -147,12 +147,8 @@ export const OrdersTable = ({
|
|||
</Badge>
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-sm text-[var(--color-text-muted)]">
|
||||
{group.displaySubtitle || [group.customerPhone, group.customerDate].filter(Boolean).join(" · ")}
|
||||
</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>
|
||||
{group.hasDeliveryProblem && (
|
||||
<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>
|
||||
)}
|
||||
{!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>
|
||||
);
|
||||
})}
|
||||
|
|
@ -207,9 +197,8 @@ export const OrdersTable = ({
|
|||
<div className="px-5 py-4">
|
||||
<div className="font-medium">{group.displayTitle || group.customerName || group.groupKey}</div>
|
||||
<div className="mt-1 text-sm text-[var(--color-text-muted)]">
|
||||
{[group.customerName, group.customerPhone].filter(Boolean).join(" · ")}
|
||||
{group.customerPhone || ""}
|
||||
</div>
|
||||
<div className="text-xs text-[var(--color-text-muted)]">{group.groupKey}</div>
|
||||
</div>
|
||||
<div className="max-w-[260px] px-5 py-4 text-sm text-[var(--color-text-muted)]">
|
||||
{renderOrderNumbers(group)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue