mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-17 00:01:59 +00:00
检查跟上数据剖析和 SQL 检查:数据目录覆盖剖析设置、确认与进度、报告、各类 409、含义待填写;证据、解码、助手面板和发布前检查各加 SQL 检查的展示与定位;文案补齐 409 的下一步,码值的填写入口收窄
This commit is contained in:
@@ -310,6 +310,7 @@ function ToastCard({ item }: { item: ToastItem }) {
|
||||
<div
|
||||
className="fade-up pointer-events-auto flex items-start gap-2 rounded-lg border bg-panel px-3 py-2 shadow-elev-2"
|
||||
style={{ borderColor: item.kind === 'error' ? 'var(--err)' : item.kind === 'warn' ? 'var(--warn)' : 'var(--border)' }}
|
||||
data-toast={item.kind}
|
||||
onMouseEnter={() => setPaused(true)}
|
||||
onMouseLeave={() => setPaused(false)}
|
||||
onFocus={() => setPaused(true)}
|
||||
|
||||
@@ -2300,11 +2300,11 @@ export const PROFILE_TEXT = {
|
||||
other: '无法开始剖析',
|
||||
} as Record<string, string>,
|
||||
blockedNext: {
|
||||
disabled: '剖析会对业务库发出只读查询,需要先在数据源设置中开启。开启后即可在这里剖析。',
|
||||
inactive: '停用的数据源无法剖析。请在数据源设置中启用后重试。',
|
||||
noSchema: '请回到数据源卡片点击「探查结构」,探查完成后重试。',
|
||||
busy: '同一个数据源同一时间只能进行一次剖析。请等待当前剖析完成后重试。',
|
||||
tampered: '数据文件与登记的版本不一致,已拒绝查询。请重新上传表格,或联系管理员核对数据文件。',
|
||||
disabled: '开启后即可在这里剖析。',
|
||||
inactive: '启用后回到这里重试。',
|
||||
noSchema: '探查完成后回到这里重试。',
|
||||
busy: '同一个数据源同一时间只能进行一次剖析。',
|
||||
tampered: '请重新上传表格,或联系管理员核对数据文件。',
|
||||
other: '请稍后重试。',
|
||||
} as Record<string, string>,
|
||||
goSource: '前往数据源',
|
||||
@@ -2430,5 +2430,6 @@ export const SQL_CHECK_TEXT = {
|
||||
infos ? `${formatNumber(infos)} 处提示` : ''].filter(Boolean).join('、'),
|
||||
assistantTitle: (counts: string) => `SQL 检查:${counts}`,
|
||||
assistantNext: '请打开对应节点,在「参数」中修改 SQL;检查依据有误时,请在数据目录中修正对应项',
|
||||
assistantNextChat: '可在画布中打开此工作流,修改对应节点「参数」中的 SQL;检查依据有误时,请在数据目录中修正对应项',
|
||||
assistantInfoNext: '这些检查的依据尚未确认,仅供参考。在数据目录中确认相关项后,检查结论更可靠',
|
||||
}
|
||||
|
||||
@@ -223,10 +223,10 @@ function Codes({ value, label, onFill }: { value: Record<string, string>; label:
|
||||
{entries.length > CODES_SHOWN && <span className="text-2xs text-faint">+{entries.length - CODES_SHOWN}</span>}
|
||||
</span>
|
||||
{pending > 0 && onFill && (
|
||||
<button type="button" className="mt-1 inline-flex items-center gap-1 rounded px-1 text-2xs text-dim underline decoration-dotted underline-offset-2 hover:text-fg"
|
||||
onClick={onFill} aria-label={label} data-codes-fill="">
|
||||
// 各码值的「含义待填写」已经写在上面,这里只给入口;几个待填写写在悬停里
|
||||
<button type="button" className="mt-1 inline-flex items-center gap-1 whitespace-nowrap rounded px-1 text-2xs text-dim underline decoration-dotted underline-offset-2 hover:text-fg"
|
||||
onClick={onFill} aria-label={label} title={KT.pendingN(pending)} data-codes-fill={pending}>
|
||||
<PencilLine size={10} aria-hidden /> {KT.fill}
|
||||
<span className="tnum text-faint">({KT.pendingN(pending)})</span>
|
||||
</button>
|
||||
)}
|
||||
</span>
|
||||
|
||||
@@ -152,7 +152,7 @@ export function ProfileSettingsDialog({ row, onClose, onSaved }: {
|
||||
</button>
|
||||
</>
|
||||
)}>
|
||||
<div className="space-y-3" data-profile-dialog={row.id}>
|
||||
<div className="space-y-3" data-profile-settings-dialog={row.id}>
|
||||
<p className="text-2xs leading-relaxed text-faint">{PT.dialogBody}</p>
|
||||
<ProfileSettingsSection idPrefix={idPrefix} form={form} serverError={serverError}
|
||||
onChange={(next) => { setForm(next); setServerError(null) }} />
|
||||
|
||||
@@ -2835,8 +2835,10 @@ export function decodeCopilot(ops: CopilotOp[], opts?: {
|
||||
...(n.error || n.warning ? { level: 'warn' as const } : {}),
|
||||
title: SQL_CHECK_TEXT.assistantTitle(SQL_CHECK_TEXT.counts(n.error, n.warning, n.info)),
|
||||
detail: sortSqlChecks(sql).map(issueLine).join('\n'),
|
||||
next: n.error || n.warning ? SQL_CHECK_TEXT.assistantNext : SQL_CHECK_TEXT.assistantInfoNext,
|
||||
...(nodes.length === 1 ? { nodeId: nodes[0], fix: 'canvas' as const } : {}),
|
||||
// 问数据页没有画布:下一步说去画布里打开这个工作流
|
||||
next: n.error || n.warning ? (canvas ? SQL_CHECK_TEXT.assistantNext : SQL_CHECK_TEXT.assistantNextChat)
|
||||
: SQL_CHECK_TEXT.assistantInfoNext,
|
||||
...(nodes.length === 1 ? { nodeId: nodes[0], ...(canvas ? { fix: 'canvas' as const } : {}) } : {}),
|
||||
})
|
||||
}
|
||||
// 工具绑定变化单独成一行:改图回执以前只说「修改 1」,模型改提示词时漏写 tools、
|
||||
|
||||
Reference in New Issue
Block a user