feat(profile): statistics beside the profile, a review counting a minute at most

The Profile tab has two tabs, Profile and Statistics, the latter for
anonymous people too: the time studied in all, per day and the most in
one day, and by days, weeks or months the study time and the ratings as
bars, a tap on a bar saying what it holds. The app draws the charts
itself, as the Progress part's sparkline, rather than taking a chart
package.

A review's time was however long its card was shown: one left on the
screen over lunch counted as an hour of study. It now counts at most a
minute, as Anki does by default, here and in a studyset's Progress; the
stored durations stay as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-12 18:56:40 +02:00
commit b46dfe22b1
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -470,6 +470,33 @@
"exploreEmpty": "Studysets that others share will appear here.",
"profileTitle": "Profile",
"profileTabProfile": "Profile",
"profileTabStatistics": "Statistics",
"statisticsDays": "Days",
"statisticsWeeks": "Weeks",
"statisticsMonths": "Months",
"statisticsTotal": "In total",
"statisticsPerDay": "Per day",
"statisticsRecord": "Daily record",
"statisticsStudyTime": "Study time",
"statisticsMinutesInfo": "In minutes, each card counted for at most a minute",
"statisticsHoursInfo": "In hours, each card counted for at most a minute",
"statisticsRatings": "Ratings",
"statisticsRatingsInfo": "How you rated the flashcards you studied",
"statisticsRated": "{count, plural, =0{No cards rated} =1{1 card rated} other{{count} cards rated}}",
"@statisticsRated": {
"placeholders": {
"count": {"type": "int"}
}
},
"statisticsToday": "Today",
"statisticsWeekOf": "Week of {date}",
"@statisticsWeekOf": {
"placeholders": {
"date": {"type": "String"}
}
},
"statisticsNothingYet": "Nothing studied yet. Your study time and ratings show here once you study flashcards.",
"profileSettingsTooltip": "Settings",
"profileIdentified": "Your progress is kept with your account.",
"profileAnonymous": "Progress is saved on this device. Sign in to keep it.",
@ -1962,7 +1989,7 @@
"progressDueToday": "{count, plural, =1{card due today} other{cards due today}}",
"@progressDueToday": {"placeholders": {"count": {"type": "int"}}},
"progressStudyTime": "Study time",
"progressStudyTimeInfo": "How long you studied this studyset's flashcards on this device in the last seven days.",
"progressStudyTimeInfo": "How long you studied this studyset's flashcards in the last seven days, each card counted for at most a minute.",
"progressThisWeek": "this week",
"progressMinutes": "{minutes} min",
"@progressMinutes": {"placeholders": {"minutes": {"type": "int"}}},