Editor Redesign Cleanup: main layout, toolbar, and rail (#31031)

* feat: integrate  main layout, toolbar, and rail from redesign into main ide-react folder

* feat: remove additional files no longer used after ide redesign

GitOrigin-RevId: 8fd77f63cb9c67be91995a9dde13b0fe2376d80f
This commit is contained in:
Jimmy Domagala-Tang
2026-02-03 09:06:37 +00:00
committed by Copybot
parent c790449196
commit fc8d564320
59 changed files with 171 additions and 845 deletions
@@ -0,0 +1,19 @@
import { AvailableUnfilledIcon } from '@/shared/components/material-icon'
import { RailTabKey } from '../context/rail-context'
import { FC, ReactElement } from 'react'
import RailTab from '@/features/ide-react/components/rail/rail-tab'
export type CustomRailTabIcon = FC<{ open: boolean; title: string }>
export type RailElement = {
icon: AvailableUnfilledIcon | CustomRailTabIcon
key: RailTabKey
component: ReactElement | null
indicator?: ReactElement
title: string
hide?: boolean | (() => boolean)
disabled?: boolean
mountOnFirstLoad?: boolean
ref?: React.RefObject<HTMLAnchorElement>
tab?: typeof RailTab
}
@@ -0,0 +1,10 @@
export function shouldIncludeElement({
hide,
}: {
hide?: boolean | (() => boolean)
}): boolean {
if (typeof hide === 'function') {
return !hide()
}
return !hide
}