feat(player-stats): local listening history tab with heatmap and summaries (#849)

* feat(player-stats): local listening history tab with heatmap and summaries

Record play sessions in library.sqlite when the library index is enabled,
add Rust read APIs and Tauri commands for year/day aggregates, and ship the
Player stats UI with session clustering, event-driven live refresh, and a
notice when some servers are excluded from indexing.

* test(player-stats): split play_session repo and expand test coverage

Move the repository into play_session/ (completion, cluster, integration tests),
add remap/purge/FK coverage in Rust, and cover ingestion gates plus live-refresh
hooks on the frontend per spec v0.3.

* docs(release): CHANGELOG and credits for player stats (PR #849)

* fix(player-stats): satisfy tsc and clippy CI gates

Use InternetRadioStation field names in the radio skip test and replace
manual month/day range checks with RangeInclusive::contains.
This commit is contained in:
cucadmuh
2026-05-22 14:07:38 +03:00
committed by GitHub
parent 7afddf7b84
commit 23f7ba02d6
49 changed files with 3059 additions and 19 deletions
+29
View File
@@ -44,4 +44,33 @@ export const statistics = {
topRatedArtists: 'Best beoordeelde artiesten',
noRatedSongs: 'Nog geen beoordeelde nummers. Beoordeel nummers in album- of afspeellijstweergave.',
noRatedArtists: 'Nog geen beoordeelde artiesten.',
tabServer: 'Serverstatistieken',
tabPlayer: 'Spelerstatistieken',
playerEmpty: 'Begin te luisteren — je lokale geschiedenis verschijnt hier zodra de bibliotheekindex aan staat.',
playerSummaryTime: 'Luistertijd',
playerListeningDayShort: '{{count}}d',
playerListeningHourShort: '{{count}}u',
playerListeningMinuteShort: '{{count}}m',
playerSummarySessions: 'Sessies',
playerSummaryTracks: 'Nummers',
playerSummaryUniqueTracks: 'Unieke nummers',
playerSummaryDays: 'Days',
playerPartialIndexNotice: 'Sommige servers zijn uitgesloten van de lokale bibliotheekindex. Luisteren op die servers wordt niet vastgelegd in de playerstatistieken.',
playerPartialIndexSettings: 'Bibliotheekinstellingen',
playerSummaryCompletion: 'Volledig / gedeeltelijk',
playerYearPrev: 'Vorig jaar',
playerYearNext: 'Volgend jaar',
playerHeatmapLegend: 'Donkerder = meer nummers geluisterd op die dag.',
playerHeatmapLess: 'Minder',
playerHeatmapMore: 'Meer',
playerDaySessions: '{{count}} sessies',
playerDayTrackPlays: '{{count}} nummers',
playerDayFullPartial: '{{full}} volledig · {{partial}} gedeeltelijk',
playerRecentDaysTitle: 'Recente dagen',
playerDayToday: 'Vandaag',
playerDayYesterday: 'Gisteren',
playerListenedSecShort: '{{seconds}} s',
playerListenedMinDecimal: '{{minutes}} min',
completionFull: 'Volledig geluisterd',
completionPartial: 'Gedeeltelijk',
};