From 1b9a852ca897276d018aa94a00c6b0b2c28760ae Mon Sep 17 00:00:00 2001 From: ciregenz Date: Mon, 27 Jul 2026 20:33:56 -0700 Subject: [PATCH] [eric] settings: capability pane chrome quieted to the shared grammar (Tools group headers, Commands section header) --- frontend/src/app/pages/Commands/Commands.tsx | 33 ++++++-------------- frontend/src/app/pages/Tools/Tools.tsx | 22 +++++++------ 2 files changed, 22 insertions(+), 33 deletions(-) diff --git a/frontend/src/app/pages/Commands/Commands.tsx b/frontend/src/app/pages/Commands/Commands.tsx index 445c40a0..141130d4 100644 --- a/frontend/src/app/pages/Commands/Commands.tsx +++ b/frontend/src/app/pages/Commands/Commands.tsx @@ -41,30 +41,17 @@ const SectionHeader: React.FC<{ subtitle: string; count?: number; c: any; -}> = ({ icon, title, subtitle, count, c }) => ( - - {icon} - - - - {title} - - {count !== undefined && ( - - )} - - {subtitle} +}> = ({ title, subtitle, count, c }) => ( + + + + {title} + + {count !== undefined && ( + {count} + )} + {subtitle} ); diff --git a/frontend/src/app/pages/Tools/Tools.tsx b/frontend/src/app/pages/Tools/Tools.tsx index 8ed19c1a..3d8fdd95 100644 --- a/frontend/src/app/pages/Tools/Tools.tsx +++ b/frontend/src/app/pages/Tools/Tools.tsx @@ -139,12 +139,13 @@ const Tools: React.FC = () => { setBuiltinSectionOpen((v) => !v)} - sx={{ display: 'flex', alignItems: 'center', gap: 0.5, mb: 1, cursor: 'pointer', userSelect: 'none', '&:hover .section-arrow': { color: c.text.secondary } }} + sx={{ display: 'flex', alignItems: 'center', gap: 0.75, mb: 1, px: 0.5, cursor: 'pointer', userSelect: 'none', '&:hover .section-arrow': { color: c.text.secondary } }} > - {builtinSectionOpen ? : } - - Built-in - + + Built-in + + {coreTools.length + deferredTools.length + browserTools.length} + {builtinSectionOpen ? : } @@ -180,11 +181,12 @@ const Tools: React.FC = () => { - setCustomSectionOpen((v) => !v)} sx={{ display: 'flex', alignItems: 'center', gap: 0.5, mb: 1, cursor: 'pointer', userSelect: 'none', '&:hover .section-arrow': { color: c.text.secondary } }}> - {customSectionOpen ? : } - - Connections - + setCustomSectionOpen((v) => !v)} sx={{ display: 'flex', alignItems: 'center', gap: 0.75, mb: 1, px: 0.5, cursor: 'pointer', userSelect: 'none', '&:hover .section-arrow': { color: c.text.secondary } }}> + + Connections + + {tools.length + uninstalledIntegrations.length} + {customSectionOpen ? : } {loading ? (