Skip to content

feat: add @vercel/analytics dependency and implement analytics in Root component#107

Merged
sanjay-kv merged 1 commit into
recodehive:mainfrom
iitzIrFan:main
Jun 19, 2025
Merged

feat: add @vercel/analytics dependency and implement analytics in Root component#107
sanjay-kv merged 1 commit into
recodehive:mainfrom
iitzIrFan:main

Conversation

@iitzIrFan

Copy link
Copy Markdown
Member

@sanjay-kv
Solves :- #106

@vercel

vercel Bot commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Someone is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
recode-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 3:23pm

@sanjay-kv sanjay-kv requested a review from Copilot June 19, 2025 15:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR integrates the @vercel/analytics package into the project to enable analytics tracking by adding the dependency in package.json and incorporating the Analytics component within the Root component.

  • Added @vercel/analytics as a dependency in package.json.
  • Implemented the Analytics component in the Root.tsx to wrap the main application content.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/theme/Root.tsx Added analytics integration by rendering the Analytics component after children.
package.json Added the @vercel/analytics dependency for analytics functionality.

Comment thread src/theme/Root.tsx
Comment on lines +1 to +5
import React from 'react';
import { Analytics } from '@vercel/analytics/react';

// Default implementation, that you can customize
export default function Root({children}) {

Copilot AI Jun 19, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding explicit type annotations for the props (e.g., using React.PropsWithChildren) to improve clarity and maintainability in this TypeScript file.

Suggested change
import React from 'react';
import { Analytics } from '@vercel/analytics/react';
// Default implementation, that you can customize
export default function Root({children}) {
import React, { PropsWithChildren } from 'react';
import { Analytics } from '@vercel/analytics/react';
// Default implementation, that you can customize
export default function Root({ children }: React.PropsWithChildren<{}>) {

Copilot uses AI. Check for mistakes.
@sanjay-kv sanjay-kv added area:API REST/HTTP API area:backend-sql for issues related to the experimintal support of MsSql as backend labels Jun 19, 2025
@sanjay-kv sanjay-kv moved this to In Progress in @recode-web Jun 19, 2025
@sanjay-kv sanjay-kv moved this from In Progress to Done in @recode-web Jun 19, 2025
@sanjay-kv sanjay-kv added this to the recode:launch 3.0 milestone Jun 19, 2025
@sanjay-kv sanjay-kv merged commit 986f220 into recodehive:main Jun 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API REST/HTTP API area:backend-sql for issues related to the experimintal support of MsSql as backend

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants