Description:
In the JCC, if a bot is in an error or failed state (red), it should not be allowed to be sent on a mission directly. Instead, I have implemented a confirmation dialog to inform the user about the bot's failed state and the potential consequences of running the mission. Additionally, there is another confirmation dialog to confirm sending the mission despite the bot's failed state.
Changes Made:
Updated the details.tsx file to handle the bot's error state.
Modified the behavior of the play button to allow interaction even when the bot is in a failed state.
Added confirmation dialog to notify the user about the bot's failed state and the consequences of running the mission, as well as to confirm sending the mission despite the failed state.
Modified CustomAlert.tsx to accept a title and display a red border when there is a warning.
Testing:
Edited the template jaiabot/config/templates/bot/jaiabot-simulator.pb.cfg to change voltage_step_decrease from 0.0 to 0.3, simulating a bot going into failed state.
We need to have the bot activated to test this feature out.
Verified that the play button is enabled despite the bot being in a failed state.
Clicked the play button to trigger the confirmation dialogs for running the mission despite the bot's failed state.
Description: In the JCC, if a bot is in an error or failed state (red), it should not be allowed to be sent on a mission directly. Instead, I have implemented a confirmation dialog to inform the user about the bot's failed state and the potential consequences of running the mission. Additionally, there is another confirmation dialog to confirm sending the mission despite the bot's failed state.
Changes Made:
Testing:
Screenshots: Screencast from 03-27-2024 02:12:33 PM.webm