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) => { ...@@ -42,6 +42,7 @@ const AddFavouriteAppModal = ({ onClose, onRefresh }: Props) => {
type: [ type: [
AppTypeEnum.folder, AppTypeEnum.folder,
AppTypeEnum.simple, AppTypeEnum.simple,
AppTypeEnum.chatAgent,
AppTypeEnum.workflow, AppTypeEnum.workflow,
AppTypeEnum.workflowTool AppTypeEnum.workflowTool
] ]
......
...@@ -49,7 +49,12 @@ const AddQuickAppModal = ({ selectedIds, onClose, onConfirm }: Props) => { ...@@ -49,7 +49,12 @@ const AddQuickAppModal = ({ selectedIds, onClose, onConfirm }: Props) => {
getMyApps({ getMyApps({
parentId, parentId,
searchKey: searchAppName, searchKey: searchAppName,
type: [AppTypeEnum.folder, AppTypeEnum.simple, AppTypeEnum.workflow] type: [
AppTypeEnum.folder,
AppTypeEnum.simple,
AppTypeEnum.chatAgent,
AppTypeEnum.workflow
]
}), }),
searchAppName.trim() searchAppName.trim()
? Promise.resolve([]) ? Promise.resolve([])
...@@ -275,13 +280,7 @@ const AddQuickAppModal = ({ selectedIds, onClose, onConfirm }: Props) => { ...@@ -275,13 +280,7 @@ const AddQuickAppModal = ({ selectedIds, onClose, onConfirm }: Props) => {
)} )}
</Box> </Box>
<Avatar <Avatar src={item.avatar} w={7} h={7} borderRadius="sm" flexShrink={0} />
src={item.avatar}
w={7}
h={7}
borderRadius="sm"
flexShrink={0}
/>
<Box flex={1} minW={0}> <Box flex={1} minW={0}>
<Box <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