ECHO-883 Feat/monitor posthog analytics#853
Merged
Merged
Conversation
Add host-facing Monitor analytics and end-to-end portal recording
reliability events so we can see adoption, drop-off, and failures.
Host dashboard:
- monitor_opened/closed, monitor_drilldown_opened,
monitor_conversation_opened (row + funnel), monitor_participant_name_edited,
monitor_locked_row_clicked
- monitor_stream_degraded/reconnected/load_failed
Portal reliability (participant):
- portal_recording_interrupted (at detection), backgrounded/foregrounded,
network offline/online, chunk_upload_failed, uploads_incomplete_on_finish,
conversation_deleted_during_recording, mic_permission_resolved, abandoned
Backend (server_*, keyed on conversation_id):
- server_chunk_upload_bad, server_chunk_not_found_in_s3,
server_chunk_transcription_failed
Notes:
- Stream-health state lives on the shared SSE connection so it fires once
across the 2-3 concurrent useConversationMonitor mounts, not per mount.
- Page-session analytics isolated to a null-rendering leaf so live snapshots
don't re-render the Monitor page chrome.
- Edge-triggered effects use primitive deps / refs to avoid per-tick reruns.
Tests: row + locked click-through and isProblemState (frontend);
confirm-upload bad/missing-chunk and transcription-failure captures (backend).
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.
No description provided.