Skip to content

Commit ce14cc7

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
chore: Add debug border and logs to investigate Studio Mode visibility
1 parent cadce7c commit ce14cc7

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/App.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,15 @@ function App() {
294294

295295
// --- Session Recorder ---
296296
// --- Session Recorder ---
297+
/* eslint-disable react-hooks/exhaustive-deps */
297298
const handlePlaybackStateChange = useCallback((state: any) => {
298299
// The recorded state is "multiViewState" { viewMode, viewports: [] }
299-
if (!state || !state.viewports || !state.viewports[0]) return;
300+
if (!state || !state.viewports || !state.viewports[0]) {
301+
console.warn("Playback: Invalid state or missing viewports", state);
302+
return;
303+
}
304+
305+
console.log("Playback: Applying State", state.viewports[0].pdbId);
300306

301307
const vpState = state.viewports[0];
302308
const ctrl = controllers[0];
@@ -337,6 +343,7 @@ function App() {
337343
}, [controllers, viewMode]);
338344

339345
const handlePlaybackCameraChange = useCallback((orientation: any) => {
346+
// console.log("Playback: Camera Update", orientation);
340347
if (viewerRefs[0].current) viewerRefs[0].current.setOrientation(orientation);
341348
}, []);
342349

src/components/StudioLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const StudioLayout: React.FC<StudioLayoutProps> = ({ recorder, onExit, ex
140140
</div>
141141

142142
{/* VISUAL AREA (The hole) */}
143-
<div className="flex-1 relative">
143+
<div className="flex-1 relative border-4 border-red-500 bg-transparent">
144144
{/* Floating Transport Controls */}
145145
<div className="absolute bottom-6 left-1/2 -translate-x-1/2 bg-neutral-900/80 backdrop-blur-md rounded-full px-4 py-2 flex items-center gap-4 text-white pointer-events-auto border border-white/10 shadow-2xl z-50">
146146
<span className="text-xs font-mono ml-2">{formatTime(playbackTime)}</span>

0 commit comments

Comments
 (0)