From 4904b8c401d949dcedf0c693914c5d20095366d0 Mon Sep 17 00:00:00 2001 From: Tegan Churchill Date: Wed, 6 May 2026 08:40:55 -0700 Subject: [PATCH] refactor(DT-3906): migrate workflows-summary table + relationships components to Svelte 5 runes - workflow/workflows-summary-configurable-table/{batch-actions,table-header-row,table-row}.svelte - workflow/relationships/workflow-family-node-description{,-details}.svelte - workflow/workflow-relationships.svelte - workflow/workflow-advanced-search.svelte Carved out of #3370 to make the migration PR easier to review. --- ...low-family-node-description-details.svelte | 10 ++-- .../workflow-family-node-description.svelte | 51 +++++++++++----- .../workflow/workflow-advanced-search.svelte | 25 +++----- .../workflow/workflow-relationships.svelte | 60 +++++++++++-------- .../batch-actions.svelte | 42 ++++++------- .../table-header-row.svelte | 30 ++++++---- .../table-row.svelte | 58 +++++++++++------- 7 files changed, 162 insertions(+), 114 deletions(-) diff --git a/src/lib/components/workflow/relationships/workflow-family-node-description-details.svelte b/src/lib/components/workflow/relationships/workflow-family-node-description-details.svelte index 31ca061e25..8a6d20470b 100644 --- a/src/lib/components/workflow/relationships/workflow-family-node-description-details.svelte +++ b/src/lib/components/workflow/relationships/workflow-family-node-description-details.svelte @@ -15,7 +15,7 @@ namespace: string; isRootWorkflow?: boolean; isActive?: boolean; - children?: number; + childrenCount?: number; expanded?: boolean; }; @@ -24,7 +24,7 @@ namespace, isRootWorkflow = false, isActive = false, - children = 0, + childrenCount = 0, expanded = false, }: Props = $props(); @@ -36,7 +36,9 @@ }), ); - const showExpandIcon = $derived(!isRootWorkflow && $showFullTree && children); + const showExpandIcon = $derived( + !isRootWorkflow && $showFullTree && childrenCount, + );
{translate('common.child-count')}

{/if}
- {children} + {childrenCount}
{/if} diff --git a/src/lib/components/workflow/relationships/workflow-family-node-description.svelte b/src/lib/components/workflow/relationships/workflow-family-node-description.svelte index 554b95925b..59f3641dd4 100644 --- a/src/lib/components/workflow/relationships/workflow-family-node-description.svelte +++ b/src/lib/components/workflow/relationships/workflow-family-node-description.svelte @@ -1,5 +1,5 @@ @@ -69,7 +75,11 @@ {#await fetchWorkflowsForTree()} {:then root} - + {#if root} + + {:else} + + {/if} {:catch} {/await} diff --git a/src/lib/components/workflow/workflows-summary-configurable-table/batch-actions.svelte b/src/lib/components/workflow/workflows-summary-configurable-table/batch-actions.svelte index bd345f0b45..49b16293c3 100644 --- a/src/lib/components/workflow/workflows-summary-configurable-table/batch-actions.svelte +++ b/src/lib/components/workflow/workflows-summary-configurable-table/batch-actions.svelte @@ -1,7 +1,7 @@ {#if $allSelected} @@ -77,7 +79,7 @@ ({translate('workflows.select-all-leading')}