frontend: settings: make user reboot after reset settings operation#3870
Merged
patrickelectric merged 2 commits intobluerobotics:masterfrom Apr 9, 2026
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdate the Settings reset confirmation flow so that after resetting settings, the user is prompted with a non-dismissible dialog that now triggers a system reboot instead of simply closing the dialog, using the commander store’s shutdown API. Sequence diagram for reset settings confirmation and rebootsequenceDiagram
actor User
participant SettingsView
participant CommanderStore as commander
User->>SettingsView: Click ResetSettings
activate SettingsView
SettingsView->>SettingsView: Perform_reset_settings
SettingsView->>SettingsView: show_reset_dialog = true
deactivate SettingsView
User->>SettingsView: Click Reboot button
activate SettingsView
SettingsView->>CommanderStore: shutdown(ShutdownType.Reboot)
deactivate SettingsView
CommanderStore-->>User: System begins reboot (session ends)
Class diagram for SettingsView with reboot_system integrationclassDiagram
class SettingsView {
+boolean show_reset_dialog
+boolean operation_in_progress
+reboot_system() void
+onConfirmClearLogs() void
+remove_service_log_files() Promise~void~
}
class CommanderStore {
+shutdown(type ShutdownType) void
}
class ShutdownType {
<<enumeration>>
+Reboot
+Shutdown
}
SettingsView ..> CommanderStore : uses
SettingsView ..> ShutdownType : uses
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Since the dialog is now persistent and the only action is
reboot_system, consider handling potential shutdown failures (e.g., viaNotifierand optionally allowing the dialog to be closed) so users aren’t stuck if the reboot command cannot be executed. - You may want to disable the reboot button after it’s clicked (or while a shutdown request is in flight) to avoid multiple rapid
commander.shutdowncalls being sent.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since the dialog is now persistent and the only action is `reboot_system`, consider handling potential shutdown failures (e.g., via `Notifier` and optionally allowing the dialog to be closed) so users aren’t stuck if the reboot command cannot be executed.
- You may want to disable the reboot button after it’s clicked (or while a shutdown request is in flight) to avoid multiple rapid `commander.shutdown` calls being sent.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Member
|
We should backport it to 1.4 |
patrickelectric
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: #1723
Since the success message of reset settings is to restart the system I changed the requested reload page button to reboot.
Summary by Sourcery
Enhancements: