Repository navigation
refactor(room): deduplicate room and controls helpers - #76
Merged
Merged
Conversation
Quest-Claim: 565e6f3a9bb94c99
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… math Reading the camera tile's level lit the mic button for memes and notifications with the mic off, and left no meter without WebGL2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
marked this pull request as ready for review
November 27, 2026 02:42
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Keeps #69's OBS fallback name inside the shared overlay placement and passes the broadcast path through the generic Space.add. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finishes
quest/m1/dedupe-room-helpers.md.Problem
Room overlays, renderers, settings, and controls each wrote the same logic several times, and the tile sources carried placeholder signals that only existed to satisfy the
BroadcastSourceunion.Approach
Duplicate counts were re-checked against current
main(after #63, #64, #68, #74):Canvas.page(bounds)plusBroadcast.overlay(effect, root, place), which also owns the z-index each overlay set.Name,Chat,Debug(andCursor) readbroadcast.canvas.space.tshover swap, z bump, point-in-bounds#hover,Gesture.Stack.raise,Bounds.contains) since #63#release.fade(active, since, now)incanvas.ts.Deformationingl/shader.ts;createAttributereturns the location number.index.tscamera/screen and locator effectsspace.addis generic, so no casts.BroadcastSourceplaceholderscatalog/target/activefromHangLocalSourceandFakeBroadcast,sourcefromWatchBroadcastandFakeBroadcast; the share's sources are computeds instead of a cast-and-set.room/preview/preview.tsxuses@moq/room'sRoomdirectly.controls.tsx+ 1 inmeme-selector.tsxonClickOutside(inside, close)inutil/solid.ts; the meme selector's 100 ms timer is gone.VisualizeRMS meterroom/audio.tslevel(previous, magnitudes)fromroom/audio.ts; the meter still reads the microphone capture.effect.subscribeblockspersisted(key, parse); gain reusesSpeaker.validVolume.Audio,PannedSound)steer(effect, panner, pan)insound.ts.Net: about 430 fewer lines.
Decisions
Taken while the maintainer was away; each is easy to flip.
onClicktodocument, sostopPropagationcannot stop adocumentlistener; a capture listener added during the opening click never sees it, and checks the target before a handler re-renders it away (the reason the mobile collapse already used capture).onClickcloses it and whose panel stops propagation, plus an Escape key handler; that is not the document-level click-outsideonClickOutsidereplaces, and it persists nothing, so folding it in would not remove code. Merging main only moved its OBS fallback name intoName's sharedoverlayplacement and passed the tile'spaththrough the genericSpace.add.quest/m2/e2ee-rooms.mdpointer (nowPreviewRoominapp/src/preview.tsx); left the mobile section staying collapsed after a narrow-wide-narrow resize with an outside click in between (rare, and collapsing is harmless) and deriving the gain slider's bounds fromSpeaker.VOLUME_RANGE(the bounds match today).Impact
No public API or wire change: everything touched is app-internal. Stored settings keep the same keys and formats, so older and newer tabs read each other's values.
Validation
tsc --noEmit,biome check,bun run --cwd app test(79 pass),quest check, andfallow dead-code --unused-depspass locally.fallow dead-codewith build: gate unused files, exports, and types with fallow #73's config shows nothing new from this branch (its other findings are fixed onmainby build: gate unused files, exports, and types with fallow #73).quest gate just checkpasses (quest check,fallow dead-code, tsc, Biome, API 46, app 86, and media 4 tests), andbun fallow dead-codereports no issues. The merged name fallback was not rechecked in a live room.test:mediadid not run locally before the merge (the host is loaded); CI covers it.just devwith two Chrome sessions on one room, fake camera and mic: the pre-join "Hanging Now" roster counted the other peer (@moq/roomRoom); the profile and in-room mic meters peaked on the fake beep (rechecked on/homeafter the meter fix, transparent again with the mic off); tiles drew with the drag wobble; the name overlay, chat bubble, "YOU" locator, and Debug HUD sat on their tiles and followed a peer drag; a cross-browser drag moved the other peer's tile; screen share added a raised tile with its locator and removed it on stop; the settings modal, microphone menu, and meme selector closed on outside clicks, stayed open on inside clicks (an emoji insert), and the meme toggle opened and closed it. No console errors.Follow-ups
None.
Models
Size: M
Implementer: Claude Code, claude-opus-5-5, high
Implementer: Claude Code, claude-opus-5-5, high effort (iterate, S)
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with high effort)
Review
Rewritten by
quest reviewafter each round.Head: d79025d
Base: origin/main at 6a46972
Risk: medium,
it adds to plans under quest/, which agents start without a person reading themClassified: medium by default
Risk file: none
Reviewer: Codex, gpt-6.2-sol, high effort
Session:
01a21b17-230e-7253-a29f-08faf6ee0157, round 2Score: 10/10,
The only change since the last review updates the encrypted-room plan to point to `PreviewRoom` in `app/src/preview.tsx`, and the head is ready to land.Rounds: 4; first round 1 (medium 1); findings 1 (medium 1): fixed 1, refuted 0, open 0
Findings: none