Add Multi-Camera Workspace overlay with draggable grid and multiplexed camera streams#8
Draft
Add Multi-Camera Workspace overlay with draggable grid and multiplexed camera streams#8
Conversation
Co-authored-by: daohu527 <10419854+daohu527@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Design multi-camera workspace component for Apollo Dreamview
Add Multi-Camera Workspace overlay with draggable grid and multiplexed camera streams
Feb 26, 2026
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.
Dreamview lacked a way to view multiple camera topics simultaneously. This adds a full-screen overlay workspace that supports per-topic camera streams in a draggable/resizable grid, with clean enter/exit lifecycle transitions.
New components
MultiCameraWorkspace(src/components/MultiCameraWorkspace/index.js) — Full-screen overlay built onreact-grid-layout. HandlesonEnter(savesshowPointCloudstate, disables 3D rendering, subscribes to topics) andonExit(unsubscribes, restores 3D rendering). Dismisses on Escape key. Grid width tracks window resize via@observable windowWidth.CameraCard— Per-stream tile rendering topic name, live<img>(declarative, React-managed), and a Close button. Closing the last card automatically exits the workspace.MultiCameraWorkspaceStore(src/store/multi_camera_workspace.js) — MobX store exposingopen(topics),close(),toggleWorkspace(topics),addTopic,removeTopic.Data stream multiplexing
MultiTopicSubscriber(src/store/websocket/websocket_multi_camera.js) wraps the existingCAMERA_WSand sends a single batch message for all selected topics:Backend message protocol:
SubscribeToTopics{ type, data: { topics[] } }UnsubscribeFromTopics{ type, data: { topics[] } }{ topic, image }JSON on the camera WebSocket.Wiring
DreamviewStoregains@observable multiCameraWorkspace = new MultiCameraWorkspaceStore().Dreamview.jsconditionally renders<MultiCameraWorkspace />whenmultiCameraWorkspace.isOpen.react-grid-layout@^1.4.4added as a dependency (no known vulnerabilities).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
registry.npmmirror.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/npm install(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.