fix: QA report BUG-01 to BUG-12 full resolution - demo switcher, AI tutor stream, timeline alignment, cbt filtering, danger styling, streak celebration

This commit is contained in:
2026-09-19 22:53:58 +05:30
parent 45f2f82eaf
commit 5c6ddcaca0
9 changed files with 459 additions and 273 deletions

View File

@@ -376,8 +376,9 @@
function play(){
clearTimeout(countTimer); clearTimeout(moodTimer); cancelAnimationFrame(countRAF); stopFw();
const target=parseTarget();
const sad = target<=2;
const t = sad ? 0 : Math.min(1, Math.log10(Math.max(target,3)/3)/3); // 5→0 … 5000+→1
// BUG-11 fix: Positive streaks (>=1) should always be celebratory, never sad
const sad = target < 0;
const t = sad ? 0 : Math.min(1, Math.log10(Math.max(target, 1) + 1) / 2.5); // Smooth positive scaling
// set mood + intensity
stage.classList.remove('play','happy','sad','tier1','tier2','tier3'); body.classList.remove('sad');