Skip to content

feat(demo): Little Friend analytics on yable-demo.vercel.app - #91

Merged
zvndev merged 1 commit into
mainfrom
chore/little-friend
Oct 2, 2026
Merged

zvndev merged 1 commit into
mainfrom
chore/little-friend

Conversation

@zvndev

@zvndev zvndev commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds Little Friend (privacy-first analytics, journey mode with masked session replay) to the React demo at yable-demo.vercel.app.

  • The tag renders in the root layout only when VERCEL_ENV is production. Previews, local dev and the e2e dev server load nothing.
  • examples/react-demo/turbo.json declares VERCEL_ENV for the build task. Without it, Turborepo gives a preview build and a production build of the same source one cache key, so either can replay the other's output (checked locally: a preview build was a full cache hit on the production output).
  • install.copy after the hero install command is copied. github.click and npm.click for outbound links to GitHub and npm.
  • data-lf click ids on the hero calls to action and the docs header.
  • No changeset: the demo package is in the changesets ignore list.

Checked locally: pnpm lint, tsc --noEmit in the demo, prettier, and turbo builds with VERCEL_ENV set to preview (no tag) and production (tag on every page).

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Production deployments of the React demo render the Little Friend tag
(journey mode, with session replay) in the root layout. Previews, local
dev and the e2e dev server render nothing, because the tag depends on
VERCEL_ENV being production.

- examples/react-demo/turbo.json declares VERCEL_ENV for the build task,
  so Turborepo keys its cache on it. Without it, a preview build and a
  production build of the same source share one cache entry, and either
  can replay the other's output.
- install.copy after the hero install command is copied, github.click
  and npm.click for links to GitHub and npm.
- data-lf click ids on the hero calls to action and the docs header.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
table Ready Ready Preview Oct 2, 2026 5:27am UTC
yable-demo Ready Ready Preview Oct 2, 2026 5:27am UTC

Request Review

@zvndev

zvndev commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Merging with one red check this PR does not touch: Dependency audit (pnpm audit) fails on the unchanged lockfile, as it did on main's last CI run. It reports next 15.5.18 (critical, patched in 15.5.24 and later), js-yaml and sharp. Every other check passed, including e2e.

@zvndev
zvndev merged commit 49ebe1b into main Oct 2, 2026
14 of 15 checks passed

This branch was successfully deployed

2 active deployments
Preview – table — 1c8a0e51 Deployed Oct 2, 2026 by vercel[bot]
Preview – yable-demo — 1c8a0e51 Deployed Oct 2, 2026 by vercel[bot]
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