Load real GLB models in the MapLibre demo instead of placeholder geometry.
CI / test (push) Successful in 4s
CI / test (push) Successful in 4s
This restores true 3D rendering from backend asset links and keeps runtime var data out of git/agent workflows. Made-with: Cursor
This commit is contained in:
@@ -47,8 +47,22 @@ bun run build
|
||||
## Editing guidance for agents
|
||||
|
||||
- Prefer minimal changes and avoid unrelated refactors.
|
||||
- Treat `var/` as runtime data only; ignore it for code changes and commits.
|
||||
- Add tests when behavior changes.
|
||||
- Verify Go tests after backend changes.
|
||||
- Verify Bun tests after TS client changes.
|
||||
- For DB-required tests, prefer embedded/ephemeral Postgres fixtures over relying on an externally managed database.
|
||||
- If CI fails due runner/network infrastructure, keep logs explicit in workflow output.
|
||||
|
||||
## Agent skill memory (current behavior)
|
||||
|
||||
- **Asset downloads stay on backend domain:** `GET /v1/assets/{id}/download` streams bytes from backend (no redirect to MinIO/internal URL).
|
||||
- **Asset uploads are backend-routed:** signed upload endpoint returns backend URL (`/v1/assets/{id}/upload`), browser never uploads directly to MinIO.
|
||||
- **Public features API exists:** use `GET /v1/features/public` with optional `kind` query (`3d` or `image`) to fetch globally visible features/assets.
|
||||
- **Feature geometry update API exists:** `PATCH /v1/features/{id}` updates point geometry (owner only).
|
||||
- **MapLibre demo expectations (`web/maplibre-demo.js`):**
|
||||
- uses raster OSM tiles (not vector style),
|
||||
- loads all public 3D features on map start,
|
||||
- after login merges all owner collections,
|
||||
- owner feature markers are draggable and persisted via `PATCH /v1/features/{id}`.
|
||||
- **Share-link behavior in demos:** "Copy Share Link" generates map URLs with coordinates so recipients open map context, not only raw asset URL.
|
||||
|
||||
Reference in New Issue
Block a user