From 2d6458a0c6d96e8009cb852bb2043d532a50f11d Mon Sep 17 00:00:00 2001 From: Guilhem Date: Wed, 4 Mar 2026 16:36:49 +0000 Subject: [PATCH] feat: display group name next to step count when collapsed Co-Authored-By: Claude Opus 4.6 --- .../src/lib/components/graph/StepCountTab.svelte | 5 +++-- .../graph/renderers/nodes/CollapsedGroupNode.svelte | 13 +++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/graph/StepCountTab.svelte b/frontend/src/lib/components/graph/StepCountTab.svelte index f9b6ad0eb8..a3f04402d3 100644 --- a/frontend/src/lib/components/graph/StepCountTab.svelte +++ b/frontend/src/lib/components/graph/StepCountTab.svelte @@ -6,13 +6,14 @@ interface Props { stepCount?: number label?: string + summary?: string color?: string collapsed?: boolean short?: boolean onExpand?: () => void } - let { stepCount, label, color, collapsed = true, short = false, onExpand }: Props = $props() + let { stepCount, label, summary, color, collapsed = true, short = false, onExpand }: Props = $props() let colorConfig: NoteColorConfig = $derived( color @@ -32,7 +33,7 @@ onpointerdown={onExpand ? stopPropagation(preventDefault(() => {})) : undefined} >
- {#if label}{label}{:else}{stepCount} step{stepCount !== 1 ? 's' : ''}{/if} + {#if label}{label}{:else}{stepCount} step{stepCount !== 1 ? 's' : ''}{/if}{#if summary && collapsed}ยท{summary}{/if} {#if onExpand} {#if collapsed}{:else} {#snippet children({ darkMode })} -
(hover = true)} - onmouseleave={() => (hover = false)} - > - data.eventHandlers.expandGroup(data.groupId)} /> +
(hover = true)} onmouseleave={() => (hover = false)}> + data.eventHandlers.expandGroup(data.groupId)} + />