From 4658b426a23a8195178d9dcd502cabef65b5c7a0 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sat, 1 Nov 2025 11:13:31 -0700 Subject: [PATCH] fix: hide node name badge on cloud builds (#6517) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Hides the node name badge in queue task items on cloud builds since workflow data is not available. ## Problem On cloud distribution, `extra_data.extra_pnginfo.workflow` is omitted from history task items to reduce memory usage. The node name badge relies on this workflow data to: 1. Get the `nodeId` from the task output 2. Find the matching node in `workflow.nodes[]` 3. Display `node.type (#node.id)` (e.g., "SaveImage (#8)") Without workflow data, the badge would be empty or show undefined values. ## Changes - Added `isCloud` check to the node badge `v-if` condition - Badge now only renders when `!isCloud && isFlatTask && task.isHistory` - Imported `isCloud` from `@/platform/distribution/types` ## Impact - **Cloud builds**: Node name badge hidden in flat list view (workflow data unavailable) - **OSS/localhost builds**: Node name badge continues to show normally (workflow data available) ## Note This is an **rh-test only** change since cloud builds use this branch. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6517-fix-hide-node-name-badge-on-cloud-builds-29e6d73d36508163818acb07be90cf74) by [Unito](https://www.unito.io) --------- Co-authored-by: Christian Byrne Co-authored-by: GitHub Action --- src/components/sidebar/tabs/queue/TaskItem.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/sidebar/tabs/queue/TaskItem.vue b/src/components/sidebar/tabs/queue/TaskItem.vue index a67c7eb7f..5f6fea051 100644 --- a/src/components/sidebar/tabs/queue/TaskItem.vue +++ b/src/components/sidebar/tabs/queue/TaskItem.vue @@ -36,7 +36,10 @@
- +