diff --git a/.changeset/hip-buttons-smile.md b/.changeset/hip-buttons-smile.md new file mode 100644 index 0000000000..34476a02f7 --- /dev/null +++ b/.changeset/hip-buttons-smile.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Remove vite files and make enable all the first item diff --git a/webview-ui/.vite-port b/webview-ui/.vite-port deleted file mode 100644 index 085e304c4e..0000000000 --- a/webview-ui/.vite-port +++ /dev/null @@ -1 +0,0 @@ -25463 \ No newline at end of file diff --git a/webview-ui/src/components/chat/auto-approve-menu/AutoApproveMenu.tsx b/webview-ui/src/components/chat/auto-approve-menu/AutoApproveMenu.tsx index 827197e561..88a485cd6e 100644 --- a/webview-ui/src/components/chat/auto-approve-menu/AutoApproveMenu.tsx +++ b/webview-ui/src/components/chat/auto-approve-menu/AutoApproveMenu.tsx @@ -27,6 +27,13 @@ export interface ActionMetadata { } const ACTION_METADATA: ActionMetadata[] = [ + { + id: "enableAll", + label: "Enable all", + shortName: "All", + description: "Enable all actions.", + icon: "codicon-checklist", + }, { id: "readFiles", label: "Read project files", @@ -87,22 +94,16 @@ const ACTION_METADATA: ActionMetadata[] = [ description: "Allows Cline to use configured MCP servers which may modify filesystem or interact with APIs.", icon: "codicon-server", }, - { - id: "enableAll", - label: "Enable all", - shortName: "All", - description: "Enable all actions.", - icon: "codicon-checklist", - }, - { - id: "enableNotifications", - label: "Enable notifications", - shortName: "Notifications", - description: "Receive system notifications when Cline requires approval to proceed or when a task is completed.", - icon: "codicon-bell", - }, ] +const NOTIFICATIONS_SETTING: ActionMetadata = { + id: "enableNotifications", + label: "Enable notifications", + shortName: "Notifications", + description: "Receive system notifications when Cline requires approval to proceed or when a task is completed.", + icon: "codicon-bell", +} + const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { const { autoApprovalSettings } = useExtensionState() const [isExpanded, setIsExpanded] = useState(false) @@ -265,8 +266,8 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { // Render a favorited item with a checkbox const renderFavoritedItem = (favId: string) => { - // Regular action item - const action = ACTION_METADATA.flatMap((a) => [a, a.subAction]).find((a) => a?.id === favId) + const actions = [...ACTION_METADATA.flatMap((a) => [a, a.subAction]), NOTIFICATIONS_SETTING] + const action = actions.find((a) => a?.id === favId) if (!action) return null return ( @@ -380,18 +381,15 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { placement="top"> Auto-approve - +