mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 22:45:41 +00:00
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:
@@ -62,4 +62,33 @@ export const statistics = {
|
||||
exportSaving: 'Saving…',
|
||||
exportSaved: 'Saved.',
|
||||
exportSaveFailed: 'Could not save the image.',
|
||||
tabServer: 'Server stats',
|
||||
tabPlayer: 'Player stats',
|
||||
playerEmpty: 'Start listening — your local play history will appear here once the library index is enabled.',
|
||||
playerSummaryTime: 'Listening time',
|
||||
playerListeningDayShort: '{{count}}d',
|
||||
playerListeningHourShort: '{{count}}h',
|
||||
playerListeningMinuteShort: '{{count}}m',
|
||||
playerSummarySessions: 'Sessions',
|
||||
playerSummaryTracks: 'Track plays',
|
||||
playerSummaryUniqueTracks: 'Unique tracks',
|
||||
playerSummaryDays: 'Days',
|
||||
playerPartialIndexNotice: 'Some servers are excluded from the local library index. Listening on those servers is not recorded in player statistics.',
|
||||
playerPartialIndexSettings: 'Library settings',
|
||||
playerSummaryCompletion: 'Full / partial',
|
||||
playerYearPrev: 'Previous year',
|
||||
playerYearNext: 'Next year',
|
||||
playerHeatmapLegend: 'Darker cells = more tracks played that day.',
|
||||
playerHeatmapLess: 'Less',
|
||||
playerHeatmapMore: 'More',
|
||||
playerDaySessions: '{{count}} sessions',
|
||||
playerDayTrackPlays: '{{count}} tracks',
|
||||
playerDayFullPartial: '{{full}} full · {{partial}} partial',
|
||||
playerRecentDaysTitle: 'Recent days',
|
||||
playerDayToday: 'Today',
|
||||
playerDayYesterday: 'Yesterday',
|
||||
playerListenedSecShort: '{{seconds}}s',
|
||||
playerListenedMinDecimal: '{{minutes}} min',
|
||||
completionFull: 'Full listen',
|
||||
completionPartial: 'Partial',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user