feat: telemetry engine integration and CI build optimization#82
Merged
Conversation
…feat/analytics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a complete telemetry and analytics engine using Aptabase, deeply integrated across both the Rust backend and React frontend. It features a robust, privacy-first implementation allowing users to opt out of tracking.
Additionally, it resolves critical CI build failures on Windows by standardizing the
pnpmworkflow and securely embedding build-time environment variables.Key Changes
📊 Analytics & Privacy
@aptabase/tauriin the Rust backend (main.rs) and initialized tracking for app lifecycle events.AnalyticsSettings.tsx) allowing users to dynamically opt in or out of analytics.analytics.ts): All telemetry events (Git actions, AI queries, migrations, chart creation) now flow through a centralized wrapper that strictly respects the user's IPC-fetched privacy settings before dispatching.🛠️ CI & Build Optimizations
std::env::varto compile-timeoption_env!("APTABASE_APP_KEY")inmain.rsto securely embed the analytics key into the release binary..exemissing errors on GitHub Actions. Standardized the build pipeline acrosspackage.json,package-bridge.mjs, andbridge/package.jsonto strictly usepnpm, preventingnpm run/npxbin resolution conflicts.APTABASE_APP_KEYsecrets injection to.github/workflows/release.yml.Testing
aptabaseevents fire successfully on local debug builds when the privacy toggle is enabled.tauri-actionsuccessfully completes the NSIS Windows build withoutos error 32or missing asset errors.