From 611e1ee33d2177055f496b72082ca3a04f99eb34 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 10 Apr 2026 23:54:55 +0200 Subject: [PATCH] Add GT badge to grouped sessions and sub-pages in session list The GT badge was only shown on ungrouped SessionRow items. Now also visible on document group rows (e.g. "GT 1/2") and individual pages within expanded groups. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/ocr-kombi/SessionList.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/admin-lehrer/components/ocr-kombi/SessionList.tsx b/admin-lehrer/components/ocr-kombi/SessionList.tsx index c70be09..84795c7 100644 --- a/admin-lehrer/components/ocr-kombi/SessionList.tsx +++ b/admin-lehrer/components/ocr-kombi/SessionList.tsx @@ -150,9 +150,16 @@ function GroupRow({ {group.page_count} Seiten - - Dokument - +
+ {group.sessions.some(s => s.is_ground_truth) && ( + + GT {group.sessions.filter(s => s.is_ground_truth).length}/{group.sessions.length} + + )} + + Dokument + +
{expanded && ( @@ -179,6 +186,9 @@ function GroupRow({ /> S. {s.page_number || '?'} + {s.is_ground_truth && ( + GT + )} Step {s.current_step}