Repository navigation
New feature: listening statistics and trophies - #172
Open
NicolasHartmann wants to merge 10 commits into
Open
NicolasHartmann wants to merge 10 commits into
NicolasHartmann wants to merge 10 commits into
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…hies Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Reaching the end only counts as finishing a book while playing and after at least a minute of listening to it; seeking to the end no longer unlocks Finisher or Sprint - Library count uses the whole library, not the list a search or filter is currently showing - Opening the trophies page stores and announces tiers reached without playback, so Collector cannot fall back when the library shrinks - Flush listening time when the app exits from the mini player Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Every seek interrupts the listening count, so short forward jumps (a nearby Read Along word) no longer add listening time - Newly reached trophy tiers are saved in one transaction - A stats.db that keeps failing is logged once per outage, and the time waiting to be saved is merged instead of growing with each flush - Sprint counts each audiobook once per 7-day window - Trophies show what the library alone earned when the history cannot be read - Trophies page shows only the latest of several quick reloads; both pages log instead of throwing when a reload fails Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
New feature: listening statistics and trophies
Audibly now records how long you listen and shows it on two new pages in the navigation menu: Statistics and Trophies.
Statistics
Trophies
14 trophies, each with a bronze, silver and gold tier. A locked trophy is shown as an outline. Clicking a trophy shows the goal of the next tier and the progress towards it. When a tier is reached while listening, the app shows a notification.
The numbers in the screenshots are sample data.
How it works
stats.db, in the app's local folder. The library database and its migrations are not touched.What changes in the project
Audibly.Statswith all the logic, andAudibly.Stats.Testswith 85 xunit tests. This is the first test project in the solution; I am happy to drop it from the PR if you prefer.Microsoft.Data.Sqlite(inAudibly.Statsonly).AppShell, and a few calls inPlayerViewModelthat report position, pause and seek.Testing
dotnet test Audibly.Stats.Tests: 85 passed.PlayerViewModelhad to be placed by hand, because the file differs from that build; I have not run this exact branch.This PR is independent of my other open PRs.
🤖 Generated with Claude Code