fix: node card link

This commit is contained in:
archer
2026-01-09 10:31:43 +08:00
parent f278b5a5fa
commit 1cbd26ee5d
8 changed files with 22 additions and 13 deletions

View File

@@ -15,10 +15,6 @@ const ChatSchema = new Schema({
type: String,
require: true
},
userId: {
type: Schema.Types.ObjectId,
ref: 'user'
},
teamId: {
type: Schema.Types.ObjectId,
ref: TeamCollectionName,
@@ -97,11 +93,15 @@ const ChatSchema = new Schema({
hasUnreadGoodFeedback: Boolean,
hasUnreadBadFeedback: Boolean,
searchKey: String,
deleteTime: {
type: Date,
default: null,
select: false
}
},
// @deprecated
userId: Schema.Types.ObjectId
});
try {

View File

@@ -1,6 +1,6 @@
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_30360_927)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 0.833336C15.0626 0.833336 19.1667 4.93739 19.1667 10C19.1667 15.0626 15.0626 19.1667 10 19.1667C4.93739 19.1667 0.833336 15.0626 0.833336 10C0.833336 4.93739 4.93739 0.833336 10 0.833336ZM10 17.5C10.0951 17.5 10.7259 17.3391 11.429 15.7921C11.742 15.1036 12.0067 14.2572 12.1946 13.2943H7.80539C7.99334 14.2572 8.25805 15.1036 8.571 15.7921C9.27415 17.3391 9.90487 17.5 10 17.5ZM7.5715 11.6277C7.52492 11.1056 7.5 10.5614 7.5 10C7.5 9.42872 7.5258 8.87537 7.57397 8.34492H12.426C12.4742 8.87537 12.5 9.42872 12.5 10C12.5 10.5614 12.4751 11.1056 12.4285 11.6277H7.5715ZM13.8895 13.2943C13.6355 14.7449 13.2187 16.0175 12.6883 17.0038C14.4614 16.3228 15.9103 14.9879 16.7396 13.2943H13.8895ZM17.3229 11.6277H14.1012C14.1442 11.0994 14.1667 10.5555 14.1667 10C14.1667 9.43491 14.1434 8.88176 14.0989 8.34492H17.3168C17.4367 8.87739 17.5 9.4313 17.5 10C17.5 10.5589 17.4389 11.1036 17.3229 11.6277ZM5.89882 11.6277H2.67711C2.56115 11.1036 2.5 10.5589 2.5 10C2.5 9.4313 2.5633 8.87739 2.68323 8.34492H5.90108C5.85658 8.88176 5.83334 9.43491 5.83334 10C5.83334 10.5555 5.85579 11.0994 5.89882 11.6277ZM3.26036 13.2943H6.1105C6.36451 14.7449 6.78134 16.0175 7.31173 17.0038C5.53862 16.3228 4.08972 14.9879 3.26036 13.2943ZM7.81077 6.67825H12.1892C12.0016 5.72674 11.739 4.88982 11.429 4.20786C10.7259 2.66093 10.0951 2.5 10 2.5C9.90487 2.5 9.27415 2.66093 8.571 4.20786C8.26102 4.88982 7.99838 5.72674 7.81077 6.67825ZM13.8847 6.67825H16.7261C15.8946 4.99771 14.4518 3.6735 12.6883 2.99618C13.2153 3.97628 13.6302 5.23909 13.8847 6.67825ZM7.31173 2.99618C6.78469 3.97628 6.36977 5.23909 6.11533 6.67825H3.27386C4.10539 4.99771 5.5482 3.6735 7.31173 2.99618Z" fill="#485264"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 0.833336C15.0626 0.833336 19.1667 4.93739 19.1667 10C19.1667 15.0626 15.0626 19.1667 10 19.1667C4.93739 19.1667 0.833336 15.0626 0.833336 10C0.833336 4.93739 4.93739 0.833336 10 0.833336ZM10 17.5C10.0951 17.5 10.7259 17.3391 11.429 15.7921C11.742 15.1036 12.0067 14.2572 12.1946 13.2943H7.80539C7.99334 14.2572 8.25805 15.1036 8.571 15.7921C9.27415 17.3391 9.90487 17.5 10 17.5ZM7.5715 11.6277C7.52492 11.1056 7.5 10.5614 7.5 10C7.5 9.42872 7.5258 8.87537 7.57397 8.34492H12.426C12.4742 8.87537 12.5 9.42872 12.5 10C12.5 10.5614 12.4751 11.1056 12.4285 11.6277H7.5715ZM13.8895 13.2943C13.6355 14.7449 13.2187 16.0175 12.6883 17.0038C14.4614 16.3228 15.9103 14.9879 16.7396 13.2943H13.8895ZM17.3229 11.6277H14.1012C14.1442 11.0994 14.1667 10.5555 14.1667 10C14.1667 9.43491 14.1434 8.88176 14.0989 8.34492H17.3168C17.4367 8.87739 17.5 9.4313 17.5 10C17.5 10.5589 17.4389 11.1036 17.3229 11.6277ZM5.89882 11.6277H2.67711C2.56115 11.1036 2.5 10.5589 2.5 10C2.5 9.4313 2.5633 8.87739 2.68323 8.34492H5.90108C5.85658 8.88176 5.83334 9.43491 5.83334 10C5.83334 10.5555 5.85579 11.0994 5.89882 11.6277ZM3.26036 13.2943H6.1105C6.36451 14.7449 6.78134 16.0175 7.31173 17.0038C5.53862 16.3228 4.08972 14.9879 3.26036 13.2943ZM7.81077 6.67825H12.1892C12.0016 5.72674 11.739 4.88982 11.429 4.20786C10.7259 2.66093 10.0951 2.5 10 2.5C9.90487 2.5 9.27415 2.66093 8.571 4.20786C8.26102 4.88982 7.99838 5.72674 7.81077 6.67825ZM13.8847 6.67825H16.7261C15.8946 4.99771 14.4518 3.6735 12.6883 2.99618C13.2153 3.97628 13.6302 5.23909 13.8847 6.67825ZM7.31173 2.99618C6.78469 3.97628 6.36977 5.23909 6.11533 6.67825H3.27386C4.10539 4.99771 5.5482 3.6735 7.31173 2.99618Z" />
</g>
<defs>
<clipPath id="clip0_30360_927">

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -238,7 +238,7 @@
"logs_points_per_chat": "Average points consumption for a single session",
"logs_points_per_chat_description": "How many points are consumed on average for a workflow operation",
"logs_response_time": "Average Response Time",
"logs_search_chat": "Search for session title or session ID",
"logs_search_chat": "title, session ID",
"logs_source": "source",
"logs_source_count_description": "Number of users across channels",
"logs_title": "Title",

View File

@@ -242,7 +242,7 @@
"logs_points_per_chat": "单次会话平均积分消耗",
"logs_points_per_chat_description": "工作流运行一次平均消耗多少积分",
"logs_response_time": "平均响应时长",
"logs_search_chat": "搜索会话标题会话 ID",
"logs_search_chat": "标题,会话 ID",
"logs_source": "来源",
"logs_source_count": "渠道用户",
"logs_source_count_description": "各渠道用户的数量",

View File

@@ -237,7 +237,7 @@
"logs_points_per_chat": "單次會話平均積分消耗",
"logs_points_per_chat_description": "工作流運行一次平均消耗多少積分",
"logs_response_time": "平均回應時長",
"logs_search_chat": "搜索會話標題會話 ID",
"logs_search_chat": "標題,會話 ID",
"logs_source": "來源",
"logs_source_count_description": "各渠道用戶的數量",
"logs_title": "標題",

View File

@@ -1,6 +1,6 @@
{
"name": "app",
"version": "4.14.4",
"version": "4.14.5",
"private": false,
"scripts": {
"dev": "npm run build:workers && next dev",

View File

@@ -463,7 +463,7 @@ const LogTable = ({
onSuccess={(date) => {
setDateRange(date);
}}
bg={'myGray.25'}
bg={'white'}
h={10}
flex={'0 1 250px'}
rounded={'8px'}
@@ -515,7 +515,7 @@ const LogTable = ({
pl={3}
>
<Box rounded={'8px'} bg={'white'} fontSize={'sm'} border={'none'} whiteSpace={'nowrap'}>
{t('common:chat')}
{t('common:Search')}
</Box>
<Box w={'1px'} h={'12px'} bg={'myGray.200'} mx={2} />
<Input

View File

@@ -57,6 +57,7 @@ import {
} from '@fastgpt/global/core/plugin/type';
import { splitCombineToolId, getToolRawId } from '@fastgpt/global/core/app/tool/utils';
import { getAppPermission } from '@/web/core/app/api';
import { ObjectIdSchema } from '@fastgpt/global/common/type/mongo';
type Props = FlowNodeItemType & {
children?: React.ReactNode | React.ReactNode[] | string;
@@ -436,7 +437,15 @@ const NodeTitleSection = React.memo<{
const { toast } = useToast();
const onChangeNode = useContextSelector(WorkflowActionsContext, (v) => v.onChangeNode);
const childAppId = useMemo(() => (appId ? getToolRawId(appId) : undefined), [appId]);
const childAppId = useMemo(() => {
if (!appId) return;
const rawId = getToolRawId(appId);
const result = ObjectIdSchema.safeParse(rawId);
if (result.success) {
return rawId;
}
return undefined;
}, [appId]);
// custom title edit
const { onOpenModal: onOpenCustomTitleModal, EditModal: EditTitleModal } = useEditTitle({