1- import { Alert , Badge , Box , ButtonGroup , CircularProgress , Divider , FormControlLabel , Grid2 , IconButton , Link , Modal , Paper , Stack , Switch , Tab , Tabs , TextField , Tooltip , Typography , useTheme } from "@mui/material" ;
2- import { CheckOutlined , Close , CloseOutlined , DeleteOutlined } from "@mui/icons-material" ;
3- import { useEffect , useMemo , useState } from "react" ;
4- import { CatalogItemRichened } from "../../types/catalog" ;
51import { v1 } from "@docker/extension-api-client-types" ;
6- import { ASSIGNED_SECRET_PLACEHOLDER , CATALOG_LAYOUT_SX , MCP_POLICY_NAME , UNASSIGNED_SECRET_PLACEHOLDER } from "../../Constants" ;
7- import ConfigEditor from "./ConfigEditor" ;
8- import { useSecrets } from "../../queries/useSecrets" ;
2+ import { CheckOutlined , Close , CloseOutlined , DeleteOutlined } from "@mui/icons-material" ;
3+ import { Alert , Badge , Box , ButtonGroup , CircularProgress , Divider , FormControlLabel , Grid2 , IconButton , Link , Modal , Paper , Stack , Switch , Tab , Tabs , TextField , Tooltip , Typography , useTheme } from "@mui/material" ;
4+ import { useEffect , useState } from "react" ;
5+ import { ASSIGNED_SECRET_PLACEHOLDER , MCP_POLICY_NAME } from "../../Constants" ;
96import { useCatalogAll , useCatalogOperations } from "../../queries/useCatalog" ;
107import { useConfig } from "../../queries/useConfig" ;
8+ import { useSecrets } from "../../queries/useSecrets" ;
9+ import { CatalogItemRichened } from "../../types/catalog" ;
10+ import ConfigEditor from "./ConfigEditor" ;
1111
1212interface TabPanelProps {
1313 children ?: React . ReactNode ;
@@ -155,8 +155,7 @@ const ConfigurationModal = ({
155155 < Box sx = { { borderBottom : 1 , borderColor : 'divider' , mt : 2 } } >
156156 < Tabs value = { tabValue } onChange = { handleTabChange } >
157157 < Tab label = "Tools" />
158- { /* <Tab label="Prompts" /> */ }
159- < Tab disabled = { contributesNoConfigOrSecrets } label = { < Badge invisible = { catalogItem . canRegister } sx = { { pl : 1 , pr : 1 } } variant = "dot" badgeContent = { catalogItem . config && catalogItem . config . length > 0 ? 'Secrets' : 'Config' } color = "error" > Config & Secrets </ Badge > } />
158+ { ! contributesNoConfigOrSecrets && < Tab label = { < Badge invisible = { catalogItem . canRegister } sx = { { pl : 1 , pr : 1 } } variant = "dot" badgeContent = { catalogItem . config && catalogItem . config . length > 0 ? 'Secrets' : 'Config' } color = "error" > Config & Secrets </ Badge > } /> }
160159 </ Tabs >
161160 </ Box >
162161 < TabPanel value = { tabValue } index = { 0 } >
@@ -168,11 +167,9 @@ const ConfigurationModal = ({
168167 < Grid2 container spacing = { 2 } alignItems = "flex-start" sx = { { mt : 1 , overflow : 'auto' , maxHeight : 'calc(80vh - 350px)' } } >
169168 { ( catalogItem . tools || [ ] ) . map ( ( tool ) => (
170169 < Grid2 key = { tool . name } size = { { xs : 12 , sm : 12 , md : 6 , lg : 6 , xl : 6 } } >
171- < Tooltip title = { tool . name } >
172- < Typography component = "span" key = { tool . name } sx = { toolChipStyle } >
173- { tool . name . slice ( 0 , 30 ) + ( tool . name . length > 30 ? '...' : '' ) }
174- </ Typography >
175- </ Tooltip >
170+ < Typography component = "span" key = { tool . name } sx = { toolChipStyle } >
171+ { tool . name . slice ( 0 , 30 ) + ( tool . name . length > 30 ? '...' : '' ) }
172+ </ Typography >
176173 </ Grid2 >
177174 ) ) }
178175 </ Grid2 >
0 commit comments