From 8182bb9682e74230b085ba0e23a735570b049fa5 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Thu, 16 Oct 2025 19:12:10 +0000 Subject: [PATCH] feat: move Import/Export buttons to Modes view toolbar - Moved Import and Export buttons from bottom section to top toolbar - Converted buttons to icon-only style with tooltips for better space utilization - Removed lucide-react icons in favor of VSCode codicon icons - Updated button variants from default to ghost to match toolbar styling - Ensures better accessibility by keeping buttons visible at all times Fixes #8686 --- webview-ui/src/components/modes/ModesView.tsx | 68 +++++++++---------- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/webview-ui/src/components/modes/ModesView.tsx b/webview-ui/src/components/modes/ModesView.tsx index c50996585f..8074d258a9 100644 --- a/webview-ui/src/components/modes/ModesView.tsx +++ b/webview-ui/src/components/modes/ModesView.tsx @@ -8,7 +8,7 @@ import { VSCodeTextField, } from "@vscode/webview-ui-toolkit/react" import { Trans } from "react-i18next" -import { ChevronDown, X, Upload, Download } from "lucide-react" +import { ChevronDown, X } from "lucide-react" import { ModeConfig, GroupEntry, PromptComponent, ToolGroup, modeConfigSchema } from "@roo-code/types" @@ -522,6 +522,37 @@ const ModesView = ({ onDone }: ModesViewProps) => { + {/* Export Mode button */} + + + + {/* Import Mode button */} + + +
- {/* Export/Import Mode Buttons */} -
- {/* Export button - visible when any mode is selected */} - {getCurrentMode() && ( - - )} - {/* Import button - always visible */} - -
- {/* Advanced Features Disclosure */}