feat(analytics): track chat browser touchpoints#3269
Conversation
|
Warning Review limit reached
More reviews will be available in 43 minutes and 32 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
Comment |
Summary
tauri_browser_clickOpenPanel event for the React-owned Tauri browser/right-sidebar chrome in chat.data-analytics-idvalues to chat/account click targets so globalui_clickcaptures meaningful control IDs.Problem
Solution
tauri_browser_clickinapp/src/services/analytics.ts.tauri_browser_clickfrom account/sidebar and webview retry boundaries withsurface,action,provider, and non-sensitive status metadata.data-analytics-idattributes across the chat/account subtree: account modal, respond queue, webview host retry, approval/artifact/file controls, composer/header controls, reactions, and error actions.Submission Checklist
diff-cover) meet the gate enforced by.github/workflows/pr-ci.yml. Runpnpm test:coverageandpnpm test:rustlocally; PRs below 80% on changed lines will not merge.## Related— N/A: no coverage-matrix feature ID applies.docs/RELEASE-MANUAL-SMOKE.md) — N/A: analytics instrumentation only; no release smoke procedure changed.Closes #NNNin the## Relatedsection — N/A: no linked issue provided.Impact
Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
feat/analytics-cef-click-events46dfbb7ccValidation Run
pnpm --filter openhuman-app format:checkpnpm typecheckpnpm debug unit src/services/__tests__/analytics.test.ts(32 passed);pnpm test:coverage(4,870 passed, 4 skipped)cargo fmt --manifest-path ../Cargo.toml --all --checkran via pre-pushformat:check; no Rust files changed.cargo fmt --manifest-path app/src-tauri/Cargo.toml --all --checkandcargo check --manifest-path app/src-tauri/Cargo.tomlran via pre-push; no Tauri files changed.Validation Blocked
command:N/Aerror:N/Aimpact:N/ABehavior Changes
Parity Contract
ui_click,ui_control_change, andui_form_submittracking behavior remains in place.trackEventconsent and ingestion path.Duplicate / Superseded PR Handling