style(web): UI kit 组件与画布/后台面板 Prettier 格式化与 migrations.go gofmt 清理
This commit is contained in:
@@ -336,10 +336,26 @@ export function AiArtCritiqueModal({ node, upstreamNodes, open, onClose, onUpdat
|
||||
<aside className="min-h-0 flex-1 overflow-y-auto" data-canvas-wheel-scroll>
|
||||
<div className="flex min-h-full flex-col gap-4 p-4">
|
||||
{running || visibleState.status === "running" ? <ArtCritiqueProgress stage={progressStage} theme={theme} /> : null}
|
||||
{draftReportVisible && visibleState.status === "running" && visibleState.report ? <Callout tone="info" title="报告初稿已生成">问题和建议已先展示,正在精确定位并复核矩形标注。</Callout> : null}
|
||||
{!enabled && !visibleState.report ? <Callout tone="warning" title="插件尚未启用">请先到插件管理中开启 AI 审美批改,再运行分析。</Callout> : null}
|
||||
{visibleState.status === "stale" ? <Callout tone="warning" title="输入图片已经变化">当前报告针对旧图片生成,请重新批改。</Callout> : null}
|
||||
{localError || visibleState.errorMessage ? <Callout tone="error" title="批改失败">{localError || visibleState.errorMessage}</Callout> : null}
|
||||
{draftReportVisible && visibleState.status === "running" && visibleState.report ? (
|
||||
<Callout tone="info" title="报告初稿已生成">
|
||||
问题和建议已先展示,正在精确定位并复核矩形标注。
|
||||
</Callout>
|
||||
) : null}
|
||||
{!enabled && !visibleState.report ? (
|
||||
<Callout tone="warning" title="插件尚未启用">
|
||||
请先到插件管理中开启 AI 审美批改,再运行分析。
|
||||
</Callout>
|
||||
) : null}
|
||||
{visibleState.status === "stale" ? (
|
||||
<Callout tone="warning" title="输入图片已经变化">
|
||||
当前报告针对旧图片生成,请重新批改。
|
||||
</Callout>
|
||||
) : null}
|
||||
{localError || visibleState.errorMessage ? (
|
||||
<Callout tone="error" title="批改失败">
|
||||
{localError || visibleState.errorMessage}
|
||||
</Callout>
|
||||
) : null}
|
||||
|
||||
{view === "detail" && detailIssue ? (
|
||||
<IssueDetailView
|
||||
|
||||
@@ -180,11 +180,7 @@ export function CanvasHistoryDrawer({ open, onClose }: { open: boolean; onClose:
|
||||
{item.title}
|
||||
</button>
|
||||
)}
|
||||
{isDeleted ? (
|
||||
<StatusBadge tone="error" size="sm" label="已删除" className="m-0" />
|
||||
) : (
|
||||
<StatusBadge tone="success" size="sm" label="活跃中" className="m-0" />
|
||||
)}
|
||||
{isDeleted ? <StatusBadge tone="error" size="sm" label="已删除" className="m-0" /> : <StatusBadge tone="success" size="sm" label="活跃中" className="m-0" />}
|
||||
</div>
|
||||
|
||||
<div className="space-y-1 text-xs text-stone-600 dark:text-stone-300">
|
||||
|
||||
@@ -544,7 +544,11 @@ export function CanvasPromptOptimizerDrawer({ open, children, prompt, generation
|
||||
bubbleItems.push({
|
||||
key: "error",
|
||||
role: "system",
|
||||
content: <Callout className="canvas-prompt-optimizer-alert" tone="error" title="优化失败">{error}</Callout>,
|
||||
content: (
|
||||
<Callout className="canvas-prompt-optimizer-alert" tone="error" title="优化失败">
|
||||
{error}
|
||||
</Callout>
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Tooltip } from "@/components/ui/base/tooltip";
|
||||
|
||||
|
||||
import { releaseDirectorFocusAfterPointer } from "@/lib/canvas/director/director-shortcuts";
|
||||
import { DIRECTOR_VIEW_MODES, type DirectorViewMode } from "@/lib/canvas/director/director-view-modes";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user