Skip to content

Commit 022d4c6

Browse files
committed
v2.28 - Fix Block-lab Routes
1 parent cafcbaa commit 022d4c6

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/app/session/SessionPageClient.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ function SessionRouteContent() {
211211
feedback: "/feedback",
212212
settings: "/settings",
213213
profile: "/profile",
214+
"block-lab": "/block-lab",
214215
}
215216
if (STATIC_ROUTES[view]) {
216217
router.push(STATIC_ROUTES[view])

frontend/src/components/app/AppContentRouter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export function AppContentRouter() {
282282
const demoSession = demoSessions[demoId] ?? (demoId === "demo-structure" ? DUMMY_BLOCK_SESSION : undefined)
283283
if (demoSession) return <SessionView initialSession={demoSession} conversationId={demoSession.id} onRenameToSidebar={renameConversation} onDeleteToSidebar={deleteConversation} />
284284
}
285-
if (effectiveView.startsWith("block-")) return <BackendBlockSessionView key={effectiveView} sessionId={effectiveView.replace("block-", "")} />
285+
if (effectiveView.startsWith("block-") && effectiveView !== "block-lab") return <BackendBlockSessionView key={effectiveView} sessionId={effectiveView.replace("block-", "")} />
286286
if (effectiveView.startsWith("chat-")) return <ChatSessionView chatId={effectiveView.replace("chat-", "")} />
287287
return <GuidedSessionView key={resetKey} initialPrompt={initialPrompt} onPromptConsumed={clearInitialPrompt} />
288288
}, [effectiveView, resetKey, initialPrompt, clearInitialPrompt, handleSessionComplete, demoSessions, renameConversation, deleteConversation])

frontend/src/components/app/Sidebar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ export const Sidebar = memo(function Sidebar() {
727727
<MenuItem icon={<GuideIcon />} label="Golden Guide" expanded={expanded} onClick={() => handleNavigateToView("guide")} overrideColor={isDark ? "#FFFFFF" : "#1a1a1a"} />
728728
<MenuItem icon={<DiscordIcon />} label="Community" expanded={expanded} onClick={() => window.open(DISCORD_URL, "_blank")} overrideColor={isDark ? "#FFFFFF" : "#1a1a1a"} />
729729
<MenuItem icon={<FeedbackIcon />} label="Feedback" expanded={expanded} active={normPath === "/feedback" || activeView === "feedback"} onClick={() => handleNavigateToView("feedback")} indicator overrideColor={isDark ? "#FFFFFF" : "#1a1a1a"} />
730-
<MenuItem icon={<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"><rect x="3" y="3" width="7" height="7" rx="1" /><rect x="14" y="3" width="7" height="7" rx="1" /><rect x="3" y="14" width="7" height="7" rx="1" /><rect x="14" y="14" width="7" height="7" rx="1" /></svg>} label="Block Lab" expanded={expanded} active={normPath === "/block-lab" || activeView === "block-lab"} onClick={() => handleNavigateToView("block-lab")} indicator overrideColor={isDark ? "#FFFFFF" : "#1a1a1a"} />
731730
</div>
732731

733732
{/* Recents — explicit background so no blackout when navigating (e.g. to Profile) */}

0 commit comments

Comments
 (0)