feat(asset-ai): generate contextual presentations and drilldown plans
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
shishengliang
2026-09-23 17:52:33 +08:00
parent b5a48b6417
commit dc0923b566
33 changed files with 6193 additions and 1165 deletions
+20 -4
View File
@@ -8,11 +8,15 @@ export function ThinkingState({
working,
started,
failed,
stopped,
outcome,
}: {
steps: string[];
working: boolean;
started: number;
failed?: boolean;
stopped?: boolean;
outcome?: string;
}) {
const [manualExpanded, setExpanded] = useState<boolean | null>(null);
const [elapsed, setElapsed] = useState(0);
@@ -35,11 +39,23 @@ export function ThinkingState({
<span className={working ? "aq-shimmer" : ""}>
{working
? steps.at(-1) || "正在分析"
: failed
? "本次未完成"
: "分析完成"}
: stopped
? "已由用户停止"
: failed
? "查询失败"
: outcome === "unsupported"
? "暂不支持该指标"
: outcome === "empty"
? "查询完成 · 暂无匹配数据"
: outcome === "partial"
? "已完成可查部分"
: outcome === "clarification"
? "等待补充条件"
: outcome === "help"
? "已回答"
: "分析完成"}
</span>
<span className="aq-time">{elapsed.toFixed(1)}s</span>
{elapsed > 0 && <span className="aq-time">{elapsed.toFixed(1)}s</span>}
<ChevronDown
size={14}
className={expanded ? "aq-rotated" : ""}