diff --git a/src/web-ui/src/app/components/NavPanel/components/PersistentFooterActions.tsx b/src/web-ui/src/app/components/NavPanel/components/PersistentFooterActions.tsx index 7b9cbb57d3..02c21c8853 100644 --- a/src/web-ui/src/app/components/NavPanel/components/PersistentFooterActions.tsx +++ b/src/web-ui/src/app/components/NavPanel/components/PersistentFooterActions.tsx @@ -3,7 +3,6 @@ import { Settings, Info, MoreVertical, - PictureInPicture2, SquareTerminal, Terminal, Smartphone, @@ -11,6 +10,7 @@ import { ExternalLink, BarChart3, ChevronUp, + MessageSquare, // LogIn, } from 'lucide-react'; import { systemAPI } from '@/infrastructure/api'; @@ -20,7 +20,6 @@ import { useSceneManager } from '../../../hooks/useSceneManager'; import { useNavSceneStore } from '../../../stores/navSceneStore'; import { useSceneStore } from '../../../stores/sceneStore'; import { useCanvasStore } from '@/app/components/panels/content-canvas/stores'; -import { useToolbarModeContext } from '@/flow_chat/components/toolbar-mode/ToolbarModeContext'; import { useNotification } from '@/shared/notification-system'; import { useAccountLoginState } from '@/infrastructure/account/useAccountLoginState'; // import { remoteConnectAPI } from '@/infrastructure/api/service-api/RemoteConnectAPI'; @@ -54,7 +53,6 @@ const PersistentFooterActions: React.FC = () => { const activeTab = s.primaryGroup.tabs.find((t) => t.id === s.primaryGroup.activeTabId); return activeTab?.content.type === 'browser'; }); - const { enableToolbarMode } = useToolbarModeContext(); const { warning } = useNotification(); const { loggedIn: accountLoggedIn, deviceName: accountDeviceName } = useAccountLoginState(); @@ -155,11 +153,6 @@ const PersistentFooterActions: React.FC = () => { void systemAPI.openExternal('https://gitcode.com/OpenHarmonyPCDeveloper/BitFun/issues'); }, [closeMenu]); - const handleFloatingMode = () => { - closeMenu(); - enableToolbarMode(); - }; - // const handleAccountLogin = () => { // closeMenu(); // setShowAccountLogin(true); @@ -244,17 +237,6 @@ const PersistentFooterActions: React.FC = () => { )}
- -
+ -
)} diff --git a/src/web-ui/src/app/scenes/agents/AgentsScene.tsx b/src/web-ui/src/app/scenes/agents/AgentsScene.tsx index 844908d51d..91d69f0590 100644 --- a/src/web-ui/src/app/scenes/agents/AgentsScene.tsx +++ b/src/web-ui/src/app/scenes/agents/AgentsScene.tsx @@ -1297,7 +1297,7 @@ const AgentsHomeView: React.FC = () => { variant="secondary" size="small" onClick={() => { - setSettingsTab('external-sources'); + setSettingsTab('mcp-tools'); closeAgentDetails(); openScene('settings'); }} diff --git a/src/web-ui/src/app/scenes/settings/SettingsScene.tsx b/src/web-ui/src/app/scenes/settings/SettingsScene.tsx index 8e4fc9d439..3794da69a8 100644 --- a/src/web-ui/src/app/scenes/settings/SettingsScene.tsx +++ b/src/web-ui/src/app/scenes/settings/SettingsScene.tsx @@ -22,15 +22,15 @@ import { ArchivedSessionsConfig, BasicsConfig, EditorConfig, - ExternalSourcesConfig, + // ExternalSourcesConfig, // temporarily hidden from config center KeyboardShortcutsTab, McpToolsConfig, MemoriesConfig, QuickActionsConfig, ReviewConfig, SessionPermissionsConfig, - SessionPersonalizationConfig, - VoiceInputConfig, + // SessionPersonalizationConfig, // temporarily hidden from config center + // VoiceInputConfig, // temporarily hidden from config center } from './settingsContentRegistry'; import './SettingsScene.scss'; @@ -54,14 +54,14 @@ function resolveSettingsContent(tab: ConfigTab): React.ComponentType | null { case 'appearance': return AppearanceConfig; case 'models': return AIModelConfig; case 'archived-sessions': return ArchivedSessionsConfig; - case 'session-personalization': return SessionPersonalizationConfig; + // case 'session-personalization': return SessionPersonalizationConfig; // temporarily hidden case 'session-permissions': return SessionPermissionsConfig; case 'quick-actions': return QuickActionsConfig; - case 'voice-input': return VoiceInputConfig; + // case 'voice-input': return VoiceInputConfig; // temporarily hidden case 'review': return ReviewConfig; case 'memories': return MemoriesConfig; case 'mcp-tools': return McpToolsConfig; - case 'external-sources': return ExternalSourcesConfig; + // case 'external-sources': return ExternalSourcesConfig; // temporarily hidden // case 'acp-agents': return AcpAgentsConfig; // temporarily hidden from config center case 'editor': return EditorConfig; case 'keyboard': return KeyboardShortcutsTab; @@ -74,14 +74,14 @@ const SettingsScene: React.FC = () => { const setActiveTab = useSettingsStore(s => s.setActiveTab); const resolvedTab: ConfigTab = - (activeTab as string) === 'session-config' ? 'session-personalization' : activeTab; + (activeTab as string) === 'session-config' ? 'session-permissions' : activeTab; const [outgoingTab, setOutgoingTab] = useState(null); const previousTabRef = useRef(resolvedTab); useEffect(() => { /** Legacy merged session settings tab removed in favor of two panels. */ if ((activeTab as string) === 'session-config') { - setActiveTab('session-personalization'); + setActiveTab('session-permissions'); } }, [activeTab, setActiveTab]); diff --git a/src/web-ui/src/app/scenes/settings/settingsConfig.ts b/src/web-ui/src/app/scenes/settings/settingsConfig.ts index 15f23bea93..d034b81222 100644 --- a/src/web-ui/src/app/scenes/settings/settingsConfig.ts +++ b/src/web-ui/src/app/scenes/settings/settingsConfig.ts @@ -10,14 +10,14 @@ export type ConfigTab = | 'appearance' | 'models' | 'archived-sessions' - | 'session-personalization' + // | 'session-personalization' // temporarily hidden from config center | 'session-permissions' | 'quick-actions' - | 'voice-input' + // | 'voice-input' // temporarily hidden from config center | 'review' | 'memories' | 'mcp-tools' - | 'external-sources' + // | 'external-sources' // temporarily hidden from config center // | 'acp-agents' // temporarily hidden from config center // | 'lsp' // temporarily hidden from config center | 'editor' @@ -133,19 +133,20 @@ export const SETTINGS_CATEGORIES: ConfigCategoryDef[] = [ id: 'smartCapabilities', nameKey: 'configCenter.categories.smartCapabilities', tabs: [ - { - id: 'session-personalization', - labelKey: 'configCenter.tabs.sessionPersonalization', - descriptionKey: 'configCenter.tabDescriptions.sessionPersonalization', - keywords: [ - 'session', - 'companion', - 'agent', - 'pixel', - 'pet', - 'partner', - ], - }, + // session-personalization temporarily hidden from config center + // { + // id: 'session-personalization', + // labelKey: 'configCenter.tabs.sessionPersonalization', + // descriptionKey: 'configCenter.tabDescriptions.sessionPersonalization', + // keywords: [ + // 'session', + // 'companion', + // 'agent', + // 'pixel', + // 'pet', + // 'partner', + // ], + // }, { id: 'session-permissions', labelKey: 'configCenter.tabs.sessionPermissions', @@ -184,12 +185,13 @@ export const SETTINGS_CATEGORIES: ConfigCategoryDef[] = [ 'shortcut', ], }, - { - id: 'voice-input', - labelKey: 'configCenter.tabs.voiceInput', - descriptionKey: 'configCenter.tabDescriptions.voiceInput', - keywords: ['voice', 'speech', 'microphone', 'dictation', 'transcription', 'audio'], - }, + // voice-input temporarily hidden from config center + // { + // id: 'voice-input', + // labelKey: 'configCenter.tabs.voiceInput', + // descriptionKey: 'configCenter.tabDescriptions.voiceInput', + // keywords: ['voice', 'speech', 'microphone', 'dictation', 'transcription', 'audio'], + // }, { id: 'review', labelKey: 'configCenter.tabs.review', @@ -221,22 +223,23 @@ export const SETTINGS_CATEGORIES: ConfigCategoryDef[] = [ 'knowledge', ], }, - { - id: 'external-sources', - labelKey: 'configCenter.tabs.externalSources', - descriptionKey: 'configCenter.tabDescriptions.externalSources', - beta: true, - keywords: [ - 'external ai applications', - 'import work', - 'extensions', - 'commands', - 'opencode', - 'claude code', - 'codex', - 'compatibility', - ], - }, + // external-sources temporarily hidden from config center + // { + // id: 'external-sources', + // labelKey: 'configCenter.tabs.externalSources', + // descriptionKey: 'configCenter.tabDescriptions.externalSources', + // beta: true, + // keywords: [ + // 'external ai applications', + // 'import work', + // 'extensions', + // 'commands', + // 'opencode', + // 'claude code', + // 'codex', + // 'compatibility', + // ], + // }, { id: 'mcp-tools', labelKey: 'configCenter.tabs.mcpTools', @@ -299,7 +302,7 @@ export function normalizeSettingsTab(section: string): ConfigTab { if (section === 'theme' || section === 'font' || section === 'fonts') return 'appearance'; if (section === 'logging' || section === 'terminal') return 'basics'; if (section === 'lsp') return DEFAULT_SETTINGS_TAB; - if (section === 'session-config') return 'session-personalization'; + if (section === 'session-config') return 'session-permissions'; if (section === 'deep-review' || section === 'code-review' || section === 'review-team') return 'review'; if (section === 'shortcuts' || section === 'keybindings' || section === 'hotkeys') return 'keyboard'; if ((KNOWN_TABS as readonly string[]).includes(section)) return section as ConfigTab; diff --git a/src/web-ui/src/app/scenes/settings/settingsContentRegistry.ts b/src/web-ui/src/app/scenes/settings/settingsContentRegistry.ts index 807a19a84f..d18d2de39a 100644 --- a/src/web-ui/src/app/scenes/settings/settingsContentRegistry.ts +++ b/src/web-ui/src/app/scenes/settings/settingsContentRegistry.ts @@ -45,14 +45,14 @@ const SETTINGS_CONTENT_LOADERS: Partial Promise appearance: loadAppearanceConfig, models: loadAIModelConfig, 'archived-sessions': loadArchivedSessionsConfig, - 'session-personalization': loadSessionConfig, + // 'session-personalization': loadSessionConfig, // temporarily hidden from config center 'session-permissions': loadSessionConfig, 'quick-actions': loadQuickActionsConfig, - 'voice-input': loadVoiceInputConfig, + // 'voice-input': loadVoiceInputConfig, // temporarily hidden from config center review: loadReviewConfig, memories: loadMemoriesConfig, 'mcp-tools': loadMcpToolsConfig, - 'external-sources': loadExternalSourcesConfig, + // 'external-sources': loadExternalSourcesConfig, // temporarily hidden from config center // 'acp-agents': loadAcpAgentsConfig, // temporarily hidden from config center editor: loadEditorConfig, keyboard: loadKeyboardShortcutsTab, diff --git a/src/web-ui/src/app/scenes/settings/settingsTabSearchContent.ts b/src/web-ui/src/app/scenes/settings/settingsTabSearchContent.ts index e24ed6814c..17c51a7818 100644 --- a/src/web-ui/src/app/scenes/settings/settingsTabSearchContent.ts +++ b/src/web-ui/src/app/scenes/settings/settingsTabSearchContent.ts @@ -57,12 +57,12 @@ export const SETTINGS_TAB_SEARCH_CONTENT: Record { - useSettingsStore.getState().setActiveTab('voice-input'); + // voice-input settings tab is temporarily hidden; open default settings tab. useSceneStore.getState().openScene('settings'); }, []); diff --git a/src/web-ui/src/infrastructure/config/components/ExternalMcpOverview.tsx b/src/web-ui/src/infrastructure/config/components/ExternalMcpOverview.tsx index 83bbb518eb..c67fae877c 100644 --- a/src/web-ui/src/infrastructure/config/components/ExternalMcpOverview.tsx +++ b/src/web-ui/src/infrastructure/config/components/ExternalMcpOverview.tsx @@ -355,7 +355,7 @@ const ExternalMcpOverview: React.FC = () => { setSettingsTab('external-sources')} + onClick={() => setSettingsTab('mcp-tools')} tooltip={t('external.manage')} aria-label={t('external.manage')} > diff --git a/src/web-ui/src/infrastructure/config/components/ExternalSourcesConfig.scss b/src/web-ui/src/infrastructure/config/components/ExternalSourcesConfig.scss index 7d33be32bb..f8c2109317 100644 --- a/src/web-ui/src/infrastructure/config/components/ExternalSourcesConfig.scss +++ b/src/web-ui/src/infrastructure/config/components/ExternalSourcesConfig.scss @@ -37,12 +37,6 @@ position: relative; } - .bitfun-config-page-section__body { - border: 0; - border-radius: 0; - background: transparent; - } - .bitfun-config-page-row { padding: 12px 0; } diff --git a/src/web-ui/src/infrastructure/config/components/McpToolsConfig.scss b/src/web-ui/src/infrastructure/config/components/McpToolsConfig.scss index 1920a52ac6..0edcd189a8 100644 --- a/src/web-ui/src/infrastructure/config/components/McpToolsConfig.scss +++ b/src/web-ui/src/infrastructure/config/components/McpToolsConfig.scss @@ -1,16 +1,6 @@ @use '../../../component-library/styles/tokens' as *; .bitfun-mcp-tools { - .bitfun-config-page-section__body { - border: 0; - border-radius: 0; - background: transparent; - } - - .bitfun-config-page-row { - padding: $size-gap-3 0; - } - .bitfun-collection-empty { justify-content: flex-start; padding: $size-gap-2 0; @@ -50,7 +40,7 @@ &__json-actions { display: flex; - justify-content: flex-end; + justify-content: center; gap: $size-gap-2; } diff --git a/src/web-ui/src/infrastructure/config/components/SessionConfig.tsx b/src/web-ui/src/infrastructure/config/components/SessionConfig.tsx index 48e07e73a7..f4a4692fa3 100644 --- a/src/web-ui/src/infrastructure/config/components/SessionConfig.tsx +++ b/src/web-ui/src/infrastructure/config/components/SessionConfig.tsx @@ -1226,6 +1226,7 @@ const SessionSettingsPanels: React.FC = ({ variant } {/* ── Computer use (desktop) ─────────────────────────────── */} + {false && ( = ({ variant } ) : null} + )} {/* ── Browser control (CDP) ──────────────────────────────── */} + {false && ( = ({ variant } ) : null} + )} {/* ── Debug mode settings ───────────────────────────────── */} + {false && ( = ({ variant } + )} {/* ── Language templates modal ───────────────────────────── */}