diff --git a/dashboard/src/app/workspaces/page.tsx b/dashboard/src/app/workspaces/page.tsx index e345575..ae33337 100644 --- a/dashboard/src/app/workspaces/page.tsx +++ b/dashboard/src/app/workspaces/page.tsx @@ -588,124 +588,119 @@ export default function WorkspacesPage() { )}
-
- - -
-
- -

- {selectedWorkspace.status === 'ready' - ? 'Destroys container and reruns init script' - : 'Creates isolated Linux filesystem'} -

-
+ {/* Show build controls when not building */} + {selectedWorkspace.status !== 'building' && ( + <> +
+ + +
+
+ +

+ {selectedWorkspace.status === 'ready' + ? 'Destroys container and reruns init script' + : 'Creates isolated Linux filesystem'} +

+
+ + )} - {/* Build Progress Logs */} - {selectedWorkspace.status === 'building' && (buildDebug || buildLog) && ( -
- + )} - {showBuildLogs && ( -
- {/* Container Status */} - {buildDebug && ( -
- {buildDebug.has_bash && ( - - bash ready - - )} - {buildDebug.init_script_exists && ( - - init script running - - )} - {buildDebug.distro && ( - - {buildDebug.distro} - - )} -
- )} - - {/* Init Log Output */} - {buildLog?.exists && buildLog.content && ( -
-
- {buildLog.log_path} - {buildLog.total_lines && ( - {buildLog.total_lines} lines - )} -
-
-                                      {buildLog.content.split('\n').slice(-50).join('\n')}
-                                    
-
- )} - - {/* No logs yet message */} - {(!buildLog?.exists || !buildLog?.content) && ( -
- - Waiting for build output... -
- )} + {/* Init Log Output */} + {buildLog?.exists && buildLog.content ? ( +
+
+ {buildLog.log_path} + {buildLog.total_lines && ( + {buildLog.total_lines} lines + )} +
+
+                                  {buildLog.content.split('\n').slice(-50).join('\n')}
+                                
+
+ ) : ( +
+ + Waiting for build output...
)}