From 74c0be9d5d02e9da37d399a4941f0beeb035696e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 28 Dec 2025 18:00:01 -0600 Subject: [PATCH] Move branch selector into Code section --- src/components/Shakespeare/PreviewPane.tsx | 54 ++++++++++------------ src/pages/ProjectView.tsx | 10 +--- 2 files changed, 26 insertions(+), 38 deletions(-) diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index 49ed6ab7..9b96cec1 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -13,6 +13,7 @@ import { Button } from '@/components/ui/button'; import { FolderOpen, ArrowLeft, Bug, Copy, Check, Loader2, Code, X, Terminal, Expand, Shrink, Hammer } from 'lucide-react'; import { useIsMobile } from '@/hooks/useIsMobile'; import { GitStatusIndicator } from '@/components/GitStatusIndicator'; +import { BranchSwitcher } from '@/components/BranchSwitcher'; import { BrowserAddressBar } from '@/components/ui/browser-address-bar'; import { type DeviceMode } from '@/components/ui/device-toggle'; import { @@ -730,8 +731,24 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable {isMobile ? (
+ {/* Mobile Code view header */} +
+ +
+ + +
+ {mobileCodeView === 'explorer' ? ( -
+
@@ -742,35 +759,11 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable />
- {/* Floating Terminal Button */} -
) : mobileCodeView === 'terminal' ? ( - <> -
- -

- Terminal -

-
-
- -
- +
+ +
) : ( <>
@@ -822,7 +815,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
{/* Code view header with back button */} {!isMobile && onToggleView && isPreviewable && ( -
+
+
)} {/* Code view header without back button for non-previewable projects */} {!isMobile && !isPreviewable && (
+
@@ -459,11 +453,10 @@ export function ProjectView() {
- {/* Right side - Branch, Deploy and Sync buttons */} + {/* Right side - Deploy and Sync buttons */}
{project ? ( <> - - )}