diff --git a/renderer.js b/renderer.js index 6aec3b2..b8b6a95 100644 --- a/renderer.js +++ b/renderer.js @@ -316,21 +316,21 @@ folders.forEach(folderObj => { return `${m}:${sec}`; } -async function updateContentList(folderObj) { - // 1. Commits Today (global) +async function updateInteractionBar(folderObj) { + // Commits Today const stats = await window.electronAPI.getDailyCommitStats(); const today = new Date().toISOString().slice(0, 10); const commitsToday = stats[today] || 0; - // 2. Globale Werte + // Globale Variablen (falls du sie irgendwo setzt) const intelligentCommitThreshold = window.intelligentCommitThreshold || 50; const minutesCommitThreshold = window.minutesCommitThreshold || 20; - // 3. Lines until next Rewrite + // Lines until next Rewrite const linesChanged = folderObj?.linesChanged || 0; const linesUntilRewrite = Math.max(0, intelligentCommitThreshold - linesChanged); - // 4. Time until next Rewrite + // Time until next Rewrite let countdown = "00:00"; if (folderObj?.firstCandidateBirthday) { const msThreshold = minutesCommitThreshold * 60 * 1000; @@ -339,12 +339,19 @@ async function updateContentList(folderObj) { countdown = formatCountdown(msLeft); } - // 5. Schreibe Werte ins UI - document.getElementById('contentList').innerHTML = ` -