Optimize the insight view component, add workspace insight initialization functionality, update internationalization support, improve user interaction prompts, enhance log output, and ensure better user experience and code readability.

This commit is contained in:
duanfuxiang
2025-07-06 17:33:09 +08:00
parent 932b2d3d7f
commit 51f8620815
6 changed files with 1012 additions and 247 deletions

View File

@@ -497,6 +497,7 @@ export default {
insights: {
title: "AI Insights",
initializeInsights: "Initialize Insights",
updateInsights: "Update Insights",
clearInsights: "Clear Insights",
refresh: "Refresh",
initializing: "Initializing...",
@@ -517,6 +518,20 @@ export default {
cancel: "Cancel",
confirm: "Confirm Delete"
},
initConfirm: {
initTitle: "Confirm Initialize Insights",
updateTitle: "Confirm Update Insights",
initMessage: "Are you sure you want to initialize insights for the current workspace? This will generate AI summaries and analysis.",
updateMessage: "Are you sure you want to update insights for the current workspace? This will generate AI summaries and analysis for modified or new files.",
modelLabel: "Using model:",
workspaceLabel: "Target workspace:",
defaultModel: "Default model",
initWarning: "⚠️ This process may take a long time and will incur API costs.",
updateWarning: "⚠️ This process may take some time and will incur API costs. Only modified or new files will be processed.",
cancel: "Cancel",
initConfirm: "Confirm Initialize",
updateConfirm: "Confirm Update"
},
stats: {
itemsAndInsights: "{items} items, {insights} insights",
workspace: "{count} workspace",
@@ -542,6 +557,7 @@ export default {
},
tooltips: {
initialize: "Initialize insights for the current workspace, will recursively process all files and generate summaries",
update: "Update insights for the current workspace, generate summaries for modified or new files",
clear: "Delete all transformations and insights for the current workspace"
},
success: {

View File

@@ -499,6 +499,7 @@ export default {
insights: {
title: "AI 洞察",
initializeInsights: "初始化洞察",
updateInsights: "更新洞察",
clearInsights: "清除洞察",
refresh: "刷新",
initializing: "初始化中...",
@@ -519,6 +520,20 @@ export default {
cancel: "取消",
confirm: "确认删除"
},
initConfirm: {
initTitle: "确认初始化洞察",
updateTitle: "确认更新洞察",
initMessage: "您确定要初始化当前工作区的洞察吗?这将生成 AI 摘要和分析。",
updateMessage: "您确定要更新当前工作区的洞察吗?这将为修改或新增的文件生成 AI 摘要和分析。",
modelLabel: "使用模型:",
workspaceLabel: "目标工作区:",
defaultModel: "默认模型",
initWarning: "⚠️ 这个过程可能需要较长时间,并会产生 API 费用。",
updateWarning: "⚠️ 这个过程可能需要一些时间,并会产生 API 费用。只会处理修改或新增的文件。",
cancel: "取消",
initConfirm: "确认初始化",
updateConfirm: "确认更新"
},
stats: {
itemsAndInsights: "{items} 个项目,{insights} 个洞察",
workspace: "{count}工作区",
@@ -544,6 +559,7 @@ export default {
},
tooltips: {
initialize: "初始化当前工作区的洞察,会递归处理所有文件并生成摘要",
update: "更新当前工作区的洞察,为修改或新增的文件生成摘要",
clear: "删除当前工作区的所有转换和洞察"
},
success: {