refactor: simplify wizard UI by removing trial monitoring and robot control tabs, and streamlining monitoring panel props.

This commit is contained in:
2025-11-20 14:52:08 -05:00
parent 1108f4d25d
commit 5be4ff0372
4 changed files with 306 additions and 849 deletions

View File

@@ -107,12 +107,15 @@ export function useWizardRos(
if (!service) return;
const handleConnected = () => {
if (!mountedRef.current) return;
console.log("[useWizardRos] Connected to ROS bridge");
console.log("[useWizardRos] handleConnected called, mountedRef:", mountedRef.current);
// Set state immediately, before checking mounted status
setIsConnected(true);
setIsConnecting(false);
setConnectionError(null);
onConnectedRef.current?.();
if (mountedRef.current) {
onConnectedRef.current?.();
}
};
const handleDisconnected = () => {