From e796e57e348b99ec1cf0ed8bbfe9de16c49f8dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C9=A7=CF=83=E2=84=93=CF=83?= Date: Fri, 13 Feb 2026 17:59:12 +0100 Subject: [PATCH] feat: add visual indicators for Paulin and Agathe feedback in apartment cards --- src/components/AppartCard.jsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/components/AppartCard.jsx b/src/components/AppartCard.jsx index 779f395..c70317f 100644 --- a/src/components/AppartCard.jsx +++ b/src/components/AppartCard.jsx @@ -99,6 +99,9 @@ export default function AppartCard({ annonce, onDelete, onUpdated }) { commentP !== (annonce.COMMENTAIRE_P || "") || commentA !== (annonce.COMMENTAIRE_A || ""); + const hasPaulinFeedback = (noteP ?? 0) > 0 || !!commentP?.trim(); + const hasAgatheFeedback = (noteA ?? 0) > 0 || !!commentA?.trim(); + const handleSave = async () => { setSaving(true); await updateAnnonce(annonce.id, { @@ -204,8 +207,19 @@ export default function AppartCard({ annonce, onDelete, onUpdated }) { Notes et commentaires - {hasChanges && ( - + {(hasPaulinFeedback || hasAgatheFeedback) && ( + + {hasPaulinFeedback && ( + + P + + )} + {hasAgatheFeedback && ( + + A + + )} + )} {expanded ? : }