ADD info string to explain what 'correct' means

This commit is contained in:
GithubAnon0000 2025-05-02 23:55:50 +02:00
parent 95bb1cfdef
commit 17e6541f76
2 changed files with 3 additions and 1 deletions

View file

@ -229,6 +229,7 @@ statistics-stability-day-single =
# hour range, eg "From 14:00-15:00"
statistics-hours-range = From { $hourStart }:00~{ $hourEnd }:00
statistics-hours-correct = { $correct }/{ $total } correct ({ $percent }%)
statistics-hours-correct-info = → pressed "hard", "good", or "easy"
# the emoji depicts the graph displaying this number
statistics-hours-reviews = 📊 { $reviews } reviews
# the emoji depicts the graph displaying this number

View file

@ -222,6 +222,7 @@ export function renderButtons(
const button = tr.statisticsAnswerButtonsButtonNumber();
const timesPressed = tr.statisticsAnswerButtonsButtonPressed();
const correctStr = tr.statisticsHoursCorrect(totalCorrect(d.group));
const correctStrInfo = tr.statisticsHoursCorrectInfo();
const pressedStr = `${timesPressed}: ${totalPressedStr(d)}`;
let buttonText: string;
@ -235,7 +236,7 @@ export function renderButtons(
buttonText = tr.studyingEasy();
}
return `${button}: ${d.buttonNum} (${buttonText})<br>${pressedStr}<br>${correctStr}`;
return `${button}: ${d.buttonNum} (${buttonText})<br>${pressedStr}<br>${correctStr} ${correctStrInfo}`;
}
svg.select("g.hover-columns")