5ba854dd5a3b5295360394481436c69dc178e6e4
This commit fixes the initial v0.9.15 implementation to match the actual vision: CORRECTED BEHAVIOR: - User interaction PAUSES rotation on that site - After 1 minute of inactivity → popup appears - Popup gives options: extend time or return to rotation - No response (15 sec) → auto-return to rotation - Works on ALL sites including home URL - Media playback blocks popup and rotation KEY FIXES: 1. Removed wrong "popup on first interaction" logic 2. Restored userInteractedWithCurrentSite flag (removed in v0.9.14) 3. markActivity() now sets interaction flag instead of showing popup 4. Rotation blocked when userInteractedWithCurrentSite=true 5. Inactivity check works on ANY site where user interacted (not just home or manualNavigationMode) 6. Changed default timeout from 2 minutes to 1 minute 7. Prompt response clears interaction flag on "return to rotation" 8. Extension expiry clears interaction flag to resume rotation 9. Updated all bash script defaults from 120s to 60s TECHNICAL CHANGES: - Line 3639: Changed popupShownForCurrentSite → userInteractedWithCurrentSite - Line 3706-3711: Set flag in markActivity() instead of showing popup - Line 3937: Block rotation if userInteractedWithCurrentSite - Line 3947-3989: Simplified inactivity check - works on ANY interacted site - Line 3651: Default timeout 60000ms (was 120000ms) - Line 3671: Config default 60s (was 120s) - Line 3970: Clear flag when extension expires - Line 4078: Reset flag when site changes - Line 4179, 4197: Clear flag on return to rotation - Bash section: Updated all 120s→60s, 2min→1min defaults This matches the original vision: rotation pauses on interaction, popup after inactivity gives control, auto-return prevents stuck kiosk.
Languages
Shell
94.1%
JavaScript
4.7%
HTML
0.9%
CSS
0.3%