diff --git a/network-poc/static/index.html b/network-poc/static/index.html
index 0f32e34..11035cf 100644
--- a/network-poc/static/index.html
+++ b/network-poc/static/index.html
@@ -2156,22 +2156,17 @@ IMPORTANT: Include get_db() dependency for FastAPI` },
const truncOut = (output || '').substring(0, 200).replace(/\n/g, ' ');
el.title = `${label}\n${status === 'active' ? '⏳ Käsittelee...' : '✓ Valmis'}\n\nInput: ${(input || '').substring(0, 100)}...\nOutput: ${truncOut}...`;
- // Vilahdus: avatar aktiiviseksi vuoron ajaksi
+ // Avatar-aktivointi: syttyy vuoron alussa, sammuu lopussa
if (status === 'active') {
document.querySelectorAll('.avatar-card').forEach(c => c.classList.remove('active'));
el.classList.add('active');
- // Gallery-head samoin
- const galleryMap = { manager: 'wrap-manager', coder: 'wrap-coder', tester: 'wrap-tester', qa: 'wrap-qa', data: 'wrap-data' };
document.querySelectorAll('.gallery-head-wrap').forEach(w => w.classList.remove('active'));
- const gw = document.getElementById(galleryMap[agent]);
+ const gw = document.getElementById('wrap-' + agent);
if (gw) gw.classList.add('active');
} else if (status === 'done') {
- // Pidetään aktiivisena vielä sekunnin, sitten pois
- setTimeout(() => {
- el.classList.remove('active');
- const gw = document.getElementById('wrap-' + agent);
- if (gw) gw.classList.remove('active');
- }, 1000);
+ el.classList.remove('active');
+ const gw = document.getElementById('wrap-' + agent);
+ if (gw) gw.classList.remove('active');
}
}
}
@@ -2839,6 +2834,10 @@ ${fixableFiles}`;
const reportBlob = new Blob([reportHtml], { type: 'text/html' });
const reportUrl = URL.createObjectURL(reportBlob);
+ // Pipeline valmis — sammutetaan kaikki avataret
+ document.querySelectorAll('.avatar-card').forEach(c => c.classList.remove('active'));
+ document.querySelectorAll('.gallery-head-wrap').forEach(w => w.classList.remove('active'));
+
termLog(`\n━━━ Pipeline valmis (${Object.keys(generatedFiles).length} tiedostoa) ━━━`);
termLog(` 📄 Avaa projektiraportti`);
renderProjectCard(generatedFiles, task, reportUrl);
@@ -3827,26 +3826,7 @@ ${filesHtml}
term.scrollTop = term.scrollHeight;
}
- // Avatar-aktivointi vain oikeille käyttäjäpyynnöille (task_id)
- if (data.task_id) {
- document.querySelectorAll('.avatar-card').forEach(c => c.classList.remove('active'));
- const model = data.model || '';
- const p = data.prompt ? data.prompt.toLowerCase() : '';
-
- if (p.includes('tiiminvetäjä') || p.includes('pilko')) {
- document.getElementById('avatar-kpn')?.classList.add('active');
- } else if (p.includes('arvioi seuraava koodi') || p.includes('ohjelmiston julkaisu')) {
- document.getElementById('avatar-tester')?.classList.add('active');
- } else if (p.includes('tervehdi')) {
- document.getElementById('avatar-client')?.classList.add('active');
- } else if (p.includes('test')) {
- document.getElementById('avatar-qa')?.classList.add('active');
- } else if (model.includes('coder') || model.includes('Coder')) {
- document.getElementById('avatar-coder')?.classList.add('active');
- } else if (model.includes('deepseek') || model.includes('r1')) {
- document.getElementById('avatar-observer')?.classList.add('active');
- }
- }
+ // Avatar-aktivointi hoidetaan pipelineStep()-funktiossa
}
}
} catch(e) {}