diff --git a/frontend/src/modals/ConfigToolModal.tsx b/frontend/src/modals/ConfigToolModal.tsx
index 4a183e0b..8d413a4a 100644
--- a/frontend/src/modals/ConfigToolModal.tsx
+++ b/frontend/src/modals/ConfigToolModal.tsx
@@ -25,6 +25,7 @@ export default function ConfigToolModal({
const { t } = useTranslation();
const token = useSelector(selectToken);
const [authKey, setAuthKey] = React.useState('');
+ const [customName, setCustomName] = React.useState('');
const handleAddTool = (tool: AvailableToolType) => {
userService
@@ -34,6 +35,7 @@ export default function ConfigToolModal({
displayName: tool.displayName,
description: tool.description,
config: { token: authKey },
+ customName: customName,
actions: tool.actions,
status: true,
},
@@ -58,6 +60,16 @@ export default function ConfigToolModal({
{t('modals.configTool.type')}:{' '}
{tool?.name}
+
+ setCustomName(e.target.value)}
+ borderVariant="thin"
+ placeholder="Enter custom name (optional)"
+ labelBgClassName="bg-white dark:bg-charleston-green-2"
+ />
+
handleDeleteTool(tool),
variant: 'danger',
- iconWidth: 18,
- iconHeight: 18,
+ iconWidth: 12,
+ iconHeight: 12,
},
];
@@ -205,7 +205,7 @@ export default function Tools() {
) : (
userTools
.filter((tool) =>
- tool.displayName
+ (tool.customName || tool.displayName)
.toLowerCase()
.includes(searchTerm.toLowerCase()),
)
@@ -250,10 +250,10 @@ export default function Tools() {
- {tool.displayName}
+ {tool.customName || tool.displayName}
{tool.description}
@@ -269,7 +269,7 @@ export default function Tools() {
size="small"
id={`toolToggle-${index}`}
ariaLabel={t('settings.tools.toggleToolAria', {
- toolName: tool.displayName,
+ toolName: tool.customName || tool.displayName,
})}
/>