mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
Sixth consumer of @mana/shared-privacy. Places now carry a VisibilityLevel flipped via <VisibilityPicker> in the Places DetailView; the new places.places embed powers "my favourite cafes" / "rehearsal rooms" / "gyms I train at" sections on the owner's website. Changes: - places/types: visibility + unlistedToken + visibilityChangedAt + visibilityChangedBy on LocalPlace; Place (UI type) requires visibility - places/queries: toPlace forwards visibility with 'space' fallback for legacy rows - places/stores/places: createPlace stamps defaultVisibilityFor(activeSpace.type); new setVisibility(id, level) mints/clears the unlisted token on the transition boundary and emits cross-module VisibilityChanged - places/views/DetailView: <VisibilityPicker> as the first field-row, above Kategorie website embed: - website-blocks/moduleEmbed/schema: 'places.places' added to EmbedSourceSchema; filter docstring describes the places-specific reuse of existing kind/isFavorite/tagIds filter fields - website/embeds: resolvePlaces gates hard on canEmbedOnWebsite, applies optional kind (→ PlaceCategory) / isFavorite / tagIds filters, sorts favourites-first then alphabetical. Privacy: Whitelist (title + address only). Latitude/longitude are explicitly NOT inlined — 10m precision of a home or workplace can identify someone, and silently publishing coords on a visibility flip would be the classic leak the design was built to prevent (plan §2). Verified: - pnpm check (web): 7450 files, 0 errors Next: M5.b — Events (socialEvents), Recipes, Wardrobe-Outfits, Habits, Quiz, Invoices-Clients. Same pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| food | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| quotes/packages/content | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||