Fix: Optimized the test results page layout and internationalization #3221 (#9974)

### What problem does this PR solve?

Fix: Optimized the test results page layout and internationalization

- Added an empty data component for when test results are empty
- Optimized internationalization support for the paging component
- Updated the layout and style of the test results page
- Added a tooltip for when test results are empty

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-09-08 12:49:12 +08:00
committed by GitHub
parent f48aed6d4a
commit cf18231713
10 changed files with 149 additions and 20 deletions

View File

@ -46,6 +46,7 @@ export default {
remove: 'Remove',
search: 'Search',
noDataFound: 'No data found.',
noData: 'No data',
promptPlaceholder: `Please input or use / to quickly insert variables.`,
mcp: {
namePlaceholder: 'My MCP Server',
@ -138,6 +139,10 @@ export default {
processBeginAt: 'Begin at',
processDuration: 'Duration',
progressMsg: 'Progress',
noTestResultsForRuned:
'No relevant results found. Try adjusting your query or parameters.',
noTestResultsForNotRuned:
'No test has been run yet. Results will appear here.',
testingDescription:
'Conduct a retrieval test to check if RAGFlow can recover the intended content for the LLM. If you have adjusted the default settings, such as keyword similarity weight or similarity threshold, to achieve the optimal results, be aware that these changes will not be automatically saved. You must apply them to your chat assistant settings or the Retrieval agent component settings.',
similarityThreshold: 'Similarity threshold',
@ -1579,5 +1584,9 @@ This delimiter is used to split the input text into several text pieces echo of
korean: 'Korean',
vietnamese: 'Vietnamese',
},
pagination: {
total: 'Total {{total}}',
page: 'Page',
},
},
};

View File

@ -45,6 +45,7 @@ export default {
remove: '移除',
search: '搜索',
noDataFound: '没有找到数据。',
noData: '暂无数据',
promptPlaceholder: '请输入或使用 / 快速插入变量。',
},
login: {
@ -129,6 +130,8 @@ export default {
processBeginAt: '开始于',
processDuration: '持续时间',
progressMsg: '进度',
noTestResultsForRuned: '未找到相关结果,请尝试调整查询语句或参数',
noTestResultsForNotRuned: '尚未运行测试,结果会显示在这里',
testingDescription:
'请完成召回测试:确保你的配置可以从数据库召回正确的文本块。如果你调整了这里的默认设置,比如关键词相似度权重,请注意这里的改动不会被自动保存。请务必在聊天助手设置或者召回算子设置处同步更新相关设置。',
similarityThreshold: '相似度阈值',
@ -1493,5 +1496,9 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
korean: '韩语',
vietnamese: '越南语',
},
pagination: {
total: '总共 {{total}} 条',
page: '页',
},
},
};