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" ;
5
1
import { 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" ;
9
6
import { useCatalogAll , useCatalogOperations } from "../../queries/useCatalog" ;
10
7
import { useConfig } from "../../queries/useConfig" ;
8
+ import { useSecrets } from "../../queries/useSecrets" ;
9
+ import { CatalogItemRichened } from "../../types/catalog" ;
10
+ import ConfigEditor from "./ConfigEditor" ;
11
11
12
12
interface TabPanelProps {
13
13
children ?: React . ReactNode ;
@@ -155,8 +155,7 @@ const ConfigurationModal = ({
155
155
< Box sx = { { borderBottom : 1 , borderColor : 'divider' , mt : 2 } } >
156
156
< Tabs value = { tabValue } onChange = { handleTabChange } >
157
157
< 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 > } /> }
160
159
</ Tabs >
161
160
</ Box >
162
161
< TabPanel value = { tabValue } index = { 0 } >
@@ -168,11 +167,9 @@ const ConfigurationModal = ({
168
167
< Grid2 container spacing = { 2 } alignItems = "flex-start" sx = { { mt : 1 , overflow : 'auto' , maxHeight : 'calc(80vh - 350px)' } } >
169
168
{ ( catalogItem . tools || [ ] ) . map ( ( tool ) => (
170
169
< 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 >
176
173
</ Grid2 >
177
174
) ) }
178
175
</ Grid2 >
0 commit comments