From 19b28e3e13990b98e01422797f57bd77438cf450 Mon Sep 17 00:00:00 2001 From: bot-backend Date: Sat, 6 Jun 2026 22:06:28 +0300 Subject: [PATCH] fix(tradein): white-label fallback shows client initial, not MeraMark (#1081) In the no-logo_url fallback branch replace with the first letter of the client brand name so our glyph never appears in a white-label header. Default (brand===null) branch is unchanged. Add inline comments in OfferCard to guard Trade-In mechanic strings against unintentional rebrand sweep (#1079). --- tradein-mvp/frontend/src/components/trade-in/OfferCard.tsx | 3 +++ tradein-mvp/frontend/src/components/trade-in/Topbar.tsx | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tradein-mvp/frontend/src/components/trade-in/OfferCard.tsx b/tradein-mvp/frontend/src/components/trade-in/OfferCard.tsx index 5032cbee..9dc033af 100644 --- a/tradein-mvp/frontend/src/components/trade-in/OfferCard.tsx +++ b/tradein-mvp/frontend/src/components/trade-in/OfferCard.tsx @@ -68,6 +68,7 @@ export function OfferCard({ estimate, brandSlug }: Props) { {/* ── Прайм-блок: ваша выгода ── */} + {/* intentional: «Trade-In» здесь = механика сделки, не имя бренда (rebrand #1079) */}
Ваша выгода через Trade-In
@@ -83,6 +84,7 @@ export function OfferCard({ estimate, brandSlug }: Props) { Статья расходов + {/* intentional: «Trade-In» здесь = механика сделки, не имя бренда (rebrand #1079) */} Через Trade-In Самостоятельная продажа @@ -122,6 +124,7 @@ export function OfferCard({ estimate, brandSlug }: Props) { + {/* intentional: «Trade-In» здесь = механика сделки, не имя бренда (rebrand #1079) */}
Издержки при самостоятельной продаже сопоставимы со скидкой{" "} {breakdown.totalPctMid.toFixed(0)}% от цены объявления.{" "} diff --git a/tradein-mvp/frontend/src/components/trade-in/Topbar.tsx b/tradein-mvp/frontend/src/components/trade-in/Topbar.tsx index 96863027..486415c3 100644 --- a/tradein-mvp/frontend/src/components/trade-in/Topbar.tsx +++ b/tradein-mvp/frontend/src/components/trade-in/Topbar.tsx @@ -127,8 +127,10 @@ export function Topbar({ active }: TopbarProps) { className="brand-logo" /> ) : ( + /* #1081 white-label без logo_url: показываем первую букву клиента, + НЕ нашу марку MeraMark — бренд не должен утекать в чужой заголовок. */ <> - + {brand.name.slice(0, 1).toUpperCase()} {brand.name} ) -- 2.45.3