Skip to content

Commit

Permalink
Remove area names in initDb
Browse files Browse the repository at this point in the history
  • Loading branch information
prasm313 committed Apr 4, 2024
1 parent e6851d2 commit a1dd96f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
12 changes: 6 additions & 6 deletions backend/api/Database/Context/InitDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private static List<Area> GetAreas()
Deck = decks[0],
Plant = decks[0].Plant,
Installation = decks[0].Plant!.Installation,
Name = "AP320",
Name = "testArea",
MapMetadata = new MapMetadata(),
DefaultLocalizationPose = new DefaultLocalizationPose(),
SafePositions = new List<SafePosition>(new[] { new SafePosition() })
Expand All @@ -177,7 +177,7 @@ private static List<Area> GetAreas()
Deck = decks[0],
Plant = decks[0].Plant,
Installation = decks[0].Plant!.Installation,
Name = "AP330",
Name = "testArea2",
MapMetadata = new MapMetadata(),
DefaultLocalizationPose = new DefaultLocalizationPose(),
SafePositions = new List<SafePosition>(new[] { new SafePosition() })
Expand All @@ -189,7 +189,7 @@ private static List<Area> GetAreas()
Deck = decks[0],
Plant = decks[0].Plant,
Installation = decks[0].Plant!.Installation,
Name = "testArea",
Name = "testArea3",
MapMetadata = new MapMetadata(),
DefaultLocalizationPose = new DefaultLocalizationPose(),
SafePositions = new List<SafePosition>(new[] { new SafePosition() })
Expand All @@ -201,7 +201,7 @@ private static List<Area> GetAreas()
Deck = decks[1],
Plant = decks[1].Plant,
Installation = decks[1].Plant.Installation,
Name = "testArea2",
Name = "testArea4",
MapMetadata = new MapMetadata(),
DefaultLocalizationPose = new DefaultLocalizationPose(),
SafePositions = new List<SafePosition>(new[] { new SafePosition() })
Expand All @@ -213,7 +213,7 @@ private static List<Area> GetAreas()
Deck = decks[2],
Plant = decks[2].Plant,
Installation = decks[2].Plant.Installation,
Name = "testArea3",
Name = "testArea5",
MapMetadata = new MapMetadata(),
DefaultLocalizationPose = new DefaultLocalizationPose(),
SafePositions = new List<SafePosition>(new[] { new SafePosition() })
Expand All @@ -225,7 +225,7 @@ private static List<Area> GetAreas()
Deck = decks[3],
Plant = decks[3].Plant,
Installation = decks[3].Plant.Installation,
Name = "testArea4",
Name = "testArea6",
MapMetadata = new MapMetadata(),
DefaultLocalizationPose = new DefaultLocalizationPose(),
SafePositions = new List<SafePosition>(new[] { new SafePosition() })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ const MissionEndTimeDisplay = ({ mission }: MissionProps) => {

export const HistoricMissionCard = ({ index, mission }: IndexedMissionProps) => {
let navigate = useNavigate()
const routeChange = () => {
const path = `${config.FRONTEND_BASE_ROUTE}/mission/${mission.id}`
navigate(path)
}

const missionHasFailedTasks = mission.tasks.some(
(t) => t.status !== TaskStatus.PartiallySuccessful && t.status !== TaskStatus.Successful
Expand All @@ -61,10 +57,7 @@ export const HistoricMissionCard = ({ index, mission }: IndexedMissionProps) =>
<MissionStatusDisplay status={mission.status} />
</Table.Cell>
<Table.Cell id={InspectionTableColumns.Name}>
<Typography
link
onClick={() => navigate(`${config.FRONTEND_BASE_ROUTE}/mission/${mission.id}`)}
>
<Typography link onClick={() => navigate(`${config.FRONTEND_BASE_ROUTE}/mission/${mission.id}`)}>
{mission.name}
</Typography>
</Table.Cell>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/InfoText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const SmallScreenInfoText = () => {
const { TranslateText } = useLanguageContext()
return (
<StyledDiv id="SmallScreenInfoText">
<Icon name={Icons.Info}> </Icon>
<Icon name={Icons.Info} />
<Typography>{TranslateText('Small screen info text')}</Typography>
</StyledDiv>
)
Expand Down

0 comments on commit a1dd96f

Please sign in to comment.