From ee86b562ea6507d6e5acd2c6cb2094c4521a1ad8 Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Wed, 13 Aug 2025 17:27:25 -0400 Subject: [PATCH 1/2] feat: add dfu mode to command menu --- packages/web/public/i18n/locales/en/commandPalette.json | 1 + packages/web/src/components/CommandPalette/index.tsx | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/packages/web/public/i18n/locales/en/commandPalette.json b/packages/web/public/i18n/locales/en/commandPalette.json index e3f80a3ad..8c267e29f 100644 --- a/packages/web/public/i18n/locales/en/commandPalette.json +++ b/packages/web/public/i18n/locales/en/commandPalette.json @@ -35,6 +35,7 @@ "scheduleShutdown": "Schedule Shutdown", "scheduleReboot": "Reboot Device", "resetNodeDb": "Reset Node DB", + "dfuMode": "Enter DFU Mode", "factoryResetDevice": "Factory Reset Device", "factoryResetConfig": "Factory Reset Config", "disconnect": "Disconnect" diff --git a/packages/web/src/components/CommandPalette/index.tsx b/packages/web/src/components/CommandPalette/index.tsx index 5c9753db8..88c805823 100644 --- a/packages/web/src/components/CommandPalette/index.tsx +++ b/packages/web/src/components/CommandPalette/index.tsx @@ -19,6 +19,7 @@ import { CloudOff, EraserIcon, FactoryIcon, + HardDriveUpload, LayersIcon, LinkIcon, type LucideIcon, @@ -188,6 +189,13 @@ export const CommandPalette = () => { setDialogOpen("reboot", true); }, }, + { + label: t("contextual.command.dfuMode"), + icon: HardDriveUpload, + action() { + connection?.enterDfuMode() + } + }, { label: t("contextual.command.resetNodeDb"), icon: TrashIcon, From 4d1c634e524d065f50d4da4ead609ef4ae2e5dc6 Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Wed, 13 Aug 2025 17:29:30 -0400 Subject: [PATCH 2/2] Update packages/web/src/components/CommandPalette/index.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- packages/web/src/components/CommandPalette/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/components/CommandPalette/index.tsx b/packages/web/src/components/CommandPalette/index.tsx index 88c805823..fc1778623 100644 --- a/packages/web/src/components/CommandPalette/index.tsx +++ b/packages/web/src/components/CommandPalette/index.tsx @@ -194,7 +194,7 @@ export const CommandPalette = () => { icon: HardDriveUpload, action() { connection?.enterDfuMode() - } + }, }, { label: t("contextual.command.resetNodeDb"),