feat(admin): surface member address fields on detail page
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- typescript
- Bereich
- full-stack
Rechercherichtung
Start with MemberDetailPage.tsx, packages/api/src/routes/admin/users/byId.ts, and packages/api/src/db/schema/users.ts:103-117; compare the country picker with apps/web/src/hooks/useVocab.ts and the countries endpoint in packages/api/src/routes/vocab.ts. Done means the Identity tab edits and previews all requested address fields, supports re-geocoding, and the admin GET/PATCH responses handle them without changing soft-delete or restore controls.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
The admin member detail page's Identity tab does not currently expose city, region, countryId, publicLocation, showOnMap, or the geocoded latitude/longitude. Staff editing a member can't fix a typo'd city or toggle map visibility without going to the public dossier.
Requirements
-
MemberDetailPage.tsxIdentity tab gains an Address section with editable fields:- City (text)
- Region / state (text)
- Country (vocab picker reusing the existing countries vocab endpoint)
- Public location string (free-form override shown on the public dossier byline)
showOnMaptoggle
- Read-only preview of the geocoded result ("Pin: 42.36°N, 71.06°W") with a "Re-geocode now" button that bypasses the normal change-detection trigger
-
PATCH /admin/users/:idbody schema extended (packages/api/src/routes/admin/users/byId.ts) to acceptcity,region,countryId,publicLocation,showOnMap -
GET /admin/users/:idresponse includes the existing address fields andgeocoded_atso the UI can render the timestamp - Soft-delete / restore controls left untouched
Context
profiles has city, region, countryId, publicLocation, latitude, longitude, showOnMap already (packages/api/src/db/schema/users.ts:103-117). The admin PATCH route just doesn't accept them yet; the detail page just doesn't display them yet.
Depends on #1972 for the geocoded-value population and geocoded_at column.
Implementation Notes
Country picker: the vocab endpoint at packages/api/src/routes/vocab.ts already exposes countries; the web account page uses the same dataset for its country picker (see apps/web/src/hooks/useVocab.ts). Reuse it to avoid a parallel vocab fetch.
showOnMap defaults to false per the schema — admins flipping it on is an explicit consent decision and should be paired with a small note like "Surfaces this member on the public community map at /map."
- Vorherrschende Sprache
- HTML
- Sterne
- 33
- Forks
- 107
- Ø Merge
- 14 Std. 6 Min.
- Gemergte PRs (30 T.)
- 19
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus USRSE/usrse.github.io
-
update community awardsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
USRSE/usrse.github.io#2117 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 63/100
USRSE/usrse.github.io#2115 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
broken-links
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
USRSE/usrse.github.io#2099 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
USRSE/usrse.github.io#2085 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
USRSE/usrse.github.io#2001 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in USRSE/usrse.github.io
Ähnliche Issues
-
area:sessions bug needs-info platform:windows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
openchamber/openchamber#7919 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ietf-tools/errata#109 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag