From ee5e55af3efc5752f3bc6d3e0f303a48f4d8a635 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:32:31 +0000 Subject: [PATCH] Add archived badge to flow details page header (#6540) * feat(flow): Add archived badge to flow details page header - Display 'Archived' badge in the top bar when a flow is archived - Remove the redundant archived alert from the content area - Badge uses red color with outlined variant to indicate archived status Co-authored-by: windmill-internal-app[bot] * fix(flow): Replace archived badge with alert at top of page - Removed the 'Archived' badge from the flow details header - Added an Alert component at the top of the page content area - Matches the pattern used in script details pages for consistency Co-authored-by: centdix --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: windmill-internal-app[bot] Co-authored-by: centdix --- .../(root)/(logged)/flows/get/[...path]/+page.svelte | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte b/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte index b7a8136368..167770b964 100644 --- a/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte @@ -14,7 +14,7 @@ import DetailPageLayout from '$lib/components/details/DetailPageLayout.svelte' import { goto } from '$lib/navigation' import { base } from '$lib/base' - import { Alert, Badge as HeaderBadge } from '$lib/components/common' + import { Badge as HeaderBadge, Alert } from '$lib/components/common' import MoveDrawer from '$lib/components/MoveDrawer.svelte' import RunForm from '$lib/components/RunForm.svelte' import ShareModal from '$lib/components/ShareModal.svelte' @@ -501,6 +501,10 @@ {#if flow}
+ {#if flow?.archived} + This flow was archived + {/if} +
{#if !emptyString(flow?.description)} @@ -582,11 +586,6 @@ Edited by {flow.edited_by} - - {#if flow.archived} -
- This flow was archived - {/if}