diff --git a/frontend/src/app/products/page.tsx b/frontend/src/app/products/page.tsx index b8a21ae7..0d2e06fe 100644 --- a/frontend/src/app/products/page.tsx +++ b/frontend/src/app/products/page.tsx @@ -9,6 +9,7 @@ import { ArrowDownAZ, ArrowLeft, ArrowRight, + Archive, Boxes, ChevronDown, ChevronRight, @@ -69,11 +70,14 @@ export default function ProductsPage() { setLoading(true); setError(null); try { + const normalizedSearch = search.trim(); const response = await apiClient.getCommerceProducts({ - search: search.trim() || undefined, + search: normalizedSearch || undefined, kind: kind || undefined, ordering, - is_active: true, + // The normal catalog stays compact, but a deliberate search must also + // find archived source cards so users do not mistake them for missing. + is_active: normalizedSearch ? undefined : true, page, page_size: PAGE_SIZE, }); @@ -291,6 +295,11 @@ function ProductListItem({ product }: { product: CommerceProduct }) { {kindLabels[product.kind]} + {!product.is_active ? ( + + Архив + + ) : null} Артикул: {product.sku || "—"}