feat(admin): add addresses + geocoding to organizations

Aperta
#1,969 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
html
Ambito
full-stack

Direzione di ricerca

Start by comparing the organizations schema and admin flow with the existing profiles fields, then trace the admin PATCH and the Identity tab. Review the apps/web directory map surface and decide between Nominatim and Mapbox for geocoding. Done means organizations support persisted addresses and coordinates, admin re-geocoding, opt-in map visibility, and organization pins alongside member pins.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Organizations need addresses so they can be placed on the community map alongside members. Addresses must be geocoded to lat/long so the map can render them without per-request lookups, mirroring the existing pattern on profiles (latitude/longitude + showOnMap).

Requirements

  • Add address columns to organizations (street/city/region/country/postalCode + latitude numeric(9,6) + longitude numeric(9,6) + showOnMap boolean)
  • Migration: backfill latitude/longitude as nullable; existing rows stay null until geocoded
  • Geocoding pipeline (Nominatim or Mapbox — pick one and document) triggered on address change in admin PATCH
  • Admin UI: address fields on the org detail page Identity tab + a read-only "Geocoded to: ${lat}, ${lng}" preview with a re-geocode button
  • Public map (apps/web map surface used by the directory) picks up org pins gated on showOnMap
  • showOnMap toggle defaults to false for legacy imports; orgs explicitly approved via admin can flip on

Context

The profiles table already has latitude, longitude, showOnMap, and publicLocation — the org-side schema should mirror those names so map rendering can stay type-uniform across actor kinds.

Implementation Notes

Geocoding is async and the admin shouldn't block on it: store address fields synchronously on PATCH, then enqueue a geocode job. For the v1 a single inline fetch to Nominatim on save is probably acceptable given org volume; we can move to a queued worker later if rate limits bite.

Lingua principale
HTML
Stelle
33
Fork
107
Merge medio
14h 6m
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di USRSE/usrse.github.io

Tutte le issue di USRSE/usrse.github.io

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.