Closed Moriarty777 closed 7 months ago
When there is more than one mission/run in the system the toggle for "Show Wpts" always modifies the panel for the last run no matter which run you try to toggle them. i.e. 3 runs, toggle "Show Wpts" on the Run 1 Panel will change the toggle and waypoint table on Run 3 Panel
The toggle Show Wpts and waypoint table does not work for Optimized Mission Survey runs. There is no indication to the user that the toggle does not work on those runs.
Overview This pull request introduces a significant enhancement to the mission panel by adding a new Waypoint table feature and a toggle functionality to manage its visibility.
Key Features and Updates
Waypoint Table Introduction: A new Waypoint table has been implemented in the mission panel, displaying crucial information such as Wpt Id, Latitude, Longitude, and Task. This table provides a comprehensive overview of the waypoints associated with each run, improving data visibility and accessibility.
Toggle Functionality: A toggle function has been added to control the visibility of the Waypoint table. This is facilitated by introducing a showTableOfWaypoints boolean property in the RunInterface, allowing users to show or hide the table as per their preference.
Integration with Existing Functions: The addRunWithWaypoints, addRunWithGoals, and addRunWithCommand functions in Missions.tsx have been updated to support the showTableOfWaypoints property. This ensures the toggle state is correctly maintained for each run.
Prop Drilling for Toggle Control: The toggleShowTableOfWaypoints function is passed down as props through various components and utilized in RunItem.tsx. This setup facilitates the toggling of the Waypoint table based on the run-specific showTableOfWaypoints value.
Testing
Dynamic Update Verification: Ensured that the addition of new waypoints and tasks is accurately reflected in the Waypoint table, maintaining real-time consistency and enhancing user interaction.
Toggle Functionality Testing: Conducted manual testing to verify the toggle functionality across different runs and ensure that the waypoints table correctly shows/hides based on the showTableOfWaypoints flag.
Screenshot: