From 45038c9b9633ab9665aac293332860b16d3133d9 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 20 Dec 2025 16:24:23 -0600 Subject: [PATCH] Allow easy navigating in address bar --- src/components/Shakespeare/PreviewPane.tsx | 1 + .../ui/browser-address-bar.test.tsx | 76 +++++++++++++ src/components/ui/browser-address-bar.tsx | 107 ++++++++++++++---- 3 files changed, 162 insertions(+), 22 deletions(-) diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index 2d832269..d3db507c 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -665,6 +665,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o currentPath={currentPath} onNavigate={hasBuiltProject ? navigateIframe : undefined} onRefresh={hasBuiltProject ? refreshIframe : undefined} + navigationHistory={navigationHistory} leftContent={( - )} +
+
+ + {onRefresh && ( + + )} + + {/* Navigation history dropdown */} + {showHistory && uniqueHistory.length > 0 && ( +
+ {uniqueHistory.map((path, index) => ( + + ))} +
+ )} +
{/* Extra content */}