Add reboot autopilot to dashboard actions and spotlight#854
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request refactors the autopilot reboot functionality to make it accessible from multiple locations in the application. The changes extract the reboot logic into a reusable hook and add reboot capabilities to both the spotlight command system and the dashboard actions panel.
Key Changes:
- Extracted
useRebootCallbackhook in params.jsx for reusability across components - Moved
AutopilotRebootModalto mainContent.jsx for global access - Added "Reboot Autopilot" action to spotlight search and dashboard actions tab
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| gcs/src/params.jsx | Extracted useRebootCallback hook from local function and removed local modal component |
| gcs/src/components/spotlight/commandHandler.js | Added reboot autopilot command using the new shared hook |
| gcs/src/components/spotlight/actions.js | Registered new spotlight action for rebooting the autopilot |
| gcs/src/components/mainContent.jsx | Relocated AutopilotRebootModal component to global level |
| gcs/src/components/dashboard/tabsSectionTabs/actionTabsSection.jsx | Added "Reboot FC" button to dashboard actions using the shared hook |
Comments suppressed due to low confidence (1)
gcs/src/params.jsx:27
- Unused import AddCommand.
import { AddCommand } from "./components/spotlight/commandHandler"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This fulfils the ticket and adds the functionality of the "Reboot FC" button on the params page to spotlight and dashboard.
Notes: