From 16843a81b5430e831b7c5e687b2158d717d44dc4 Mon Sep 17 00:00:00 2001 From: SaelixCode Date: Sun, 5 Jul 2026 23:44:50 -0400 Subject: [PATCH] fix: remove Mute button from stack anatomy panel header --- frontend/src/components/EditorLayout/EditorView.tsx | 7 +------ frontend/src/components/StackAnatomyPanel.tsx | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/frontend/src/components/EditorLayout/EditorView.tsx b/frontend/src/components/EditorLayout/EditorView.tsx index 845e93fc..f109b0fd 100644 --- a/frontend/src/components/EditorLayout/EditorView.tsx +++ b/frontend/src/components/EditorLayout/EditorView.tsx @@ -47,7 +47,6 @@ import { retryHandlerFor } from './recovery-retry'; import type { NotificationItem } from '../dashboard/types'; import type { Node } from '@/context/NodeContext'; import type { useAuth } from '@/context/AuthContext'; -import type { useStackMuteActions } from '@/hooks/useMuteRuleActions'; export interface ContainerInfo { Id: string; @@ -217,7 +216,6 @@ export interface EditorViewProps { // slot (the global TopBar is dropped on the full-screen detail surface). headerActions?: React.ReactNode; - stackMuteActions?: ReturnType; } export function EditorView(props: EditorViewProps) { @@ -274,7 +272,6 @@ export function EditorView(props: EditorViewProps) { onRefreshState, onDismissRecovery, panelStartedAt, - stackMuteActions, } = props; const monacoEditorRef = useRef(null); @@ -381,8 +378,7 @@ export function EditorView(props: EditorViewProps) { rollbackStack={rollbackStack} scanStackConfig={scanStackConfig} requestDeleteStack={requestDeleteStack} - stackMuteActions={stackMuteActions} - /> + /> {recoveryResult && loadingAction == null && (
@@ -654,7 +650,6 @@ export function EditorView(props: EditorViewProps) { applying={loadingAction === 'update'} canEdit={can('stack:edit', 'stack', stackName)} notifications={notifications} - stackMuteActions={stackMuteActions} /> )}
diff --git a/frontend/src/components/StackAnatomyPanel.tsx b/frontend/src/components/StackAnatomyPanel.tsx index 8da21349..bd9c21cd 100644 --- a/frontend/src/components/StackAnatomyPanel.tsx +++ b/frontend/src/components/StackAnatomyPanel.tsx @@ -20,8 +20,6 @@ import ComposeLabelsPanel from './stack/ComposeLabelsPanel'; import StackNetworkingPanel from './stack/StackNetworkingPanel'; import { useNodes } from '@/context/NodeContext'; import type { NotificationItem } from '@/components/dashboard/types'; -import { ActivityMuteKebab } from '@/components/mute/MuteMenuItems'; -import type { useStackMuteActions } from '@/hooks/useMuteRuleActions'; interface StackAnatomyPanelProps { stackName: string; @@ -36,7 +34,6 @@ interface StackAnatomyPanelProps { canEdit: boolean; applying?: boolean; notifications?: NotificationItem[]; - stackMuteActions?: ReturnType; } type SemverBump = 'none' | 'patch' | 'minor' | 'major' | 'unknown'; @@ -92,7 +89,6 @@ export default function StackAnatomyPanel({ canEdit, applying = false, notifications, - stackMuteActions, }: StackAnatomyPanelProps) { const anatomy = useMemo(() => parseAnatomy(content), [content]); const envKeys = useMemo(() => parseEnvKeys(envContent), [envContent]); @@ -447,7 +443,6 @@ export default function StackAnatomyPanel({ edit )} - {stackMuteActions && }