refactor: move startup logic to app-support, improve welcome screen UI

This commit is contained in:
Mohamed Boudra
2026-03-15 12:52:29 +07:00
parent 57db31c662
commit 5701543746
6 changed files with 108 additions and 56 deletions
@@ -7,6 +7,7 @@ import { projectDisplayNameFromProjectId } from '@/utils/project-display-name'
const EMPTY_ORDER: string[] = []
const EMPTY_PROJECTS: SidebarProjectEntry[] = []
const EMPTY_WORKSPACE_ORDER_SCOPE: Record<string, string[]> = {}
export type SidebarStateBucket = WorkspaceDescriptor['status']
@@ -271,7 +272,7 @@ export function useSidebarWorkspacesList(options?: {
serverId ? (state.projectOrderByServerId[serverId] ?? EMPTY_ORDER) : EMPTY_ORDER
)
const persistedWorkspaceOrderByScope = useSidebarOrderStore((state) =>
serverId ? state.workspaceOrderByServerAndProject : {}
serverId ? state.workspaceOrderByServerAndProject : EMPTY_WORKSPACE_ORDER_SCOPE
)
const isActive = Boolean(serverId)