diff --git a/front/components/assistant/conversation/input_bar/InputBarContainer.tsx b/front/components/assistant/conversation/input_bar/InputBarContainer.tsx index 318d34f089b7..a95dd3431c80 100644 --- a/front/components/assistant/conversation/input_bar/InputBarContainer.tsx +++ b/front/components/assistant/conversation/input_bar/InputBarContainer.tsx @@ -44,6 +44,7 @@ import { getSkillIcon } from "@app/lib/skill"; import { useSpaces, useSpacesSearch } from "@app/lib/swr/spaces"; import { useIsMobile } from "@app/lib/swr/useIsMobile"; import { classNames } from "@app/lib/utils"; +import { getManageSkillsRoute } from "@app/lib/utils/router"; import type { ConversationWithoutContentType, DataSourceViewContentNode, @@ -56,6 +57,7 @@ import type { import { assertNever, getSupportedFileExtensions, + isBuilder, normalizeError, toRichAgentMentionType, } from "@app/types"; @@ -616,6 +618,12 @@ const InputBarContainer = ({ size="xs" label={skill.name} icon={getSkillIcon(skill.icon)} + href={ + isBuilder(owner) + ? getManageSkillsRoute(owner.sId, skill.sId) + : undefined + } + target="_blank" className="m-0.5 hidden bg-background text-foreground dark:bg-background-night dark:text-foreground-night md:flex" onRemove={ disableInput @@ -628,6 +636,12 @@ const InputBarContainer = ({ { + return ( + `/w/${workspaceId}/builder/skills` + (skillId ? `#?skillId=${skillId}` : "") + ); +}; + export const getConversationRoute = ( workspaceId: string, conversationIdOrNew: string | null = "new",