Map Edit Mode and Inline Editing

Primary page: /parcels/map/?mode=edit

Access

  • Staff-only edit mode
  • Non-staff users remain in viewer mode

Edit-Mode Capabilities

  • Draw/create parcel polygons on map
  • Submit create form embedded under map
  • Open side panel editing for existing parcels
  • Inline attribute/geometry updates via API
  • Set effective_at timestamp for inline edits

Inline Update API

Endpoint: POST /parcels/api/inline-update/<uuid:pk>/

Editable payload fields include:

  • name, parcel_type, status, priority
  • address, description, is_public
  • geometry_wkt
  • effective_at (optional datetime; defaults to now)

Validation behavior:

  • unsupported fields rejected
  • choice values normalized and validated
  • polygon WKT parsed and validated

Versioning behavior:

  • inline save does not overwrite in place
  • current row is superseded (valid_to = effective_at)
  • new row is created as active version