Closed ritch closed 2 weeks ago
[!WARNING]
Review failed
The pull request is closed.
The recent updates enhance the analytics
package with a debug
feature, allowing for conditional debug logging. Additionally, the usage of event tracking has been optimized by relocating the EventTracker
component and useTrackEvent
hook to more relevant components. These collective changes streamline the tracking of user interactions and operational diagnostics.
File | Summary of Changes |
---|---|
analytics/src/usingAnalytics.ts |
Introduced debug field in AnalyticsInfo and enhanced Analytics class for conditional debug logging. |
app/src/components/Nav.tsx |
Added debug property to setAnalyticsInfo object in Nav component. |
app/src/pages/datasets/DatasetPage.tsx |
Removed EventTracker component import and usage. |
core/.../Dataset.tsx |
Utilized EventTracker component and useTrackEvent hook for "open_dataset" event tracking. |
core/.../Sidebar/ViewSelection/index.tsx |
Added useTrackEvent usage to track events within the ViewSelection component. |
core/.../ViewBar/ViewStage/ViewStage.tsx |
Included useTrackEvent to handle event tracking in the AddViewStage and ViewStage components. |
operators/OperatorBrowser.tsx |
Implemented useTrackEvent hook to log events when opening the operator browser. |
sequenceDiagram
participant User
participant NavComponent
participant Analytics
participant DatasetComponent
User->>NavComponent: Load webpage
NavComponent->>Analytics: setAnalyticsInfo({debug: info.dev})
Note over Analytics: Initialize with debug flag
User->>DatasetComponent: Open dataset
DatasetComponent->>Analytics: trackEvent("open_dataset")
Analytics-->>User: Log event (conditionally with debug)
On pathways paved with data trails,
The logs now whisper, not just wails.
Debugging lights the analyst’s way,
Come, track our clicks, both night and day.
With seamless flow, events do track,
Our analytics now clap back! 🎉
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?
Additional tracking and analytics fixes.
Summary by CodeRabbit
New Features
Improvements
EventTracker
usage inDatasetPage
with more advanced event tracking mechanisms.Chores
useTrackEvent
functionality from the analytics package.