Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions document/content/docs/upgrading/4-14/4142.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ description: 'FastGPT V4.14.2 更新说明'
1. 简易应用模板未正常转化。
2. 工具调用中,包含两个以上连续用户选择时候,第二个用户选择异常。
3. 门户中,团队应用类型错误。
4. 应用作为 MCP 导出,被其他应用使用时,全局变量不需要填写。

## 插件

Expand Down
2 changes: 1 addition & 1 deletion document/data/doc-last-modified.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"document/content/docs/upgrading/4-13/4132.mdx": "2025-10-21T11:46:53+08:00",
"document/content/docs/upgrading/4-14/4140.mdx": "2025-11-06T15:43:00+08:00",
"document/content/docs/upgrading/4-14/4141.mdx": "2025-11-12T12:19:02+08:00",
"document/content/docs/upgrading/4-14/4142.mdx": "2025-11-17T19:34:52+08:00",
"document/content/docs/upgrading/4-14/4142.mdx": "2025-11-17T21:02:39+08:00",
"document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00",
"document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00",
"document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00",
Expand Down
1 change: 1 addition & 0 deletions packages/web/i18n/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"dataset": "dataset",
"dataset.Select_dataset_model_tip": "Only knowledge bases with the same index model can be selected",
"dataset.create_dataset_tips": "For more advanced operations, please go to",
"dataset_create_failed": "Knowledge base creation failed",
"dataset_create_success": "The knowledge base was created successfully and files are being indexed in the background.",
"dataset_empty_tips": "You don’t have a knowledge base yet, create one first.",
"dataset_search_tool_description": "Call the \"Semantic Search\" and \"Full-text Search\" capabilities to find reference content that may be related to the problem from the \"Knowledge Base\". \nPrioritize calling this tool to assist in answering user questions.",
Expand Down
1 change: 1 addition & 0 deletions packages/web/i18n/zh-CN/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"dataset": "知识库",
"dataset.Select_dataset_model_tip": "仅能选择同一个索引模型的知识库",
"dataset.create_dataset_tips": "更多高级操作请前往",
"dataset_create_failed": "知识库创建失败",
"dataset_create_success": "知识库创建成功,正在后台索引文件",
"dataset_empty_tips": "你还没有知识库,先创建一个吧",
"dataset_search_tool_description": "调用“语义检索”和“全文检索”能力,从“知识库”中查找可能与问题相关的参考内容。优先调用该工具来辅助回答用户的问题。",
Expand Down
1 change: 1 addition & 0 deletions packages/web/i18n/zh-Hant/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
"dataset": "知識庫",
"dataset.Select_dataset_model_tip": "僅能選擇同一個索引模型的知識庫",
"dataset.create_dataset_tips": "更多高級操作請前往",
"dataset_create_failed": "知識庫創建失敗",
"dataset_create_success": "知識庫創建成功,正在後台索引文件",
"dataset_empty_tips": "你還沒有知識庫,先創建一個吧",
"dataset_search_tool_description": "呼叫「語意搜尋」和「全文搜尋」功能,從「知識庫」中尋找可能與問題相關的參考內容。優先呼叫這個工具來協助回答使用者的問題。",
Expand Down
8 changes: 4 additions & 4 deletions projects/app/src/components/Layout/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ const Navbar = ({ unread }: { unread: number }) => {
[lastChatAppId, lastPane, t, userInfo?.username]
);

const isSecondNavbarPage = useMemo(() => {
return ['/plugin'].includes(router.pathname);
const isDashboardPage = useMemo(() => {
return router.pathname.startsWith('/dashboard');
}, [router.pathname]);

return (
Expand All @@ -123,7 +123,7 @@ const Navbar = ({ unread }: { unread: number }) => {
w={'100%'}
userSelect={'none'}
pb={2}
bg={isSecondNavbarPage ? 'white' : 'transparent'}
bg={isDashboardPage ? 'white' : 'transparent'}
>
{/* logo */}
<Box flex={'0 0 auto'} mb={3}>
Expand All @@ -147,7 +147,7 @@ const Navbar = ({ unread }: { unread: number }) => {
: {
bg: 'transparent',
_hover: {
bg: isSecondNavbarPage ? 'white' : 'rgba(255,255,255,0.9)'
bg: isDashboardPage ? 'white' : 'rgba(255,255,255,0.9)'
}
})}
{...(item.link !== router.asPath
Expand Down
12 changes: 8 additions & 4 deletions projects/app/src/components/core/app/DatasetSelectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import SearchInput from '@fastgpt/web/components/common/Input/SearchInput';
import { useDatasetSelect } from '@/components/core/dataset/SelectModal';
import FolderPath from '@/components/common/folder/Path';
import EmptyTip from '@fastgpt/web/components/common/EmptyTip';
import QuickCreateDatasetModal from '@/pageComponents/app/detail/components/QuickCreateModal';
import QuickCreateDatasetModal from '@/pageComponents/app/detail/components/QuickCreateDatasetModal';
import { useUserStore } from '@/web/support/user/useUserStore';

// Dataset selection modal component
export const DatasetSelectModal = ({
Expand All @@ -47,6 +48,7 @@ export const DatasetSelectModal = ({
const [selectedDatasets, setSelectedDatasets] =
useState<SelectedDatasetType[]>(defaultSelectedDatasets);
const { toast } = useToast();
const { userInfo } = useUserStore();

// Use server-side search, following the logic of the dataset list page
const {
Expand Down Expand Up @@ -154,9 +156,11 @@ export const DatasetSelectModal = ({
<Flex h="100%" direction="column" flex={1} overflow="hidden" minH={0}>
<ModalBody flex={1} h={0} overflow="hidden">
{isRootEmpty ? (
<VStack mt={8}>
<VStack h={'full'} justifyContent={'center'}>
<EmptyTip text={t('app:dataset_empty_tips')} py={4} />
<Button onClick={onOpenQuickCreate}>{t('common:Create')}</Button>
{userInfo?.team?.permission.hasDatasetCreatePer && (
<Button onClick={onOpenQuickCreate}>{t('common:Create')}</Button>
)}
</VStack>
) : (
<>
Expand Down Expand Up @@ -427,7 +431,7 @@ export const DatasetSelectModal = ({
{/* Modal footer button area */}
<ModalFooter>
<HStack spacing={4} w="full" align="center">
{!isRootEmpty && (
{!isRootEmpty && userInfo?.team?.permission.hasDatasetCreatePer && (
<Button
leftIcon={<MyIcon name="common/addLight" w={4} />}
variant={'transparentBase'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,17 +408,15 @@ const RenderList = React.memo(function RenderList({
borderRadius={'sm'}
flexShrink={0}
/>
<Box
px={3}
color={'myGray.900'}
fontWeight={'500'}
fontSize={'sm'}
maxW={'180px'}
whiteSpace={'nowrap'}
overflow={'hidden'}
textOverflow={'ellipsis'}
>
{t(parseI18nString(template.name, i18n.language))}
<Box flex={'1 0 0'} ml={3}>
<Box
color={'myGray.900'}
fontWeight={'500'}
fontSize={'sm'}
className="textEllipsis"
>
{t(parseI18nString(template.name, i18n.language))}
</Box>
</Box>
<Box flex={1} />

Expand Down
Loading
Loading