diff --git a/admin/inertia/components/maps/MapComponent.tsx b/admin/inertia/components/maps/MapComponent.tsx
index 07fe1c6..f7a3a8a 100644
--- a/admin/inertia/components/maps/MapComponent.tsx
+++ b/admin/inertia/components/maps/MapComponent.tsx
@@ -243,6 +243,11 @@ export default function MapComponent({
closeOnClick={false}
>
{selectedMarker.name}
+ {selectedMarker.notes && selectedMarker.notes.trim() && (
+
+ {selectedMarker.notes}
+
+ )}
)}
diff --git a/admin/inertia/hooks/useMapMarkers.ts b/admin/inertia/hooks/useMapMarkers.ts
index ba999eb..a0e818e 100644
--- a/admin/inertia/hooks/useMapMarkers.ts
+++ b/admin/inertia/hooks/useMapMarkers.ts
@@ -18,6 +18,7 @@ export interface MapMarker {
longitude: number
latitude: number
color: PinColorId
+ notes: string | null
createdAt: string
}
@@ -36,6 +37,7 @@ export function useMapMarkers() {
longitude: m.longitude,
latitude: m.latitude,
color: m.color as PinColorId,
+ notes: m.notes ?? null,
createdAt: m.created_at,
}))
)
@@ -54,6 +56,7 @@ export function useMapMarkers() {
longitude: result.longitude,
latitude: result.latitude,
color: result.color as PinColorId,
+ notes: result.notes ?? null,
createdAt: result.created_at,
}
setMarkers((prev) => [...prev, marker])
diff --git a/admin/inertia/lib/api.ts b/admin/inertia/lib/api.ts
index 3e015d8..aa1369b 100644
--- a/admin/inertia/lib/api.ts
+++ b/admin/inertia/lib/api.ts
@@ -631,7 +631,7 @@ class API {
async listMapMarkers() {
return catchInternal(async () => {
const response = await this.client.get<
- Array<{ id: number; name: string; longitude: number; latitude: number; color: string; created_at: string }>
+ Array<{ id: number; name: string; longitude: number; latitude: number; color: string; notes: string | null; created_at: string }>
>('/maps/markers')
return response.data
})()
@@ -640,7 +640,7 @@ class API {
async createMapMarker(data: { name: string; longitude: number; latitude: number; color?: string }) {
return catchInternal(async () => {
const response = await this.client.post<
- { id: number; name: string; longitude: number; latitude: number; color: string; created_at: string }
+ { id: number; name: string; longitude: number; latitude: number; color: string; notes: string | null; created_at: string }
>('/maps/markers', data)
return response.data
})()