Skip to content

Commit

Permalink
Show robot as busy when driving home
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Oct 29, 2024
1 parent a355881 commit df3a6bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/api/Database/Context/InitDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ public static void AddRobotModelsToContext(FlotillaDbContext context)
{
Type = type,
BatteryWarningThreshold = null,
BatteryMissionStartThreshold = null,
LowerPressureWarningThreshold = null,
UpperPressureWarningThreshold = null
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ export const RobotStatusChip = ({ status, flotillaStatus, isarConnected }: Statu
iconColor = tokens.colors.interactive.disabled__text.hex
statusIcon = Icons.Info
status = RobotStatus.ConnectionIssues
} else if (flotillaStatus && flotillaStatus === RobotFlotillaStatus.SafeZone) {
} else if (flotillaStatus && status === RobotStatus.Available && flotillaStatus === RobotFlotillaStatus.SafeZone) {
iconColor = tokens.colors.interactive.danger__resting.hex
statusIcon = Icons.Warning
status = RobotStatus.SafeZone
} else if (flotillaStatus && flotillaStatus === RobotFlotillaStatus.Recharging) {
} else if (
flotillaStatus &&
status === RobotStatus.Available &&
flotillaStatus === RobotFlotillaStatus.Recharging
) {
iconColor = '#FFC300'
statusIcon = Icons.BatteryCharging
status = RobotStatus.Recharging
Expand Down

0 comments on commit df3a6bb

Please sign in to comment.