Skip to content

Add reboot autopilot to dashboard actions and spotlight#854

Merged
Turnlings merged 11 commits into
mainfrom
851-add-reboot-autopilot-to-dashboard-actions-and-spotlight
Nov 19, 2025
Merged

Add reboot autopilot to dashboard actions and spotlight#854
Turnlings merged 11 commits into
mainfrom
851-add-reboot-autopilot-to-dashboard-actions-and-spotlight

Conversation

@Turnlings
Copy link
Copy Markdown
Contributor

@Turnlings Turnlings commented Nov 14, 2025

This fulfils the ticket and adds the functionality of the "Reboot FC" button on the params page to spotlight and dashboard.
Notes:

  • (Also mentioned by copilot) perhaps there should be a confirmation dialogue as this is a dangerous action?
  • Red button (while appropriate) does kinda clash with the rest of the actions....

Copilot AI review requested due to automatic review settings November 14, 2025 20:20
@Turnlings Turnlings linked an issue Nov 14, 2025 that may be closed by this pull request
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 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 useRebootCallback hook in params.jsx for reusability across components
  • Moved AutopilotRebootModal to 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.

Comment thread gcs/src/params.jsx Outdated
Comment thread gcs/src/params.jsx Outdated
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

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.

Comment thread gcs/src/components/spotlight/commandHandler.js Outdated
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

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.

Comment thread gcs/src/params.jsx Outdated
Comment thread gcs/src/params.jsx
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

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.

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

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.

Comment thread gcs/src/components/dashboard/tabsSectionTabs/actionTabsSection.jsx Outdated
Comment thread gcs/src/helpers/useRebootCallback.js Outdated
Comment thread gcs/src/helpers/useRebootCallback.js Outdated
Comment thread gcs/src/components/dashboard/tabsSectionTabs/actionTabsSection.jsx
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

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.

Comment thread gcs/src/helpers/useRebootCallback.js Outdated
Comment thread gcs/src/helpers/useRebootCallback.js
Comment thread gcs/src/helpers/useRebootCallback.js Outdated
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

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.

Comment thread gcs/src/components/dashboard/tabsSectionTabs/actionTabsSection.jsx
@Turnlings Turnlings requested a review from a team November 16, 2025 19:16
Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster left a comment

Choose a reason for hiding this comment

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

LGTM

@Turnlings Turnlings merged commit b6724bd into main Nov 19, 2025
12 checks passed
@Turnlings Turnlings deleted the 851-add-reboot-autopilot-to-dashboard-actions-and-spotlight branch November 19, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add reboot autopilot to dashboard actions and spotlight

3 participants