From 6aaad85cc686d1e4f578b47b4a5cf0aa19fc0ad6 Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Fri, 25 Jul 2025 12:16:17 +0800 Subject: [PATCH] Fix: Add parsing animations to the agent log and optimize some page styles (#9040) ### What problem does this PR solve? Add parsing animations to the agent log and optimize some page styles #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/locales/en.ts | 2 +- web/src/locales/zh-traditional.ts | 2 +- web/src/locales/zh.ts | 2 +- .../agent/form/begin-form/query-table.tsx | 16 ++++--- web/src/pages/agent/log-sheet/index.tsx | 27 +++++++++++- web/src/pages/agents/agent-templates.tsx | 44 +++++++++++-------- 6 files changed, 65 insertions(+), 28 deletions(-) diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 6d1865064..58bc376ce 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -1050,7 +1050,7 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s }, operator: 'Operator', value: 'Value', - useTemplate: 'Use this template', + useTemplate: 'Use', wenCai: 'WenCai', queryType: 'Query type', wenCaiDescription: diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index 0bfc42b61..836478527 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -1017,7 +1017,7 @@ export default { }, operator: '操作符', value: '值', - useTemplate: '使用該模板', + useTemplate: '使用', wenCai: '問財', queryType: '查詢類型', wenCaiDescription: diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 0431edc8d..72d6ad9b4 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -1047,7 +1047,7 @@ General:实体和关系提取提示来自 GitHub - microsoft/graphrag:基于 }, operator: '操作符', value: '值', - useTemplate: '使用该模板', + useTemplate: '使用', wenCai: '问财', queryType: '查询类型', wenCaiDescription: diff --git a/web/src/pages/agent/form/begin-form/query-table.tsx b/web/src/pages/agent/form/begin-form/query-table.tsx index 463a2fa64..b92c43fe2 100644 --- a/web/src/pages/agent/form/begin-form/query-table.tsx +++ b/web/src/pages/agent/form/begin-form/query-table.tsx @@ -54,7 +54,7 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) { { accessorKey: 'key', header: 'key', - meta: { cellClassName: 'max-w-16' }, + meta: { cellClassName: 'max-w-30' }, cell: ({ row }) => { const key: string = row.getValue('key'); return ( @@ -72,7 +72,7 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) { { accessorKey: 'name', header: t('flow.name'), - meta: { cellClassName: 'max-w-20' }, + meta: { cellClassName: 'max-w-30' }, cell: ({ row }) => { const name: string = row.getValue('name'); return ( @@ -107,10 +107,16 @@ export function QueryTable({ data = [], deleteRecord, showModal }: IProps) { return (