Skip to content

feat(web): add @vercel/analytics - #455

Merged
martyy-code merged 1 commit into
mainfrom
feature/vercel-analytics
Oct 12, 2026
Merged

martyy-code merged 1 commit into
mainfrom
feature/vercel-analytics

Conversation

@martyy-code

Copy link
Copy Markdown
Contributor

What this is

Wire the Vercel Web Analytics component into the docs site so every page (home, /docs, etc.) reports page views.

Changes

  • apps/web/package.json — adds @vercel/analytics@^2.0.1 as a dependency of the web app.
  • apps/web/src/app/layout.tsx — imports Analytics from @vercel/analytics/next and renders <Analytics /> inside the root <RootProvider>, after {children}. The component is a client-side script that batches and sends page-view hits. It is a no-op outside Vercel's edge.
  • pnpm-lock.yaml — updated to lock the new dependency.

Validation

  • pnpm --filter web type-check clean.
  • pnpm --filter web lint clean (only the three pre-existing warnings).
  • pnpm --filter web build clean (25 routes).

The Analytics component is a no-op when not running on Vercel, so local pnpm dev and any non-Vercel deployments are unaffected.

Wire <Analytics /> from @vercel/analytics/next into the
root layout so every page on the docs site (home, /docs,
etc.) reports page views. The component is a client-side
script that batches and sends hits; it is a no-op outside
of Vercel's edge.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
deessejs-fp-documentation Building Building Preview Oct 12, 2026 8:12am UTC

@martyy-code
martyy-code merged commit a7b98df into main Oct 12, 2026
7 of 8 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

File % Stmts % Branch % Funcs % Lines
Total 100.00% 100.00% 100.00% 100.00%
packages/fp/src/function/compose.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/const-thunks.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/constant.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/endomorphism.ts 0.00% n/a 0.00% 0.00%
packages/fp/src/function/flip.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/flow.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/function-n.ts 0.00% n/a 0.00% 0.00%
packages/fp/src/function/identity.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/index.ts 0.00% n/a 0.00% 0.00%
packages/fp/src/function/lazy.ts 0.00% n/a 0.00% 0.00%
packages/fp/src/function/pipe.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/predicate.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/function/tuple.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/tupled.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/function/untupled.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/maybe/constants.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/maybe/functions.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/maybe/index.ts 0.00% n/a 0.00% 0.00%
packages/fp/src/maybe/internal/none-impl.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/maybe/internal/some-impl.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/poll/constants.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/poll/functions.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/poll/index.ts 0.00% n/a 0.00% 0.00%
packages/fp/src/poll/internal/sleep.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/result/attempt.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/result/classify.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/result/constants.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/result/functions.ts 100.00% n/a 100.00% 100.00%
packages/fp/src/result/index.ts 0.00% n/a 0.00% 0.00%
packages/fp/src/result/internal/attempt-impl.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/result/internal/err-impl.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/result/internal/ok-impl.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/result/reporting.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/result/wrapping.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/unit/constants.ts 100.00% 100.00% 100.00% 100.00%
packages/fp/src/unit/index.ts 0.00% n/a 0.00% 0.00%

Per-file thresholds: 100% on statements / branches / functions / lines (ADR 0002). Files with no branches render n/a in the Branch column. The threshold gate is disabled in this PR and lands with the full method × variant test matrix in a follow-up.

This branch was successfully deployed

1 active deployment
Preview — 84a0aa16 Deployed Oct 12, 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.

2 participants