mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
feat(places): one vote per person across copies, copies stay in step
A vote belongs to its person: cast or taken back on one copy of a place, it lands on every copy of that place in the lists and trips the person may vote on, in one transaction. A pass on the first start carries the existing votes over, and whoever joins a list or a trip brings their latest vote onto its copies of the places they voted on elsewhere, as inserts that never overwrite. An edit of the general facts of a place (name, description, address, position, category, picture, website, phone) on a trip place or a saved place is made on every other copy of it the editor may edit, with a history entry per copy and an announcement per trip and list. Notes, tags, status and votes stay with each copy, and a copy the editor may not edit is skipped. REST and MCP take the same path; a token reaches only the kinds of copies it holds write scope for. The entry rating names its voters, the library list filters by a lowest average vote and sorts by rating, and the tab counts honour the filter.
This commit is contained in:
@@ -126,7 +126,6 @@
|
||||
"booking-import -> llm-parse/image-input.ts",
|
||||
"collab -> storage/storage-upload.factory.ts",
|
||||
"collections -> places/place-image.ts",
|
||||
"collections -> places/places.dto.ts",
|
||||
"collections -> places/places.helpers.ts",
|
||||
"collections -> storage/storage-upload.factory.ts",
|
||||
"days -> accommodations/night-seat.ts",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"src/nest/atlas/atlas.mcp.ts": 23,
|
||||
"src/nest/budget/budget.mcp.ts": 36,
|
||||
"src/nest/collab/collab.mcp.ts": 20,
|
||||
"src/nest/collections/collections.mcp.ts": 14,
|
||||
"src/nest/collections/collections.mcp.ts": 13,
|
||||
"src/nest/day-notes/day-notes.mcp.ts": 6,
|
||||
"src/nest/days/days.mcp.ts": 2,
|
||||
"src/nest/doc-sync/doc-sync.mcp.ts": 1,
|
||||
@@ -19,7 +19,7 @@
|
||||
"src/nest/memories/memories.mcp.ts": 8,
|
||||
"src/nest/notifications/notifications.mcp.ts": 2,
|
||||
"src/nest/packing/packing.mcp.ts": 15,
|
||||
"src/nest/places/places.mcp.ts": 68,
|
||||
"src/nest/places/places.mcp.ts": 67,
|
||||
"src/nest/plugins/contributions/plugin-pois.mcp.ts": 4,
|
||||
"src/nest/plugins/contributions/plugin-search.mcp.ts": 5,
|
||||
"src/nest/reservations/reservations.mcp.ts": 60,
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
"PaddleRegions": "paddle-obstacles",
|
||||
"PaddleWaterGraphs": "paddle-routing",
|
||||
"PasswordResetTokens": "auth",
|
||||
"PersonalPlaceTags": "places-library",
|
||||
"PhotoProviderFields": "addons",
|
||||
"PhotoProviders": "addons",
|
||||
"Photos": "photos",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"src/nest/backup/backup.controller.ts": 8,
|
||||
"src/nest/budget/budget.controller.ts": 16,
|
||||
"src/nest/categories/categories.controller.ts": 4,
|
||||
"src/nest/collections/collections.controller.ts": 40,
|
||||
"src/nest/collections/collections.controller.ts": 38,
|
||||
"src/nest/config/config.controller.ts": 1,
|
||||
"src/nest/day-notes/day-notes.controller.ts": 4,
|
||||
"src/nest/days/days.controller.ts": 6,
|
||||
@@ -46,7 +46,7 @@
|
||||
"src/nest/photos/photos.controller.ts": 3,
|
||||
"src/nest/place-enrichment/place-enrichment.controller.ts": 2,
|
||||
"src/nest/place-shadow/place-shadow.controller.ts": 4,
|
||||
"src/nest/places/places.controller.ts": 17,
|
||||
"src/nest/places/places.controller.ts": 15,
|
||||
"src/nest/platform/discovery.controller.ts": 9,
|
||||
"src/nest/plugins/contributions/atlas-layers.controller.ts": 1,
|
||||
"src/nest/plugins/contributions/day-schedule.controller.ts": 1,
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"src/nest/atlas/atlas.service.ts": 1166,
|
||||
"src/nest/auth/auth.service.ts": 1115,
|
||||
"src/nest/budget/budget.service.ts": 1607,
|
||||
"src/nest/collections/collections.service.ts": 1397,
|
||||
"src/nest/collections/collections.service.ts": 1396,
|
||||
"src/nest/doc-sync/doc-sync.service.ts": 1060,
|
||||
"src/nest/doc-sync/providers/synology-drive.client.ts": 1160,
|
||||
"src/nest/journey/journey-domain.service.ts": 1659,
|
||||
|
||||
Reference in New Issue
Block a user