From 02c7d7ba36d07ea5cacda354ffe8a4d6002e61d1 Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 22 May 2026 19:14:22 +0500 Subject: [PATCH] fix: review avatar uses authorId instead of displayName, show reviews for hidden products --- client/src/entities/review/api/reviews-api.ts | 2 ++ .../src/features/product-review/ui/ProductReviewsList.tsx | 2 +- client/src/widgets/reviews-block/ui/ReviewsBlock.tsx | 2 +- server/src/routes/api/public-reviews.js | 8 +++++--- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/client/src/entities/review/api/reviews-api.ts b/client/src/entities/review/api/reviews-api.ts index badcf9e..b7aefc5 100644 --- a/client/src/entities/review/api/reviews-api.ts +++ b/client/src/entities/review/api/reviews-api.ts @@ -25,6 +25,7 @@ export type PublicReviewFeedItem = { text: string | null imageUrl: string | null createdAt: string + authorId: string authorDisplay: string authorAvatar?: string | null authorAvatarStyle?: string | null @@ -53,6 +54,7 @@ export type PublicProductReviewItem = { text: string | null imageUrl: string | null createdAt: string + authorId: string authorDisplay: string authorAvatar?: string | null authorAvatarStyle?: string | null diff --git a/client/src/features/product-review/ui/ProductReviewsList.tsx b/client/src/features/product-review/ui/ProductReviewsList.tsx index a7f05e4..b98e351 100644 --- a/client/src/features/product-review/ui/ProductReviewsList.tsx +++ b/client/src/features/product-review/ui/ProductReviewsList.tsx @@ -20,7 +20,7 @@ function ReviewItem({ rv }: { rv: PublicProductReviewItem }) {