From c64718ef70383e30684c8797744a2b7ec8654d42 Mon Sep 17 00:00:00 2001 From: "reza.g" Date: Tue, 8 Sep 2026 14:51:36 +0330 Subject: [PATCH] fix(quotes): show real material names instead of category in accept modal & detail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Line-item labels in the accept modal («پروژهی هر قلم» and the keep/reject list) and the quote-detail flow boxes printed category + brand (e.g. the topic name). Both now use materialLabel() → the material's actual stored name, consistent with the rest of the dashboard. --- frontend/src/pages/Dashboard/AcceptModal.tsx | 5 +++-- frontend/src/pages/Dashboard/QuoteDetail.tsx | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Dashboard/AcceptModal.tsx b/frontend/src/pages/Dashboard/AcceptModal.tsx index b2af9dc..88af99e 100644 --- a/frontend/src/pages/Dashboard/AcceptModal.tsx +++ b/frontend/src/pages/Dashboard/AcceptModal.tsx @@ -7,6 +7,7 @@ import { activeItems, itemTermsheetIds, materialById, + materialLabel, materialSpecs, specsLabel, supplierById, @@ -313,7 +314,7 @@ export function AcceptModal({ quoteId, onClose }: AcceptModalProps) { }} /> - {m.category} {m.brand} + {materialLabel(m)} {specText ? ` · ${specText}` : ""} @@ -355,7 +356,7 @@ export function AcceptModal({ quoteId, onClose }: AcceptModalProps) {
- {m.category} {m.brand} + {materialLabel(m)} {specText ? · {specText} : ""} diff --git a/frontend/src/pages/Dashboard/QuoteDetail.tsx b/frontend/src/pages/Dashboard/QuoteDetail.tsx index c5f2ff7..56a1210 100644 --- a/frontend/src/pages/Dashboard/QuoteDetail.tsx +++ b/frontend/src/pages/Dashboard/QuoteDetail.tsx @@ -6,6 +6,7 @@ import { itemTermsheetIds, lineItemTotal, materialById, + materialLabel, materialSpecs, refConverted, specsLabel, @@ -96,7 +97,7 @@ export function QuoteDetail({ store, q }: QuoteDetailProps) { >
- {m.category} {m.brand} + {materialLabel(m)} {specText ? ` · ${specText}` : ""}