feat(asset-ai): generate contextual presentations and drilldown plans
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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" : ""}
|
||||
|
||||
Reference in New Issue
Block a user