mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +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> |
||
|---|---|---|
| .. | ||
| credits | ||
| eslint-config | ||
| feedback | ||
| help | ||
| local-llm | ||
| local-store | ||
| local-stt | ||
| mana-tool-registry | ||
| notify-client | ||
| qr-export | ||
| shared-ai | ||
| shared-auth | ||
| shared-auth-ui | ||
| shared-branding | ||
| shared-crypto | ||
| shared-drizzle-config | ||
| shared-error-tracking | ||
| shared-go | ||
| shared-hono | ||
| shared-i18n | ||
| shared-icons | ||
| shared-landing-ui | ||
| shared-links | ||
| shared-llm | ||
| shared-logger | ||
| shared-privacy | ||
| shared-pwa | ||
| shared-python/manacore_auth | ||
| shared-research | ||
| shared-rss | ||
| shared-storage | ||
| shared-stores | ||
| shared-tags | ||
| shared-tailwind | ||
| shared-theme | ||
| shared-theme-ui | ||
| shared-types | ||
| shared-ui | ||
| shared-uload | ||
| shared-utils | ||
| shared-vite-config | ||
| spiral-db | ||
| test-config | ||
| wallpaper-generator | ||
| website-blocks | ||