27 Commits

Author SHA1 Message Date
MacBook c9cf7c49dc Fix logic flaws and update documentation 2026-05-01 06:06:46 +02:00
Timo 55c2d4ed0d feat: Auto-Sync Next Episode v1.2.0
Adds a new toggleable feature that detects episode transitions via
mediaTitle mutation (loadeddata/MutationObserver), pauses the video,
and waits for all room peers to load the same episode before
executing a coordinated Force Sync play at 0:00.

Protocol:
- Add EPISODE_LOBBY and EPISODE_READY events to shared/constants.js
- Add EPISODE_LOBBY_TIMEOUT (60s) constant
- Relay both new events in server/index.js

Content Script (content.js):
- Layered detection: loadeddata + MutationObserver src-change + heartbeat
- Debounced onEpisodeTransition() sends signal ONLY; no eager pause
- PAUSE_FOR_LOBBY handler pauses only after background confirms feature enabled
- startLobbyPoll() polls title match without premature pause for non-initiators
- checkAndReportLobbyReady() pauses and sends EPISODE_READY_LOCAL on match
- CONTENT_BOOT recovery for re-injection after hard navigation

Background (background.js):
- Episode lobby state persisted in chrome.storage.session with recovery
- EPISODE_CHANGED: checks setting, creates lobby, sends PAUSE_FOR_LOBBY to tab
- EPISODE_LOBBY/READY server event handlers with dedup logic
- 60s timeout cancels lobby (Option B) with Chrome failure notification
- Peer departure handled: removes from readyPeers, re-checks completion
- executeEpisodeLobby() reuses existing Force Sync pipeline at targetTime 0.0
- Lobby cleared on LEAVE_ROOM; status exposed in GET_STATUS

Popup:
- Auto-Sync Next Episode toggle in Settings tab (default: off, opt-in)
- Episode Lobby status card in Sync tab with peer readiness display
- LOBBY_UPDATE message handler for real-time UI updates

Bumps APP_VERSION and manifest to 1.2.0
2026-04-25 16:43:10 +02:00
Timo 02afc193c6 fix: extend input sanitization to relay path and remove whitespace artefact 2026-04-25 16:17:16 +02:00
Timo 7fc156977a feat: add graceful shutdown, input validation, and peer data factory (Phase 3) 2026-04-25 16:15:11 +02:00
Timo 99cb07bc2a refactor: centralize room cleanup logic to fix DRY violation (H-1) 2026-04-25 16:12:51 +02:00
Timo 77ffda3e42 fix: address phase 1 audit findings (xss, cors, dead code) 2026-04-25 16:10:20 +02:00
Timo 7417c21217 feat: enhance peer list with volume icons, play/pause status, and time interpolation (v1.1.3) 2026-04-25 03:47:57 +02:00
MacBook 67f872ffd2 feat(sync): implement end-to-end media title synchronization 2026-04-22 18:29:53 +02:00
Timo 2aef9a1ffc fix: v1.0.5 stability hotfixes (ACK security and event jitter) 2026-04-22 13:55:57 +02:00
Timo 622db23f38 style: restore classic remote control UI and sync architectural fixes 2026-04-22 13:32:10 +02:00
Timo 901b97dcaf fix: implement timestamp correlation for visual ACKs 2026-04-22 12:23:17 +02:00
Timo 221961820a feat: implement visual confirmation system and redesigned Sync tab 2026-04-22 12:20:32 +02:00
Timo 1910b09bce fix: ensure username and tab title are sent and stored on initial join 2026-04-22 12:13:33 +02:00
Timo 9f004557ed fix: resolve peer isolation and invitation link sync issues 2026-04-22 12:10:26 +02:00
Timo 830f8c44b1 fix: implement background heartbeats and aggressive server-side peer pruning 2026-04-22 11:51:29 +02:00
Timo 51a5f43130 feat: add username support and fix invitation link server parsing 2026-04-22 11:22:31 +02:00
Timo 9a2ccd27ca fix: resolve duplicate peerList IDs and refine server deduplication emission 2026-04-22 11:18:32 +02:00
Timo e410fc48c8 fix: resolve ghost peer duplication and service worker state persistence issues 2026-04-22 11:10:31 +02:00
Timo 15afcccd0a Fix memory leak and unhandled promise rejection in service worker 2026-04-22 10:49:35 +02:00
Timo 643c70772e chore(core): Integration and UX Polish fixes 2026-04-22 10:44:31 +02:00
Timo 0b28274766 Fix: Service Worker persistence, Ping-Pong failsafe, URL parsing, and server rate limit DoS 2026-04-22 10:31:46 +02:00
Timo d750d96db5 Fix security vulnerabilities and logic flaws 2026-04-22 10:04:46 +02:00
Timo 3ec10a52e4 Refactor: Comprehensive Security and Architecture Audit (Self-Audit Fixes) 2026-04-22 09:53:26 +02:00
Timo 37ead94f76 Refactor: Comprehensive Security and Architecture Audit 2026-04-22 09:49:23 +02:00
Timo 5cfc9d4047 Stable state before Final Polish optimizations 2026-04-22 08:56:52 +02:00
MacBook 3e2e9ed7a5 feat: production-ready release v1.0.0
- Integrated 'Koala-Bridge' for seamless web-to-extension communication.
- Implemented dedicated, minimalist invitation page (join.html).
- Added brute-force protection and RAM-cleanup to the relay server.
- Removed external fonts and trackers from the landing page (Privacy First).
- Unified header/footer design across all website pages.
- Added MIT License and comprehensive legal documentation (Impressum/Datenschutz).
2026-04-21 08:46:28 +02:00
MacBook 14033244e5 Initial commit: Production-ready KoalaSync Monorepo with Manifest V3, Socket.IO Relay, and Two-Phase Sync 2026-04-21 07:49:37 +02:00