@@ -27,6 +27,7 @@ import {
2727}  from  './lib/ExperimentInfoContext' ; 
2828import  *  as  chatAPI  from  './lib/transformerlab-api-sdk' ; 
2929import  RootAuthCallbackHandler  from  './components/User/RootAuthCallbackHandler' ; 
30+ import  SidebarForGPUOrchestration  from  './components/Nav/SidebarForGPUOrchestration' ; 
3031
3132type  AppContentProps  =  { 
3233  connection : string ; 
@@ -37,6 +38,8 @@ type AppContentProps = {
3738  themeSetter : ( name : string )  =>  void ; 
3839  setSSHConnection : ( conn : any )  =>  void ; 
3940  setConnection : ( conn : string )  =>  void ; 
41+   gpuOrchestrationServer : string ; 
42+   setGPUOrchestrationServer : ( server : string )  =>  void ; 
4043} ; 
4144
4245function  AppContent ( { 
@@ -48,6 +51,8 @@ function AppContent({
4851  themeSetter, 
4952  setSSHConnection, 
5053  setConnection, 
54+   gpuOrchestrationServer, 
55+   setGPUOrchestrationServer, 
5156} : AppContentProps )  { 
5257  const  onOutputDrawerDrag  =  useCallback ( 
5358    ( pos : {  y : number  } )  =>  { 
@@ -80,12 +85,24 @@ function AppContent({
8085        ` , 
8186      } ) } 
8287    > 
83-       < Header  connection = { connection }  setConnection = { setConnection }  /> 
84-       < Sidebar 
85-         logsDrawerOpen = { logsDrawerOpen } 
86-         setLogsDrawerOpen = { setLogsDrawerOpen  as  any } 
87-         themeSetter = { themeSetter } 
88+       < Header 
89+         connection = { connection } 
90+         setConnection = { setConnection } 
91+         gpuOrchestrationServer = { gpuOrchestrationServer } 
8892      /> 
93+       { gpuOrchestrationServer  !==  ''  ? ( 
94+         < SidebarForGPUOrchestration 
95+           logsDrawerOpen = { logsDrawerOpen } 
96+           setLogsDrawerOpen = { setLogsDrawerOpen  as  any } 
97+           themeSetter = { themeSetter } 
98+         /> 
99+       )  : ( 
100+         < Sidebar 
101+           logsDrawerOpen = { logsDrawerOpen } 
102+           setLogsDrawerOpen = { setLogsDrawerOpen  as  any } 
103+           themeSetter = { themeSetter } 
104+         /> 
105+       ) } 
89106      < Box 
90107        sx = { { 
91108          px : { 
@@ -103,7 +120,10 @@ function AppContent({
103120        } } 
104121        id = "main-app-panel" 
105122      > 
106-         < MainAppPanel  setLogsDrawerOpen = { setLogsDrawerOpen  as  any }  /> 
123+         < MainAppPanel 
124+           setLogsDrawerOpen = { setLogsDrawerOpen  as  any } 
125+           gpuOrchestrationServer = { gpuOrchestrationServer } 
126+         /> 
107127      </ Box > 
108128      < Box 
109129        sx = { { 
@@ -166,6 +186,7 @@ function AppContent({
166186        connection = { connection } 
167187        setTerminalDrawerOpen = { setLogsDrawerOpen } 
168188        setSSHConnection = { setSSHConnection } 
189+         setGPUOrchestrationServer = { setGPUOrchestrationServer } 
169190      /> 
170191    </ Box > 
171192  ) ; 
@@ -175,6 +196,7 @@ const INITIAL_LOGS_DRAWER_HEIGHT = 200; // Default height for logs drawer when f
175196
176197export  default  function  App ( )  { 
177198  const  [ connection ,  setConnection ]  =  useState ( '' ) ; 
199+   const  [ gpuOrchestrationServer ,  setGPUOrchestrationServer ]  =  useState ( '' ) ; 
178200  const  [ logsDrawerOpen ,  setLogsDrawerOpen ]  =  useState ( false ) ; 
179201  const  [ logsDrawerHeight ,  setLogsDrawerHeight ]  =  useState ( 0 ) ; 
180202  const  [ theme ,  setTheme ]  =  useState ( customTheme ) ; 
@@ -210,6 +232,8 @@ export default function App() {
210232            themeSetter = { themeSetter } 
211233            setSSHConnection = { ( )  =>  { } } 
212234            setConnection = { setConnection } 
235+             gpuOrchestrationServer = { gpuOrchestrationServer } 
236+             setGPUOrchestrationServer = { setGPUOrchestrationServer } 
213237          /> 
214238        </ ExperimentInfoProvider > 
215239      </ CssVarsProvider > 
0 commit comments