From 1e4e56d2e2dced96cf1a702a734a7390a1141472 Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Mon, 18 May 2026 21:28:33 +0200 Subject: [PATCH] feat(observation): ObservationCard with reorder + delete affordances --- .../observation/ObservationCard.tsx | 71 ++++++++++++++++++- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/src/components/observation/ObservationCard.tsx b/src/components/observation/ObservationCard.tsx index 6751f441..84970c73 100644 --- a/src/components/observation/ObservationCard.tsx +++ b/src/components/observation/ObservationCard.tsx @@ -1,3 +1,70 @@ -export default function ObservationCard() { - return
ObservationCard placeholder
+import type { Observation } from '@/domain/schema/observation' +import Card from '@/components/ui/Card' +import Badge from '@/components/ui/Badge' +import Button from '@/components/ui/Button' + +export interface ObservationCardProps { + observation: Observation + index: number + active: boolean + onSelect: () => void + onDelete: () => void + onMoveUp: () => void + onMoveDown: () => void + canMoveUp: boolean + canMoveDown: boolean +} + +export default function ObservationCard({ + observation, + index, + active, + onSelect, + onDelete, + onMoveUp, + onMoveDown, + canMoveUp, + canMoveDown, +}: ObservationCardProps) { + const zoneCount = observation.zones.length + const patCount = + observation.pathologyIds.length + observation.freeTextPathologies.length + + return ( + +
+ +
+ + + +
+
+
+ ) }