diff --git a/src/routes/calendar.index.tsx b/src/routes/calendar.index.tsx index 7bc6e80..10ff913 100644 --- a/src/routes/calendar.index.tsx +++ b/src/routes/calendar.index.tsx @@ -978,7 +978,15 @@ function ListView({ events }: { events: Evt[] }) { ); } -function EventRow({ evt, showDate }: { evt: Evt; showDate?: boolean }) { +function EventRow({ + evt, + showDate, + onEdit, +}: { + evt: Evt; + showDate?: boolean; + onEdit?: (e: Evt) => void; +}) { const meta = typeMeta(evt.event_type); const Icon = evt.source === "task" ? CheckSquare : Briefcase; const content = ( @@ -997,6 +1005,9 @@ function EventRow({ evt, showDate }: { evt: Evt; showDate?: boolean }) { {!evt.all_day && {format(parseISO(evt.start), "h:mm a")}} {evt.all_day && All day} {evt.case_label && · {evt.case_label}} + {evt.client_label && !evt.case_label && ( + · {evt.client_label} + )} {evt.owner_name && · {evt.owner_name}} {evt.location && ( @@ -1007,6 +1018,20 @@ function EventRow({ evt, showDate }: { evt: Evt; showDate?: boolean }) { ); + // For real "event" rows, clicking opens the edit dialog (preferred over case nav). + if (evt.source === "event" && onEdit) { + return ( +
  • + +
  • + ); + } if (evt.case_id) { return (