Skip to content

Commit

Permalink
Merge pull request #391 from hotosm/feat/flightplan-rotation
Browse files Browse the repository at this point in the history
Feat/flightplan rotation
  • Loading branch information
subashtiwari1010 authored Dec 11, 2024
2 parents 9a44f58 + d38f3c1 commit e60c70f
Show file tree
Hide file tree
Showing 7 changed files with 573 additions and 187 deletions.
6 changes: 6 additions & 0 deletions src/frontend/src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ body {
.scrollbar-images-grid::-webkit-scrollbar-thumb {
background: transparent;
}

.has-dropshadow {
box-shadow:
2px 2px 5px rgb(255, 0, 0),
2px 2px 3px rgba(255, 0, 0, 0.692);
}
@keyframes pulse-animation {
0% {
box-shadow: 0 0 0 0 rgba(0, 70, 119, 0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ const DescriptionBox = () => {
},
});

const { data: flightTimeData }: any = useGetTaskWaypointQuery(
projectId as string,
taskId as string,
{
select: ({ data }: any) => data.flight_data,
},
);

const { data: taskDescription }: Record<string, any> =
useGetIndividualTaskQuery(taskId as string, {
enabled: !!taskWayPoints,
Expand Down Expand Up @@ -126,7 +134,11 @@ const DescriptionBox = () => {
{ name: 'Total points', value: taskWayPoints?.length },
{
name: 'Est. flight time',
value: taskData?.flight_time || null,
value: flightTimeData?.total_flight_time || null,
},
{
name: 'Est. flight time in seconds',
value: flightTimeData?.total_flight_time_seconds || null,
},
],
},
Expand Down
Loading

0 comments on commit e60c70f

Please sign in to comment.