Polish workflow index labels

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
Taylor Ho
2026-08-14 00:17:35 -07:00
parent d52292870e
commit 37f288942b
7 changed files with 559 additions and 46 deletions

View File

@@ -64,9 +64,9 @@ function configuredStepDetail(
/** Build the concise action summary rendered on a workflow step node. */
export function workflowStepDescription(
step: StepFormState,
options: { channelLabel?: string } = {},
options: { channelLabel?: string; includeName?: boolean } = {},
): string {
const name = step.name?.trim();
const name = options.includeName === false ? undefined : step.name?.trim();
const detail = configuredStepDetail(step, options.channelLabel);
if (name && detail) return `${name} · ${detail}`;
return name || detail || ACTION_LABELS[step.action];