-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ✨ add missing Assets.pageViewed event #4022
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
packages/web/pages/assets/index.tsxOops! Something went wrong! :( ESLint: 8.50.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/packages/web/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. WalkthroughThe pull request introduces analytics tracking to the Assets page by integrating the Changes
Sequence DiagramsequenceDiagram
participant AssetsPage as Assets Page
participant AmplitudeHook as useAmplitudeAnalytics
participant Analytics as Amplitude Analytics
AssetsPage->>AmplitudeHook: Invoke hook
AmplitudeHook->>Analytics: Log page view event
AmplitudeHook-->>AssetsPage: Return hook result
AssetsPage->>AssetsPage: Render AssetsInfoTable
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)packages/web/pages/assets/index.tsx (2)
The new imports are appropriately scoped for the analytics tracking functionality.
The analytics implementation is clean and follows React hooks rules. The event is triggered appropriately on component load. Let's verify the consistency of pageViewed event naming across other pages: ✅ Verification successfulLet's verify the actual event naming pattern in these files to ensure consistency. Event naming pattern is consistent across pages The implementation in Assets page follows the established pattern used throughout the codebase. All pages use
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for consistent pageViewed event naming pattern across pages
# Expected pattern: EventName.{Page}.pageViewed
# Search for similar event tracking in other page components
rg -l "EventName.*pageViewed" packages/web/pages/
Length of output: 342 Script: #!/bin/bash
# Check the actual event naming pattern in these files
rg "EventName.*pageViewed" packages/web/pages/ -A 1 -B 1
Length of output: 1801 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
What is the purpose of the change:
Right now we don't log assets page viewed event, this PR introduce it.
Linear Task
None
Brief Changelog
Testing and Verifying
This change has been tested locally by rebuilding the website and verified content and links are expected