From 17e6541f763990b40729c10e133a3b8b55ac54b6 Mon Sep 17 00:00:00 2001 From: GithubAnon0000 <160563432+GithubAnon0000@users.noreply.github.com> Date: Fri, 2 May 2025 23:55:50 +0200 Subject: [PATCH] ADD info string to explain what 'correct' means --- ftl/core/statistics.ftl | 1 + ts/routes/graphs/buttons.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ftl/core/statistics.ftl b/ftl/core/statistics.ftl index 0464e0f0b..0f7ddce16 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 = → 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 diff --git a/ts/routes/graphs/buttons.ts b/ts/routes/graphs/buttons.ts index 137c19d86..5c557f327 100644 --- a/ts/routes/graphs/buttons.ts +++ b/ts/routes/graphs/buttons.ts @@ -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})
${pressedStr}
${correctStr}`; + return `${button}: ${d.buttonNum} (${buttonText})
${pressedStr}
${correctStr} ${correctStrInfo}`; } svg.select("g.hover-columns")