diff --git a/client/src/components/PromptsTab.tsx b/client/src/components/PromptsTab.tsx index fd28a386b..4c08110b0 100644 --- a/client/src/components/PromptsTab.tsx +++ b/client/src/components/PromptsTab.tsx @@ -18,6 +18,7 @@ import IconDisplay, { WithIcons } from "./IconDisplay"; export type Prompt = { name: string; + title?: string; description?: string; arguments?: { name: string; @@ -120,7 +121,7 @@ const PromptsTab = ({
- {prompt.name} + {prompt.title || prompt.name} {prompt.description} @@ -143,7 +144,9 @@ const PromptsTab = ({ /> )}

- {selectedPrompt ? selectedPrompt.name : "Select a prompt"} + {selectedPrompt + ? selectedPrompt.title || selectedPrompt.name + : "Select a prompt"}

diff --git a/client/src/components/ResourcesTab.tsx b/client/src/components/ResourcesTab.tsx index 36e5cec8f..897ae7a0f 100644 --- a/client/src/components/ResourcesTab.tsx +++ b/client/src/components/ResourcesTab.tsx @@ -135,7 +135,7 @@ const ResourcesTab = ({ )} - {resource.name} + {resource.title || resource.name} @@ -168,7 +168,7 @@ const ResourcesTab = ({ )} - {template.name} + {template.title || template.name} @@ -193,12 +193,16 @@ const ResourcesTab = ({ )}

{selectedResource - ? selectedResource.name + ? selectedResource.title || selectedResource.name : selectedTemplate - ? selectedTemplate.name + ? selectedTemplate.title || selectedTemplate.name : "Select a resource or template"}