From 63f96254e558a16e1928d3168b79b60fbd37f498 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 11 May 2026 15:08:53 +0200 Subject: [PATCH] fix(documents-hub): scope gradient PageHeader to root view; add inline New-document button on folder views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gradient "Documents — Track signing status..." banner was rendering on all three render modes (HubRootView / EntityFolderView / FlatFolderListing), duplicating the in-empty-state CTA on folder views. Keep it only on the root landing page; for folder views, surface a compact "+ New document" button in the upper-right aligned with the FolderBreadcrumb row. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/documents/documents-hub.tsx | 33 ++++++++++++++-------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/components/documents/documents-hub.tsx b/src/components/documents/documents-hub.tsx index bfa1302d..f816d3ba 100644 --- a/src/components/documents/documents-hub.tsx +++ b/src/components/documents/documents-hub.tsx @@ -151,24 +151,35 @@ export function DocumentsHub({ portSlug }: DocumentsHubProps) { } />
- - - +
+ + {selectedFolderId !== undefined && ( + - } - variant="gradient" - /> + )} +
{selectedFolderId === undefined ? ( - + <> + + + + New document + + + } + variant="gradient" + /> + + ) : isEntityFolder && isEntityType(folderEntityType) ? (