refactor(analytics): send titles alongside ids, drop comments
Bare ids are unreadable in the dashboard, so every event that points at a show or a person now carries its title or name. Ids stay for disambiguation, since titles collide across remakes. - ShowRef gains showTitle, so show_viewed, library_toggled, torrents_searched, torrent_selected, playback_started and playback_failed all report it - person_viewed sends personName - random_shuffled sends the title of the movie scrolled to - torrent_selected sends the torrent title next to the show title - subtitles_selected sends the track label, such as English, rather than the internal track value Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
01753d4eb6
commit
66776c582f
13 files changed
+39
-43
No files matched your search
@@ -52,7 +52,7 @@ export const useMutateShowState = (show: Show) => {
|
||||
list: mutation.variables?.list,
|
||||
isPending: session ? mutation.isPending : false,
|
||||
mutate: ({ list, value }: { list: 'favorite' | 'watchlist'; value: boolean }) => {
|
||||
analytics.libraryToggled({ showId: show.id, showType: show.type, list, value });
|
||||
analytics.libraryToggled({ showId: show.id, showType: show.type, showTitle: show.title, list, value });
|
||||
|
||||
if (session) return mutation.mutate({ showId: show.id, showType: show.type, list, value });
|
||||
|
||||
|
||||
Reference in new issue
Block a user