From 733cb608072d7a36d26aa04a008575bd7ca9631c Mon Sep 17 00:00:00 2001 From: mahmood Date: Tue, 27 Oct 2026 16:46:26 +0330 Subject: [PATCH] fix(app): restore order timeline filter and drop unused cart channel Keep OrdersView typing against this branch's API, and omit channel from createOrder since the server already forces WHOLESALE for app placements. Co-authored-by: Cursor --- apps/user-app/src/utils/filters.ts | 8 ++++++++ apps/user-app/src/views/CartView.vue | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/user-app/src/utils/filters.ts b/apps/user-app/src/utils/filters.ts index 0fdd613..afb2126 100644 --- a/apps/user-app/src/utils/filters.ts +++ b/apps/user-app/src/utils/filters.ts @@ -20,3 +20,11 @@ export function jdate(val: string | undefined | null): string { } return val as any } + +/** Compact Jalali stamp for the order-detail timeline (day + month name + time). */ +export function jtimelineWhen(val: string | undefined | null): string { + if (val) { + return moment(val).format('jD jMMMM، HH:mm') + } + return val as any +} diff --git a/apps/user-app/src/views/CartView.vue b/apps/user-app/src/views/CartView.vue index 569475f..aa4c93f 100644 --- a/apps/user-app/src/views/CartView.vue +++ b/apps/user-app/src/views/CartView.vue @@ -214,9 +214,6 @@ const submitOrder = async () => { // Ignored by the server, which takes the customer from the token; still // sent so older builds keep validating. Removed in Phase 2. customerId: session.customerId ?? undefined, - // Wholesale (عمده) — same as legacy mobile; server also forces this for - // customer placements so admin omde list shows the order. - channel: 'WHOLESALE', items: cart.items.map((item) => { const variant = cart.variant(item) return {