From fc8142a131f0273d2257ca0927a010087c035de4 Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Tue, 4 Aug 2026 11:24:38 +0200 Subject: [PATCH 1/2] feat: display total percentage --- app/evaluation/[days]/[...ical-link]/page.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/evaluation/[days]/[...ical-link]/page.tsx b/app/evaluation/[days]/[...ical-link]/page.tsx index e717b0c..3a5e75e 100644 --- a/app/evaluation/[days]/[...ical-link]/page.tsx +++ b/app/evaluation/[days]/[...ical-link]/page.tsx @@ -108,6 +108,7 @@ export default async function EvaluationPage({ params }: PageProps) { Kategorie Dauer Anteil + Insg. Anteil @@ -120,6 +121,9 @@ export default async function EvaluationPage({ params }: PageProps) { {total > 0 ? Math.round((minutes / total) * 1000) / 10 : 0}% + + {total > 0 ? Math.round((minutes / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}% + ))} @@ -130,6 +134,9 @@ export default async function EvaluationPage({ params }: PageProps) { {Math.floor(total / 60)} Std. {Math.round(total % 60)} Min. ({Math.round(total)} Min. gesamt) 100% + + {total > 0 ? Math.round((total / (daysToFetch * 24 * 60)) * 1000) / 10 : 0}% + @@ -190,7 +197,6 @@ export default async function EvaluationPage({ params }: PageProps) { display: 'inline-block', background: '#white', border: '1px solid #e5e7eb', - color: 'black', padding: '2px 8px', borderRadius: '4px', fontSize: '0.85rem', -- 2.54.1 From f19babaa681e2e20e37fac63c18e84a907721bfc Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Tue, 4 Aug 2026 11:30:18 +0200 Subject: [PATCH 2/2] style: adjust formats in UI --- app/evaluation/[days]/[...ical-link]/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/evaluation/[days]/[...ical-link]/page.tsx b/app/evaluation/[days]/[...ical-link]/page.tsx index 3a5e75e..bd1b18c 100644 --- a/app/evaluation/[days]/[...ical-link]/page.tsx +++ b/app/evaluation/[days]/[...ical-link]/page.tsx @@ -116,7 +116,7 @@ export default async function EvaluationPage({ params }: PageProps) { {category} - {Math.floor(minutes / 60)} Std. {Math.round(minutes % 60)} Min. ({Math.round(minutes)} Min. gesamt) + {Math.floor(minutes / 60)}:{Math.round(minutes % 60)}h (={Math.round(minutes)} min) {total > 0 ? Math.round((minutes / total) * 1000) / 10 : 0}% @@ -131,7 +131,7 @@ export default async function EvaluationPage({ params }: PageProps) { Total - {Math.floor(total / 60)} Std. {Math.round(total % 60)} Min. ({Math.round(total)} Min. gesamt) + {Math.floor(total / 60)}:{Math.round(total % 60)}h (={Math.round(total)} min) 100% -- 2.54.1