Skip to content

1165 feature see waypoint information on missions page#1168

Merged
1Blademaster merged 4 commits into
mainfrom
1165-feature-see-waypoint-information-on-missions-page
Apr 16, 2026
Merged

1165 feature see waypoint information on missions page#1168
1Blademaster merged 4 commits into
mainfrom
1165-feature-see-waypoint-information-on-missions-page

Conversation

@1Blademaster

Copy link
Copy Markdown
Member

No description provided.

@1Blademaster 1Blademaster linked an issue Apr 16, 2026 that may be closed by this pull request
Copilot AI review requested due to automatic review settings April 16, 2026 19:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds per-waypoint “Distance” and “Gradient” metrics to the Missions UI by introducing a shared helper that computes per-leg waypoint metrics, and reuses it in both the mission statistics panel and the mission items table.

Changes:

  • Clamp context menu position so it can’t render outside the map canvas.
  • Add buildMissionWaypointLegMetrics() helper and use it to compute max leg distance / max slope gradient.
  • Display per-row leg distance and gradient columns in the mission items table; bump GCS version.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
gcs/src/redux/slices/missionSlice.js Clamps context menu position within canvas bounds.
gcs/src/helpers/missionWaypointMetrics.js New helper to compute per-leg distance/gradient metrics for mission waypoints.
gcs/src/components/missions/missionStatistics.jsx Refactors max distance/max gradient to use shared leg-metrics helper.
gcs/src/components/missions/missionItemsTableRow.jsx Adds distance/gradient rendering per mission row.
gcs/src/components/missions/missionItemsTable.jsx Computes and passes per-row metrics; adds new table columns.
gcs/package.json Bumps GCS version to 0.2.7-alpha.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcs/src/helpers/missionWaypointMetrics.js
Comment thread gcs/src/helpers/missionWaypointMetrics.js
Comment thread gcs/src/helpers/missionWaypointMetrics.js
@1Blademaster
1Blademaster merged commit 7ed4b95 into main Apr 16, 2026
5 checks passed
@1Blademaster
1Blademaster deleted the 1165-feature-see-waypoint-information-on-missions-page branch April 16, 2026 19:54
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.

[FEATURE] See waypoint information on missions page

2 participants