diff --git a/ftl/core/statistics.ftl b/ftl/core/statistics.ftl index 0464e0f0b..c3a2bb613 100644 --- a/ftl/core/statistics.ftl +++ b/ftl/core/statistics.ftl @@ -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 = → (not 'Again') # the emoji depicts the graph displaying this number statistics-hours-reviews = 📊 { $reviews } reviews # the emoji depicts the graph displaying this number diff --git a/ts/routes/graphs/buttons.ts b/ts/routes/graphs/buttons.ts index 565ec492a..606380590 100644 --- a/ts/routes/graphs/buttons.ts +++ b/ts/routes/graphs/buttons.ts @@ -222,8 +222,23 @@ 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)}`; - return `${button}: ${d.buttonNum}
${pressedStr}
${correctStr}`; + + let buttonText: string; + if (d.buttonNum === 1) { + buttonText = tr.studyingAgain(); + } else if (d.buttonNum === 2) { + buttonText = tr.studyingHard(); + } else if (d.buttonNum === 3) { + buttonText = tr.studyingGood(); + } else if (d.buttonNum === 4) { + buttonText = tr.studyingEasy(); + } else { + buttonText = ""; + } + + return `${button}: ${d.buttonNum} (${buttonText})
${pressedStr}
${correctStr} ${correctStrInfo}`; } svg.select("g.hover-columns")