Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
18efdb54
authored
Nov 14, 2025
by
heheer
Committed by
GitHub
Nov 14, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: chat page team app types (#5927)
parent
fea7c51d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
19 deletions
+34
-19
projects/app/src/pageComponents/chat/ChatTeamApp/List.tsx
+8
-12
projects/app/src/pageComponents/dashboard/Container.tsx
+3
-1
projects/app/src/pageComponents/dashboard/agent/context.tsx
+23
-6
No files found.
projects/app/src/pageComponents/chat/ChatTeamApp/List.tsx
View file @
18efdb54
...
...
@@ -8,7 +8,7 @@ import { useTranslation } from 'next-i18next';
import
MyBox
from
'@fastgpt/web/components/common/MyBox'
;
import
{
useContextSelector
}
from
'use-context-selector'
;
import
{
AppListContext
}
from
'@/pageComponents/dashboard/agent/context'
;
import
{
AppTypeEnum
}
from
'@fastgpt/global/core/app/constants'
;
import
{
AppTypeEnum
,
ToolTypeList
}
from
'@fastgpt/global/core/app/constants'
;
import
MyTooltip
from
'@fastgpt/web/components/common/MyTooltip'
;
import
AppTypeTag
from
'@/pageComponents/chat/ChatTeamApp/TypeTag'
;
...
...
@@ -18,7 +18,7 @@ import UserBox from '@fastgpt/web/components/common/UserBox';
import
{
ChatSettingContext
}
from
'@/web/core/chat/context/chatSettingContext'
;
import
{
ChatSidebarPaneEnum
}
from
'@/pageComponents/chat/constants'
;
const
List
Item
=
({
appType
}:
{
appType
:
AppTypeEnum
|
'all'
})
=>
{
const
List
=
({
appType
}:
{
appType
:
AppTypeEnum
|
'all'
})
=>
{
const
{
t
}
=
useTranslation
();
const
router
=
useRouter
();
const
{
isPc
}
=
useSystem
();
...
...
@@ -26,15 +26,11 @@ const ListItem = ({ appType }: { appType: AppTypeEnum | 'all' }) => {
const
myApps
=
useContextSelector
(
AppListContext
,
(
v
)
=>
v
.
myApps
.
filter
(
(
app
)
=>
appType
===
app
.
type
||
app
.
type
===
AppTypeEnum
.
folder
||
(
appType
===
'all'
&&
[
AppTypeEnum
.
folder
,
AppTypeEnum
.
simple
,
AppTypeEnum
.
workflow
,
AppTypeEnum
.
workflowTool
].
includes
(
app
.
type
))
appType
===
'all'
||
[
appType
,
ToolTypeList
.
includes
(
appType
)
?
AppTypeEnum
.
toolFolder
:
AppTypeEnum
.
folder
].
includes
(
app
.
type
)
)
);
const
handlePaneChange
=
useContextSelector
(
ChatSettingContext
,
(
v
)
=>
v
.
handlePaneChange
);
...
...
@@ -150,4 +146,4 @@ const ListItem = ({ appType }: { appType: AppTypeEnum | 'all' }) => {
</>
);
};
export
default
List
Item
;
export
default
List
;
projects/app/src/pageComponents/dashboard/Container.tsx
View file @
18efdb54
...
...
@@ -339,7 +339,9 @@ const DashboardContainer = ({
);
})
}
</
Box
>
<
TeamPlanStatusCard
/>
<
Box
px=
{
2.5
}
>
<
TeamPlanStatusCard
/>
</
Box
>
</
MyBox
>
)
}
...
...
projects/app/src/pageComponents/dashboard/agent/context.tsx
View file @
18efdb54
...
...
@@ -72,12 +72,27 @@ const AppListContextProvider = ({ children }: { children: ReactNode }) => {
loading
:
isFetchingApps
}
=
useRequest2
(
()
=>
{
const
isAgent
=
router
.
pathname
.
includes
(
'/agent'
);
const
formatType
=
isAgent
?
!
type
||
type
===
'all'
?
[
AppTypeEnum
.
folder
,
AppTypeEnum
.
simple
,
AppTypeEnum
.
workflow
]
:
[
AppTypeEnum
.
folder
,
type
]
:
!
type
||
type
===
'all'
const
formatType
=
(()
=>
{
// chat page show all apps
if
(
router
.
pathname
.
includes
(
'/chat'
))
{
return
[
AppTypeEnum
.
folder
,
AppTypeEnum
.
toolFolder
,
AppTypeEnum
.
simple
,
AppTypeEnum
.
workflow
,
AppTypeEnum
.
workflowTool
];
}
// agent page
if
(
router
.
pathname
.
includes
(
'/agent'
))
{
return
!
type
||
type
===
'all'
?
[
AppTypeEnum
.
folder
,
AppTypeEnum
.
simple
,
AppTypeEnum
.
workflow
]
:
[
AppTypeEnum
.
folder
,
type
];
}
// tool page
return
!
type
||
type
===
'all'
?
[
AppTypeEnum
.
toolFolder
,
AppTypeEnum
.
workflowTool
,
...
...
@@ -85,6 +100,8 @@ const AppListContextProvider = ({ children }: { children: ReactNode }) => {
AppTypeEnum
.
httpToolSet
]
:
[
AppTypeEnum
.
toolFolder
,
type
];
})();
return
getMyApps
({
parentId
,
type
:
formatType
,
searchKey
});
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment