From f60e6115775a73118ed037aae5bd45f3c82a59fe Mon Sep 17 00:00:00 2001 From: jubnl Date: Tue, 14 Apr 2026 15:50:59 +0200 Subject: [PATCH] fix(places): fix notes type and display in inspector Add missing notes (and other fields) to client Place type so the field is correctly typed when hydrating the edit form. Fix PlaceInspector to show description and notes as separate blocks so notes are no longer hidden when a place also has a description. --- client/src/components/Planner/PlaceInspector.tsx | 11 +++++++++-- client/src/types.ts | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/client/src/components/Planner/PlaceInspector.tsx b/client/src/components/Planner/PlaceInspector.tsx index 8f1e8e43..58ffbf99 100644 --- a/client/src/components/Planner/PlaceInspector.tsx +++ b/client/src/components/Planner/PlaceInspector.tsx @@ -341,9 +341,16 @@ export default function PlaceInspector({ )} {/* Description / Summary */} - {(place.description || place.notes || googleDetails?.summary) && ( + {(place.description || googleDetails?.summary) && (
- {place.description || place.notes || googleDetails?.summary || ''} + {place.description || googleDetails?.summary || ''} +
+ )} + + {/* Notes */} + {place.notes && ( +
+ {place.notes}
)} diff --git a/client/src/types.ts b/client/src/types.ts index bcaa82e6..2cf23741 100644 --- a/client/src/types.ts +++ b/client/src/types.ts @@ -43,18 +43,24 @@ export interface Place { trip_id: number name: string description: string | null + notes: string | null lat: number | null lng: number | null address: string | null category_id: number | null icon: string | null price: string | null + currency: string | null image_url: string | null google_place_id: string | null osm_id: string | null route_geometry: string | null place_time: string | null end_time: string | null + duration_minutes: number | null + transport_mode: string | null + website: string | null + phone: string | null created_at: string }