From ca076f4fe0f75309e0540a170b4a19ea2c5940d5 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Tue, 12 May 2026 10:07:51 +0100 Subject: [PATCH] fix(ui): remove active project return action Remove the prominent Return to Active Project button from the folder selection actions area so the home screen no longer shows a redundant project-return call to action. Drop the active project label plumbing and localized return subtitle strings because the overlay still has the existing close affordance for dismissing the home screen. Validation: attempted pnpm --filter @codenomad/ui typecheck, but tsc was not available in the current environment. --- packages/ui/src/App.tsx | 1 - .../src/components/folder-selection-view.tsx | 25 +------------------ .../lib/i18n/messages/en/folderSelection.ts | 2 -- .../lib/i18n/messages/es/folderSelection.ts | 2 -- .../lib/i18n/messages/fr/folderSelection.ts | 2 -- .../lib/i18n/messages/he/folderSelection.ts | 2 -- .../lib/i18n/messages/ja/folderSelection.ts | 2 -- .../lib/i18n/messages/ru/folderSelection.ts | 2 -- .../i18n/messages/zh-Hans/folderSelection.ts | 2 -- 9 files changed, 1 insertion(+), 39 deletions(-) diff --git a/packages/ui/src/App.tsx b/packages/ui/src/App.tsx index 44f0d23f..2aa430fc 100644 --- a/packages/ui/src/App.tsx +++ b/packages/ui/src/App.tsx @@ -644,7 +644,6 @@ const App: Component = () => { onSelectFolder={handleSelectFolder} isLoading={isSelectingFolder()} onOpenSidecar={handleOpenSidecarPicker} - activeProjectLabel={activeInstance()?.folder ?? null} onClose={() => { setShowFolderSelection(false) clearLaunchError() diff --git a/packages/ui/src/components/folder-selection-view.tsx b/packages/ui/src/components/folder-selection-view.tsx index 286327b3..035efb70 100644 --- a/packages/ui/src/components/folder-selection-view.tsx +++ b/packages/ui/src/components/folder-selection-view.tsx @@ -1,7 +1,7 @@ import { Dialog } from "@kobalte/core/dialog" import { Select } from "@kobalte/core/select" import { Component, createMemo, createSignal, Show, For, onMount, onCleanup, createEffect } from "solid-js" -import { Folder, Clock, Trash2, FolderPlus, Settings, ChevronRight, MonitorUp, Star, Languages, ChevronDown, X, Globe, Loader2, GitBranch, ArrowLeft } from "lucide-solid" +import { Folder, Clock, Trash2, FolderPlus, Settings, ChevronRight, MonitorUp, Star, Languages, ChevronDown, X, Globe, Loader2, GitBranch } from "lucide-solid" import { useConfig } from "../stores/preferences" import DirectoryBrowserDialog from "./directory-browser-dialog" import Kbd from "./kbd" @@ -32,7 +32,6 @@ interface FolderSelectionViewProps { onOpenSidecar?: () => void isLoading?: boolean onClose?: () => void - activeProjectLabel?: string | null } const FolderSelectionView: Component = (props) => { @@ -87,11 +86,6 @@ const FolderSelectionView: Component = (props) => { const serverList = () => remoteServers() const isLoading = () => Boolean(props.isLoading) const canUseRemoteServerWindows = () => canOpenRemoteWindows() - const activeProjectName = createMemo(() => { - const label = props.activeProjectLabel?.trim() - if (!label) return null - return splitFolderPath(label).baseName - }) function getActiveListLength() { return activeTab() === "local" ? folders().length : serverList().length @@ -961,23 +955,6 @@ const FolderSelectionView: Component = (props) => { - - - - - - {(name) =>

{t("folderSelection.actions.returnToProjectSubtitle", { name: name() })}

} -
-