Compare commits

...

11 Commits

Author SHA1 Message Date
CodingOnStar
cb8440925e Merge remote-tracking branch 'origin/main' into feat/tracking-1203 2025-12-04 18:25:51 +08:00
CodingOnStar
f8f4bf0efb Update AmplitudeProvider to use IS_CLOUD_EDITION for conditional initialization 2025-12-03 14:02:39 +08:00
Joel
727720b59e Merge branch 'main' into feat/tracking-1203 2025-12-03 13:55:33 +08:00
CodingOnStar
9a9935f018 Refactor user tracking and event logging across components
- Added resetUser function call on logout in avatar and account dropdown components to ensure user state is cleared.
- Removed redundant time logging from event tracking in various components to streamline data sent to Amplitude.
- Updated user properties reporting in AppContextProvider to consolidate user and workspace information into a single properties object.
2025-12-03 11:10:54 +08:00
CodingOnStar
72e3aad6e1 Refactor AmplitudeProvider to enable conditional initialization based on CE edition
- Added check for IS_CE_EDITION to prevent Amplitude initialization in the CE edition.
- Updated warning log to inform users when Amplitude is disabled in CE edition.
2025-12-03 10:45:27 +08:00
CodingOnStar
4037487064 Update Amplitude integration and dependencies
- Replaced @amplitude/unified with @amplitude/analytics-browser and added @amplitude/plugin-session-replay-browser for enhanced tracking capabilities.
- Modified AmplitudeProvider to include session replay functionality with a configurable sample rate.
- Updated user identification in AppContextProvider to use user email instead of ID for tracking.
- Bumped various dependencies in package.json and pnpm-lock.yaml for compatibility and improvements.
2025-12-03 10:42:12 +08:00
CodingOnStar
837b6cfc19 Add Amplitude analytics integration and tracking (#27890)
- Introduced AmplitudeProvider component for initializing Amplitude analytics.
- Integrated user tracking in AppContextProvider to report user and workspace information.
- Added event tracking for workflow log filter selections.
- Updated package.json and pnpm-lock.yaml to include @amplitude/unified dependency.
2025-12-03 10:39:15 +08:00
CodingOnStar
1416d71ece feat: add registration and create_app tracking 2025-12-03 10:38:38 +08:00
CodingOnStar
adf8ae79d5 Enhance Amplitude tracking by validating user ID and properties
- Updated middleware to include Amplitude domains.
- Improved setUserId function to handle empty user IDs and log warnings in development.
- Enhanced setUserProperties function to filter out invalid properties and log results in development.
- Refactored user tracking in AppContextProvider to streamline setting user and workspace properties.
2025-12-03 10:38:33 +08:00
CodingOnStar
d7d0fad436 Implement event tracking for app creation and user actions across various components 2025-12-03 10:38:26 +08:00
CodingOnStar
478aee1c07 feat: integrate Amplitude analytics into the application
- Added AmplitudeProvider component to initialize Amplitude analytics.
- Integrated Amplitude tracking in layout components and workflow log filter.
- Implemented user tracking in AppContextProvider to report user and workspace information to Amplitude.
- Added utility functions for tracking events and managing user properties.
2025-12-03 10:38:10 +08:00

22
web/pnpm-lock.yaml generated
View File

@@ -2777,6 +2777,19 @@ packages:
'@types/react-dom':
optional: true
'@radix-ui/react-primitive@2.1.4':
resolution: {integrity: sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==}
peerDependencies:
'@types/react': ~19.1.17
'@types/react-dom': ~19.1.11
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@types/react-dom':
optional: true
'@radix-ui/react-slot@1.2.3':
resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}
peerDependencies:
@@ -2795,6 +2808,15 @@ packages:
'@types/react':
optional: true
'@radix-ui/react-slot@1.2.4':
resolution: {integrity: sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==}
peerDependencies:
'@types/react': ~19.1.17
react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependenciesMeta:
'@types/react':
optional: true
'@radix-ui/react-use-callback-ref@1.1.1':
resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}
peerDependencies: