fix: remove workflow depth badge from timeline
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-03-28 17:46:36 +08:00
parent 9fc4790722
commit 37b22b583f

View File

@ -706,20 +706,6 @@ export function AgentWorkflowPanelDarkV2({
step,
selectionValue: selections[step.key],
});
const deepestSelectedLevel = Math.max(
0,
...stepOptionLevels.map((level) => (level.selectedKey ? level.depth : 0))
);
const activeStepChildLabel =
active && stepOptionLevels.length > 1
? `${
getWorkflowOptionDepthLabel(
activeEmbeddedOptionLevel?.depth || 1
)
}`
: deepestSelectedLevel > 1
? `已到 ${deepestSelectedLevel} 级`
: "";
return (
<Fragment key={step.key}>
@ -765,18 +751,6 @@ export function AgentWorkflowPanelDarkV2({
) : null}
</button>
<div className="flex shrink-0 items-center gap-2">
{activeStepChildLabel ? (
<span
className={cn(
"inline-flex h-7 shrink-0 items-center rounded-full border px-2.5 text-[10px] leading-none",
active
? "border-emerald-300/24 bg-emerald-400/10 text-emerald-100/82"
: "border-white/10 bg-white/[0.04] text-white/38"
)}
>
{activeStepChildLabel}
</span>
) : null}
{stepSelectedPath.length > 0 ? (
<div className="flex shrink-0 items-center gap-1.5">
{stepSelectedPath.map((option, optionIndex) => {