project-nomad/admin/inertia
chriscrosstalk 59c2fdbb32
feat(maps): add notes input to map pin placement popup (#926)
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-07-18 08:59:35 -07:00
..
app fix(ui): reduce SSE reconnect churn and polling overhead on navigation 2026-03-20 11:46:10 -07:00
components feat(maps): add notes input to map pin placement popup (#926) 2026-07-18 08:59:35 -07:00
context feat: container controls & convienience scripts 2025-08-08 15:07:32 -07:00
css feat(maps): add scale bar and location markers (#636) 2026-04-03 14:26:50 -07:00
hooks feat(maps): add notes input to map pin placement popup (#926) 2026-07-18 08:59:35 -07:00
layouts feat: configurable internet test url override in new Advanced Settings page 2026-06-23 04:47:10 +00:00
lib feat(maps): add notes input to map pin placement popup (#926) 2026-07-18 08:59:35 -07:00
pages feat: configurable internet test url override in new Advanced Settings page 2026-06-23 04:47:10 +00:00
providers feat(UI): add Night Ops dark mode with theme toggle 2026-03-20 11:46:10 -07:00
tsconfig.json fix(Docs): documentation renderer fixes 2025-12-23 16:00:33 -08:00