Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(places): fix notes type and display in inspector

jubnlf60e6115775a
diff --git a/client/src/components/Planner/PlaceInspector.tsx b/client/src/components/Planner/PlaceInspector.tsx
index 8f1e8e43c..58ffbf996 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) && (
<div className="collab-note-md" style={{ background: 'var(--bg-hover)', borderRadius: 10, overflow: 'hidden', fontSize: 12, color: 'var(--text-muted)', lineHeight: '1.5', padding: '8px 12px' }}>
- <Markdown remarkPlugins={[remarkGfm]}>{place.description || place.notes || googleDetails?.summary || ''}</Markdown>
+ <Markdown remarkPlugins={[remarkGfm]}>{place.description || googleDetails?.summary || ''}</Markdown>
+ </div>
+ )}
+
+ {/* Notes */}
+ {place.notes && (
+ <div className="collab-note-md" style={{ background: 'var(--bg-hover)', borderRadius: 10, overflow: 'hidden', fontSize: 12, color: 'var(--text-muted)', lineHeight: '1.5', padding: '8px 12px' }}>
+ <Markdown remarkPlugins={[remarkGfm]}>{place.notes}</Markdown>
</div>
)}
diff --git a/client/src/types.ts b/client/src/types.ts
index bcaa82e67..2cf23741b 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
}