Skip to content

Alpha 0.1.10/574 add fence functionality to missions#607

Merged
1Blademaster merged 10 commits intorelease-alpha-0.1.10from
alpha-0.1.10/574-add-fence-functionality-to-missions
Aug 16, 2025
Merged

Alpha 0.1.10/574 add fence functionality to missions#607
1Blademaster merged 10 commits intorelease-alpha-0.1.10from
alpha-0.1.10/574-add-fence-functionality-to-missions

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

@1Blademaster 1Blademaster linked an issue Aug 8, 2025 that may be closed by this pull request
@1Blademaster 1Blademaster requested a review from Copilot August 9, 2025 20:14
@1Blademaster 1Blademaster marked this pull request as ready for review August 9, 2025 20:15

This comment was marked as outdated.

@1Blademaster 1Blademaster requested a review from Copilot August 9, 2025 20:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive fence functionality to the missions system, allowing users to create, edit, and manage geofence items within the ground control station interface.

  • Implements fence item creation with polygon and circle support
  • Adds visual representation of fence items on the map with inclusion/exclusion coloring
  • Creates dedicated UI components for fence item management

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
gcs/src/missions.jsx Main file adding fence state management, polygon creation, and tab functionality
gcs/src/helpers/mavlinkConstants.js Enables fence command constants by removing comments
gcs/src/components/missions/rallyItemsTable.jsx Updates table headers to remove parameter labels
gcs/src/components/missions/missionsMap.jsx Adds polygon drawing mode and fence visualization capabilities
gcs/src/components/missions/fenceItemsTableRow.jsx New component for fence item table row with editing capabilities
gcs/src/components/missions/fenceItemsTable.jsx New component for fence items table display
gcs/src/components/mapComponents/polygon.jsx New component for polygon visualization on map
gcs/src/components/mapComponents/fenceItems.jsx New component for fence item map visualization
gcs/src/components/mapComponents/drawLineCoordinates.jsx Adds fill layer support for polygon visualization
gcs/src/components/mapComponents/contextMenuSubMenuItem.jsx New component for nested context menu items
gcs/src/components/mapComponents/contextMenuItem.jsx Updates styling to maintain consistent layout
Comments suppressed due to low confidence (1)

gcs/src/missions.jsx:172

  • This code is duplicated with lines 210-215. Consider extracting the fence items processing logic into a helper function to reduce duplication.
      } else if (data.mission_type === "fence") {

Comment thread gcs/src/components/mapComponents/fenceItems.jsx
Comment thread gcs/src/components/mapComponents/drawLineCoordinates.jsx
Comment thread gcs/src/components/missions/fenceItemsTableRow.jsx
Comment thread gcs/src/components/missions/missionsMap.jsx
Copy link
Copy Markdown
Contributor

@Kwash67 Kwash67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well 👍

@1Blademaster 1Blademaster merged commit fa581ed into release-alpha-0.1.10 Aug 16, 2025
7 checks passed
@1Blademaster 1Blademaster deleted the alpha-0.1.10/574-add-fence-functionality-to-missions branch August 16, 2025 20:57
1Blademaster added a commit that referenced this pull request Sep 28, 2025
* Start adding fence functionality to missions

* Add circle fence marker display

* Add context menu dropdown item

* Start adding polygon drawing functionality

* Add polygon update function

* Style mission tabs to match marker pin colours

* Add polygon display to missions map for fence polygons

* Fix 2 bugs

* Address copilot review comments

* Fix bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add fence functionality to missions

3 participants