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.
This commit is contained in:
Shantur Rathore 2026-05-12 10:07:51 +01:00
parent cf88dc06ef
commit ca076f4fe0
9 changed files with 1 additions and 39 deletions

View file

@ -644,7 +644,6 @@ const App: Component = () => {
onSelectFolder={handleSelectFolder}
isLoading={isSelectingFolder()}
onOpenSidecar={handleOpenSidecarPicker}
activeProjectLabel={activeInstance()?.folder ?? null}
onClose={() => {
setShowFolderSelection(false)
clearLaunchError()

View file

@ -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<FolderSelectionViewProps> = (props) => {
@ -87,11 +86,6 @@ const FolderSelectionView: Component<FolderSelectionViewProps> = (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<FolderSelectionViewProps> = (props) => {
<Kbd shortcut="cmd+n" class="ml-2 kbd-hint" />
</button>
<Show when={props.onClose}>
<button
type="button"
onClick={() => props.onClose?.()}
class="button-primary w-full flex items-center justify-center text-sm"
>
<div class="flex items-center gap-2">
<ArrowLeft class="w-4 h-4" />
<span>{t("folderSelection.actions.returnToProject")}</span>
</div>
</button>
</Show>
<Show when={activeProjectName()}>
{(name) => <p class="text-xs text-muted text-center">{t("folderSelection.actions.returnToProjectSubtitle", { name: name() })}</p>}
</Show>
<button
type="button"
onClick={openCloneDialog}

View file

@ -43,8 +43,6 @@ export const folderSelectionMessages = {
"folderSelection.actions.title": "Open Folder or Connect Server",
"folderSelection.actions.subtitle": "Open local folder or connect to a CodeNomad server",
"folderSelection.actions.connectButton": "Connect CodeNomad Server",
"folderSelection.actions.returnToProject": "Return to Active Project",
"folderSelection.actions.returnToProjectSubtitle": "Go back to {name}",
"folderSelection.advancedSettings": "Advanced Settings",
"folderSelection.opencode": "OpenCode",

View file

@ -43,8 +43,6 @@ export const folderSelectionMessages = {
"folderSelection.actions.title": "Abrir carpeta o conectar servidor",
"folderSelection.actions.subtitle": "Abre una carpeta local o conéctate a un servidor de CodeNomad",
"folderSelection.actions.connectButton": "Conectar servidor CodeNomad",
"folderSelection.actions.returnToProject": "Volver al proyecto activo",
"folderSelection.actions.returnToProjectSubtitle": "Volver a {name}",
"folderSelection.advancedSettings": "Configuración avanzada",
"folderSelection.opencode": "OpenCode",

View file

@ -43,8 +43,6 @@ export const folderSelectionMessages = {
"folderSelection.actions.title": "Ouvrir un dossier ou se connecter à un serveur",
"folderSelection.actions.subtitle": "Ouvrez un dossier local ou connectez-vous à un serveur CodeNomad",
"folderSelection.actions.connectButton": "Se connecter au serveur CodeNomad",
"folderSelection.actions.returnToProject": "Revenir au projet actif",
"folderSelection.actions.returnToProjectSubtitle": "Retourner vers {name}",
"folderSelection.advancedSettings": "Paramètres avancés",
"folderSelection.opencode": "OpenCode",

View file

@ -43,8 +43,6 @@ export const folderSelectionMessages = {
"folderSelection.actions.title": "פתח תיקייה או התחבר לשרת",
"folderSelection.actions.subtitle": "פתח תיקייה מקומית או התחבר לשרת CodeNomad",
"folderSelection.actions.connectButton": "התחבר לשרת CodeNomad",
"folderSelection.actions.returnToProject": "חזור לפרויקט הפעיל",
"folderSelection.actions.returnToProjectSubtitle": "חזור אל {name}",
"folderSelection.advancedSettings": "הגדרות מתקדמות",
"folderSelection.opencode": "OpenCode",

View file

@ -43,8 +43,6 @@ export const folderSelectionMessages = {
"folderSelection.actions.title": "フォルダを開くかサーバーに接続",
"folderSelection.actions.subtitle": "ローカルフォルダを開くか CodeNomad サーバーに接続します",
"folderSelection.actions.connectButton": "CodeNomad サーバーに接続",
"folderSelection.actions.returnToProject": "アクティブなプロジェクトに戻る",
"folderSelection.actions.returnToProjectSubtitle": "{name} に戻る",
"folderSelection.advancedSettings": "詳細設定",
"folderSelection.opencode": "OpenCode",

View file

@ -43,8 +43,6 @@ export const folderSelectionMessages = {
"folderSelection.actions.title": "Открыть папку или подключить сервер",
"folderSelection.actions.subtitle": "Откройте локальную папку или подключитесь к серверу CodeNomad",
"folderSelection.actions.connectButton": "Подключить сервер CodeNomad",
"folderSelection.actions.returnToProject": "Вернуться к активному проекту",
"folderSelection.actions.returnToProjectSubtitle": "Вернуться к {name}",
"folderSelection.advancedSettings": "Расширенные настройки",
"folderSelection.opencode": "OpenCode",

View file

@ -43,8 +43,6 @@ export const folderSelectionMessages = {
"folderSelection.actions.title": "打开文件夹或连接服务器",
"folderSelection.actions.subtitle": "打开本地文件夹或连接到 CodeNomad 服务器",
"folderSelection.actions.connectButton": "连接 CodeNomad 服务器",
"folderSelection.actions.returnToProject": "返回当前项目",
"folderSelection.actions.returnToProjectSubtitle": "返回到 {name}",
"folderSelection.advancedSettings": "高级设置",
"folderSelection.opencode": "OpenCode",