From d73ae59ab8c2795d979152f07d227faca08c850d Mon Sep 17 00:00:00 2001 From: Anso Date: Mon, 4 May 2026 23:44:50 -0400 Subject: [PATCH] refactor(frontend): tighten Resources Hub header and relocate Scan history (#924) Remove the page title (icon + 'Resources Hub' heading + remote-node indicator) so the Reclaim hero leads the page. Active node identity is already shown by the global node selector chip, so the inline indicator was redundant. Move the Scan history button out of the removed header and into the secondary navigation bar, far right of the Images / Volumes / Networks / Unmanaged tabs. Vertical centering comes from flex items-center on the wrapper, which matches the h-9 TabsList height. Tier guard (trivy.available && isPaid) is unchanged. --- frontend/src/components/ResourcesView.tsx | 45 +++++++++-------------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/frontend/src/components/ResourcesView.tsx b/frontend/src/components/ResourcesView.tsx index 187e7ccc..165ac225 100644 --- a/frontend/src/components/ResourcesView.tsx +++ b/frontend/src/components/ResourcesView.tsx @@ -671,32 +671,6 @@ export default function ResourcesView() { return (
- {/* Header */} -
- -

Resources Hub

- {activeNode?.type === 'remote' && ( - ยท {activeNode.name} - )} - {trivy.available && isPaid && ( - - )} -
- {/* Reclaim hero */} {usage && isAdmin && ( -
+
{(['images', 'volumes', 'networks'] as const).map(tab => ( @@ -813,6 +787,23 @@ export default function ResourcesView() { + {trivy.available && isPaid && ( + + )}