Commit 75b1e63d by DigHuang Committed by GitHub

feat(chat): support agent v2 in portal app selectors (#7259)

parent 402cf7fd
......@@ -42,6 +42,7 @@ const AddFavouriteAppModal = ({ onClose, onRefresh }: Props) => {
type: [
AppTypeEnum.folder,
AppTypeEnum.simple,
AppTypeEnum.chatAgent,
AppTypeEnum.workflow,
AppTypeEnum.workflowTool
]
......
......@@ -49,7 +49,12 @@ const AddQuickAppModal = ({ selectedIds, onClose, onConfirm }: Props) => {
getMyApps({
parentId,
searchKey: searchAppName,
type: [AppTypeEnum.folder, AppTypeEnum.simple, AppTypeEnum.workflow]
type: [
AppTypeEnum.folder,
AppTypeEnum.simple,
AppTypeEnum.chatAgent,
AppTypeEnum.workflow
]
}),
searchAppName.trim()
? Promise.resolve([])
......@@ -275,13 +280,7 @@ const AddQuickAppModal = ({ selectedIds, onClose, onConfirm }: Props) => {
)}
</Box>
<Avatar
src={item.avatar}
w={7}
h={7}
borderRadius="sm"
flexShrink={0}
/>
<Avatar src={item.avatar} w={7} h={7} borderRadius="sm" flexShrink={0} />
<Box flex={1} minW={0}>
<Box
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment