Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/flightplan rotation #391

Merged
merged 21 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7725889
feat: update rotation funcitons
bijayrauniyar0 Dec 10, 2024
f46a844
feat: optimization of flightplan rotation
bijayrauniyar0 Dec 10, 2024
1b86875
style: add dropshadow style
bijayrauniyar0 Dec 10, 2024
ec40702
feat: add newAsync Popup for taskpage
bijayrauniyar0 Dec 10, 2024
56befcd
feat: add rotattionCue component
bijayrauniyar0 Dec 10, 2024
75c4e7c
feat: optimize flightplan rotation
bijayrauniyar0 Dec 10, 2024
6441699
feat: add layer ids constants
bijayrauniyar0 Dec 10, 2024
2957cfd
refactor: remove unused vars
bijayrauniyar0 Dec 10, 2024
d28cfac
feat: add function to swap first and last coordinate and fucntion to …
bijayrauniyar0 Dec 10, 2024
c1e6743
style: add responsive attributes to rotation cue
bijayrauniyar0 Dec 10, 2024
632acfa
Merge branch 'develop' of github.com:hotosm/drone-tm into feat/flight…
bijayrauniyar0 Dec 10, 2024
133d4b5
refactor: update swapFirstAndLastCoordinate
bijayrauniyar0 Dec 10, 2024
cd9fde0
refactor: remove swapFirstAndLast coordinate function
bijayrauniyar0 Dec 10, 2024
85bd95f
feat: update api for taskDataPolygon
bijayrauniyar0 Dec 11, 2024
4e84a1d
refactor: update popup close fn
bijayrauniyar0 Dec 11, 2024
de31906
refactor: update type for mouse Events
bijayrauniyar0 Dec 11, 2024
ea4cc9e
Merge branch 'develop' of github.com:hotosm/drone-tm into feat/flight…
bijayrauniyar0 Dec 11, 2024
0b8c888
refactor: update taskWayPointsData data
bijayrauniyar0 Dec 11, 2024
110dafd
feat: add est flight time
bijayrauniyar0 Dec 11, 2024
2c08b2a
Merge branch 'develop' of github.com:hotosm/drone-tm into feat/flight…
bijayrauniyar0 Dec 11, 2024
d38f3c1
refactor: update type for coordinates
bijayrauniyar0 Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading