Tag-Ansicht: pausierte Zeiten bleiben als Verlauf stehen (verschwinden nicht mehr)

live-client loggt Pausen-Spannen (__pauseSpans: {s,e}), live.php reicht sie durch,
renderLiveSummary zeichnet jede als bleibendes halbhohes Segment im Tag-Balken
(offene/laufende Pause blinkt). Fallback fuer Sim-Pause via phase bleibt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-23 12:53:07 +02:00
parent 0d765961af
commit 0d9481cae2
3 changed files with 33 additions and 4 deletions
+2
View File
@@ -373,6 +373,8 @@ if ($method === 'GET') {
'isLive' => true,
'paused' => $isPaused,
'activeUntilMs'=> ($activeUntil > $startMs && $activeUntil < $endMs) ? $activeUntil : 0,
// Pausen-Verlauf (bleibt im Tag-Balken stehen, auch nach dem Fortsetzen).
'pauseSpans' => (isset($state['__pauseSpans']) && is_array($state['__pauseSpans'])) ? array_slice($state['__pauseSpans'], -30) : [],
];
$byStudent[$sid]['totalSec'] += $durSec;
}