Skip to content

Feat broadcast - #53

Merged
pod-III merged 12 commits into
mainfrom
feat-broadcast
Jun 29, 2026
Merged

Feat broadcast#53
pod-III merged 12 commits into
mainfrom
feat-broadcast

Conversation

@pod-III

@pod-III pod-III commented Jun 29, 2026

Copy link
Copy Markdown
Owner

No description provided.

pod-III added 12 commits June 28, 2026 14:13
…-window sync

Document standardized pattern from Arcane VTT Map for implementing player-view features across KlassKit tools, include architecture overview with Host/Player roles and state-update/player-ready message flow, define setup constants (BROADCAST_CHANNEL/IS_PLAYER_WINDOW/bc), implement throttled broadcastState with 60fps cap and delta-optimized payloads, add asset cache tracking to avoid re-sending images, document Player-
…A button

Replace "Player View" terminology with "Student View" throughout UI and code, move Open Student View button from navbar icon to prominent full-width CTA below header with green btn-chunky styling and monitor icon, update window title to "Student View | Flashcard Displayer", change window name to fc-play-student-view, update toolbar label and loading message to "Connecting to teacher...", and maintain all BroadcastChannel functionality
…or find-the-ball

Add Open Student View button to control panel with green btn-chunky styling and monitor icon, implement BroadcastChannel pattern with throttled state broadcasting (60fps cap) including cup transforms/transitions/z-index/lifted states and ball visibility, sync gameState scalars (cupCount/ballCount/isShuffling/isPlaying/ballPositions/selectedCupIndex/selectedBgIndex/ballColorIndex/foundBallsCount) with rebuild detection
…or crossword, hangman, and unscramble

Add Open Student View buttons to control panels with green btn-chunky styling and monitor icons, implement BroadcastChannel pattern with throttled state broadcasting (60-100fps cap) for crossword (cell values/locked states/puzzle config), hangman (word state/guessed letters/player health/scores/turn mode/round progress), and unscramble (scrambled/revealed states/mode/item progress), sync UI
Prevent unnecessary full puzzle broadcasts in crossword by tracking puzzle identity (rows×cols:wordCount) and only sending puzzle object when it changes, avoiding full DOM rebuilds on every keystroke in student view. Add clue-item solved state sync in student window based on locked cells since checkCurrentWordCompletion never runs there. Simplify round display logic to always count solved clues. Fix jumpToNextCell/jumpToPrevCell loop
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
klasskit Ready Ready Preview, Comment Jun 29, 2026 4:22am

@pod-III
pod-III merged commit da021ff into main Jun 29, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant