Skip to content

feat(analytics): session recordings show the site's text - #691

Open
leemour wants to merge 1 commit into
mainfrom
feat/replay-show-text
Open

leemour wants to merge 1 commit into
mainfrom
feat/replay-show-text

Conversation

@leemour

@leemour leemour commented Nov 18, 2026

Copy link
Copy Markdown
Member

Why

Session recordings in PostHog masked all text (maskTextSelector: "*"), so a replay showed only asterisks. The landing and docs text is public.

What

  • lib/analytics.ts: masks only fields (maskAllInputs) and a member's own name and address on the ideas pages (privateText).
  • components/ideas/sign-in-panel.tsx: the signed-in line gets the class the selector names.
  • lib/privacy.ts: the session-recording paragraph in EN/RU/ES says the site's text is visible; date moved to 18 November 2026.

Testing

  • vitest run scripts/analytics.test.ts: pass. Full suite: the only failures are command-groups.test.ts, which needs synced tool docs absent in a fresh worktree.

Only visitors who accepted analytics are recorded; nothing else changes.

🤖 Generated with Claude Code

Recordings masked every piece of text (maskTextSelector "*"), so a replay showed rows of
asterisks and could not tell which page or link a visitor struggled with. The site's text is
public, so recordings now show it. Fields stay masked, and so do a member's own name and
address on the ideas pages. The privacy policy says so in EN, RU and ES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant