Files
waggle-os/apps/web/.env.example
shumeiko.it f3eb6b6652 feat(web): ask before sending analytics, drop team screens, hide v1-absent memory features (P1.3a)
- Analytics are opt-in (decision Q7, ADR-0006). PostHog does not start or
  capture anything until the user clicks Allow in a first-run dialog that
  says what is sent. Escape or closing stores nothing and asks again. The
  existing Privacy & Telemetry toggle in Settings withdraws consent at once.
  Builds without VITE_POSTHOG_KEY show no dialog and send nothing.
- Remove the remaining upsell copy: the /team page with its per-seat price,
  Stripe and Teams wording in the erase-data dialog, Teams/Enterprise hints.
- Remove team screens (decision Q3): Waggle Dance, team presence in chat,
  team storage and sharing in workspace creation, storage and files.
- Hide memory features that are not in v1 (decision Q2) behind one map in
  lib/memory-features.ts: the knowledge graph, import history, wiki, agent
  memory hooks and Room launches. The map is the seam P1.5 fills from the
  memory store's capabilities.
- Say Windows, macOS and Linux instead of "Linux soon".
- Update the e2e specs for the removed and hidden screens.

Also logs UF-029: the Settings "Import Data" button has no handler.
2026-10-23 14:51:29 +02:00

20 lines
1.1 KiB
Plaintext

# apps/web environment variables
# Copy to .env.local and fill in the real values.
# NEVER commit .env.local — it is gitignored.
# PostHog product analytics, opt-in only (docs/oss/adr/0006-opt-in-analytics.md).
# Leave unset for builds from source: without a key nothing is sent and the
# consent dialog never appears. Release builds get the key from the build
# environment; Vite reads it at build time, so it cannot be added afterwards.
# VITE_POSTHOG_KEY=
# PR7b Auth — Clerk publishable key (shared instance with apps/www). Public-safe by
# design (ships in the client bundle); the SECRET key is server-side only and is NOT
# used by the desktop SPA (the local sidecar authorizes with its device token, not a
# Clerk JWT). Absent → /auth degrades to the accountless local-first state (honest).
# Like VITE_POSTHOG_KEY, this is baked into the Tauri bundle at compile time.
# Leave BLANK/commented here: the key is shape-validated (isPublishableKey), so a
# non-empty placeholder would be rejected anyway — but shipping it blank guarantees a
# verbatim copy degrades to the honest accountless state, never a crash.
# VITE_CLERK_PUBLISHABLE_KEY=