fix(desktop): update Electron stack and panel layout (#31571)

This commit is contained in:
Luke Parker
2026-06-09 23:34:35 +00:00
committed by GitHub
parent bc42187c58
commit 1cc94bb23e
7 changed files with 316 additions and 50 deletions
@@ -20,6 +20,10 @@ type TabsInput = {
export const getSessionKey = (dir: string | undefined, id: string | undefined) => `${dir ?? ""}${id ? `/${id}` : ""}`
export function shouldShowFileTree(input: { desktopV2: boolean; showFileTree: boolean; opened: boolean }) {
return input.opened && (!input.desktopV2 || input.showFileTree)
}
export const createSessionTabs = (input: TabsInput) => {
const review = input.review ?? (() => false)
const hasReview = input.hasReview ?? (() => false)