-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
223 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/backend/app/migrations/versions/aec0d408df01_added_take_off_point_in_task.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
"""added take_off_point in task | ||
Revision ID: aec0d408df01 | ||
Revises: 2b92f8a9bbec | ||
Create Date: 2024-09-24 03:57:03.760365 | ||
""" | ||
|
||
import geoalchemy2 | ||
import sqlalchemy as sa | ||
from alembic import op | ||
from typing import Sequence, Union | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "aec0d408df01" | ||
down_revision: Union[str, None] = "2b92f8a9bbec" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("projects", "forward_overlap_percent") | ||
op.drop_column("projects", "side_overlap_percent") | ||
op.add_column( | ||
"tasks", | ||
sa.Column( | ||
"take_off_point", | ||
geoalchemy2.types.Geometry( | ||
geometry_type="POINT", | ||
srid=4326, | ||
from_text="ST_GeomFromEWKT", | ||
name="geometry", | ||
), | ||
nullable=True, | ||
), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("tasks", "take_off_point") | ||
op.add_column( | ||
"projects", | ||
sa.Column( | ||
"side_overlap_percent", | ||
sa.DOUBLE_PRECISION(precision=53), | ||
autoincrement=False, | ||
nullable=True, | ||
), | ||
) | ||
op.add_column( | ||
"projects", | ||
sa.Column( | ||
"forward_overlap_percent", | ||
sa.DOUBLE_PRECISION(precision=53), | ||
autoincrement=False, | ||
nullable=True, | ||
), | ||
) | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...frontend/src/components/DroneOperatorTask/DescriptionSection/UploadsInformation/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const UploadsInformation = ({ data }: { data: Record<string, any>[] }) => { | ||
return ( | ||
<> | ||
<div className="naxatw-flex naxatw-w-full naxatw-flex-col naxatw-gap-5"> | ||
<div className="naxatw-flex naxatw-flex-col naxatw-gap-3"> | ||
<p className="naxatw-text-[0.875rem] naxatw-font-semibold naxatw-leading-normal naxatw-tracking-[0.0175rem] naxatw-text-[#D73F3F]"> | ||
Upload Information | ||
</p> | ||
</div> | ||
|
||
{data.map(information => ( | ||
<div | ||
className="naxatw-flex naxatw-w-full naxatw-gap-2" | ||
key={information?.name} | ||
> | ||
<p className="naxatw-w-[6.875rem] naxatw-text-[0.75rem] naxatw-text-[#484848]"> | ||
{information?.name} | ||
</p> | ||
<p className="naxatw-text-[0.75rem] naxatw-text-[#484848]">:</p> | ||
<p className="naxatw-text-[0.75rem] naxatw-text-[#484848]"> | ||
{information?.value} | ||
</p> | ||
</div> | ||
))} | ||
</div> | ||
</> | ||
); | ||
}; | ||
export default UploadsInformation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters