project-nomad/admin/inertia/hooks
Chris Sherwood 54e3b5bd3d feat(maps): add notes input to map pin placement popup
The map_markers backend has accepted a `notes` column since PR #770 and
the popup display path was wired up to render it (commit 6328256), but
the placement UI never got an input. Result: notes are stored,
displayed when present, and impossible to actually enter via the UI.

Add a notes textarea below the name input in the placement popup,
thread the value through `addMarker` and `createMapMarker`, and trim +
null-coalesce on save. Notes display in the marker popup on click is
unchanged and now actually reachable.

- admin/inertia/lib/api.ts: extend createMapMarker request type with
  optional notes
- admin/inertia/hooks/useMapMarkers.ts: addMarker accepts and forwards
  notes (response already populated notes into local state, so no
  display-side change needed)
- admin/inertia/components/maps/MapComponent.tsx: markerNotes state,
  textarea after name input, threaded into handleSaveMarker

Edit-mode for existing markers (so users can backfill notes on
already-placed pins) is intentionally out of scope here - selected-marker
popup is still read-only. That's a follow-up PR if there's demand.
2026-05-21 12:16:44 -07:00
..
useDebounce.ts feat: [wip] custom map and zim downloads 2025-12-02 08:25:09 -08:00
useDiskDisplayData.ts fix(UI): gate NAS Storage label on network filesystem type (#749) 2026-04-21 14:26:28 -07:00
useDownloads.ts feat(content-updates): show size, surface downloads in Active Downloads 2026-05-20 10:16:00 -07:00
useEmbedJobs.ts feat(AI): enable remote AI chat host 2026-04-03 14:26:50 -07:00
useErrorNotification.ts feat: container controls & convienience scripts 2025-08-08 15:07:32 -07:00
useInternetStatus.ts feat: easy setup wizard 2026-01-15 15:54:59 -08:00
useMapMarkers.ts feat(maps): add notes input to map pin placement popup 2026-05-21 12:16:44 -07:00
useMapRegionFiles.ts feat: [wip] new maps system 2025-11-30 22:29:16 -08:00
useOllamaModelDownloads.ts fix(AI): allow cancelling in-progress model downloads and ensure consistent progress UI (#701) 2026-04-21 14:26:28 -07:00
useServiceInstallationActivity.ts feat: display model download progress 2026-02-06 16:22:23 -08:00
useServiceInstalledStatus.tsx feat(AI): chat suggestions and assistant settings 2026-02-01 07:24:21 +00:00
useSystemInfo.ts fix(CuratedCategories): improve fetching from Github 2026-01-19 14:41:51 -08:00
useSystemSetting.ts feat(AI): chat suggestions and assistant settings 2026-02-01 07:24:21 +00:00
useTheme.ts feat(UI): add Night Ops dark mode with theme toggle 2026-03-20 11:46:10 -07:00
useUpdateAvailable.ts feat: cron job for system update checks 2026-02-06 15:40:30 -08:00