Repository navigation
[Episode Chat] Send the missing chat analytics properties - #6141
Conversation
|
Claude finished @sztomek's task in 54s —— View job No blocking issues. Non-blocking
|
7a1e168 to
e3e8b43
Compare
|
Claude finished @sztomek's task in 34s —— View job The new push rebases the same five commits onto the updated Non-blocking
|
7fc7418 to
8e7d943
Compare
e3e8b43 to
c3a6d4b
Compare
|
Claude finished @sztomek's task in 31s —— View job The new commit ( |
8e7d943 to
4c534b6
Compare
c3a6d4b to
11698c5
Compare
|
Version |
4c534b6 to
1058010
Compare
11698c5 to
02e2e93
Compare
02e2e93 to
5ca63e6
Compare
1058010 to
162e5b5
Compare
162e5b5 to
128e302
Compare
5ca63e6 to
56b4e9c
Compare
56b4e9c to
b7ddabf
Compare
128e302 to
51ae9bb
Compare
0e73311
into
feat/episode-chat-answer-rating
Description
Sends the episode chat analytics from EventHorizonSchemas#139 that Android was still missing. This PR is based on #6142.
episode_chat_message_sent.message_indexepisode_chat_quote_play_tapped/episode_chat_quote_stop_tappedquote_source = inline_timestamp, the only way to play a quote since [Episode Chat] Restyle the conversation #6124.episode_chat_response_received(new on Android)duration_msmeasures how long the user waits for an answer: from sending the question until the answer is saved. A token refresh or the database writes can add to it.ChatViewModelgets the clock injected as aTimeSource, so tests can control the time.episode_chat_response_rated(new on Android)ratingandmessage_index(the number of the question the answer replies to). Clearing a rating isn't tracked, since the schema says it "fires on each tap that sets a rating".Fixes POC-952 https://linear.app/a8c/issue/POC-952
Testing Instructions
Use a debug build with "Episode Chat" on in Beta features, and watch
adb logcat | grep "Analytics:".episode_chat_message_sentshowsmessage_index=1, then2. Each one is followed byepisode_chat_response_receivedwith aduration_ms.message_index=3.message_index=1.episode_chat_message_failed, and noresponse_received. Turn airplane mode off and tap Retry. ✅ It keeps the samemessage_index.quote_source=inline_timestamp.episode_chat_response_ratedwithrating=negativeandmessage_index=2. Tap 👎 again to clear it. ✅ Nothing is tracked.Screenshots or Screencast
No UI changes.
Checklist
./gradlew spotlessApplyto automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xmlI have tested any UI changes...