Skip to content

feat: add analytics and fix mobile sidebar - #145

Merged
ECWireless merged 1 commit into
mainfrom
feat/mobile-sidebar-vercel-analytics
Aug 3, 2026
Merged

feat: add analytics and fix mobile sidebar#145
ECWireless merged 1 commit into
mainfrom
feat/mobile-sidebar-vercel-analytics

Conversation

@ECWireless

@ECWireless ECWireless commented Aug 3, 2026

Copy link
Copy Markdown
Member

This pull request introduces Vercel Analytics to the project and includes a minor CSS adjustment for the sidebar. The main changes are the addition and integration of the @vercel/analytics package and a small UI tweak to the navbar sidebar.

Analytics Integration:

  • Added @vercel/analytics as a dependency in package.json and updated pnpm-lock.yaml to include the new package and its peer dependencies. [1] [2] [3] [4]
  • Created/updated src/theme/Root.tsx to wrap the app with the Analytics component, enabling Vercel Analytics tracking across the site.

UI Improvements:

  • Modified .navbar.navbar-sidebar--show in src/css/custom.css to disable the backdrop-filter, which may improve sidebar appearance or performance.

Summary by CodeRabbit

  • New Features
    • Added privacy-conscious analytics to improve site insights.
  • Style
    • Improved mobile navigation by removing the backdrop blur when the sidebar is open.

Copilot AI review requested due to automatic review settings August 3, 2026 00:50
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
handbook Ready Ready Preview Aug 3, 2026 12:50am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3ae979b6-3c86-4cd3-8b7b-8bc93faec830

📥 Commits

Reviewing files that changed from the base of the PR and between 70d89a9 and b06c2e8.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • package.json
  • src/css/custom.css
  • src/theme/Root.tsx

📝 Walkthrough

Walkthrough

The PR adds Vercel Analytics to the root component and adds a mobile CSS rule that removes backdrop blur when the sidebar is visible.

Changes

Site experience updates

Layer / File(s) Summary
Vercel Analytics integration
package.json, src/theme/Root.tsx
Adds @vercel/analytics and renders Analytics with the application children.
Mobile sidebar styling
src/css/custom.css
Removes backdrop-filter while the mobile navbar sidebar is shown.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies both primary changes: adding analytics and fixing the mobile sidebar.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/mobile-sidebar-vercel-analytics

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

🟡 Not ready to approve

The new mobile sidebar CSS selector likely won’t match the actual “sidebar open” state, so the intended UI fix may not take effect.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Adds Vercel Analytics tracking to the Docusaurus site by introducing a Root theme wrapper, and includes a small mobile navbar/sidebar styling adjustment aimed at improving the sidebar open state.

Changes:

  • Added @vercel/analytics dependency and corresponding lockfile entries.
  • Introduced src/theme/Root.tsx to render the Vercel <Analytics /> component site-wide.
  • Adjusted mobile CSS to disable backdrop-filter when the sidebar is shown.
File summaries
File Description
src/theme/Root.tsx Wraps the app root to include Vercel Analytics tracking.
src/css/custom.css Tweaks mobile navbar/sidebar styling related to backdrop filtering.
package.json Adds @vercel/analytics dependency.
pnpm-lock.yaml Locks @vercel/analytics and related dependency metadata.
Review details

Files not reviewed (1)

  • pnpm-lock.yaml: Generated file
  • Files reviewed: 3/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread src/css/custom.css
@ECWireless
ECWireless merged commit f8e498a into main Aug 3, 2026
4 checks passed
@ECWireless
ECWireless deleted the feat/mobile-sidebar-vercel-analytics branch August 3, 2026 02:11
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