mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 01:41:08 +02:00
Three related fixes for the workbench tracking overlay: 1. **Same-origin proxy at /api/v1/geocode/[...path]/+server.ts.** mana-geocoding is intentionally NOT exposed via Cloudflare, so the browser can't reach it directly — localhost:3018 is unreachable from a visitor's device. Same-origin proxy fixes this: the browser talks to https://mana.how/api/v1/geocode/*, SvelteKit forwards to http://mana-geocoding:3018 over the docker network. Pattern copied from the existing /api/v1/who/[...path] proxy. 2. **`formatFullAddress()` in $lib/geocoding** builds a compact line with street+housenumber, postal code, city, and 2-letter country code (DE/AT/CH) — e.g. "Hafenstraße 2, 78462 Konstanz, DE". Maps German and English OSM country names to ISO 3166-1 alpha-2. 3. **Clickable, inline-editable tracking label in ListView.** The tracking overlay used to show "47.6630, 9.1750" while tracking was active. Now it shows the venue name + full address with ISO country code, tapping it switches to an autocomplete input so the user can fix the location when GPS snaps to the wrong building. Debounced reverse-geocode on position change (1.5 s + 10 m precision), edits are kept local — the current tracking position drives the label but user corrections override until the next significant move. The client lib now uses relative URLs in the browser (same-origin proxy) and absolute URLs only from Node/SSR (via env var or localhost fallback). geocoding unit tests still pass (42/42 green). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| nutriphi | ||
| photos | ||
| picture | ||
| planta | ||
| presi | ||
| questions | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||
| zitare/packages/content | ||