From fbd7f53208ef669ee1f336e83f02f6ee346cb888 Mon Sep 17 00:00:00 2001 From: gbubemismith Date: Fri, 4 Sep 2026 18:50:50 -0400 Subject: [PATCH] [PM-43083][PM-43122] fix: show header breadcrumbs and identity tiles for every vault scope Give the scoped vault header the right identity on every destination, across web and desktop: a title with an icon tile for All items / My vault, and a breadcrumb trail for organization vaults (All vault items, My items, shared folders). Fixes the blank "My items" header under the organization data-ownership policy (PM-43083, web) and the desktop screens that errantly titled themselves "Vault" instead of their scope (PM-43122). The scope-to-title and scope-to-tile logic is shared through libs/vault (vaultScopeTitle, vaultScopeHeaderTile) so both clients derive the header the same way. bit-header gains a title-icon slot to host the tile in its heading. --- .../header/desktop-header.component.html | 4 + .../vault/app/vault-v3/vault.component.html | 15 +- .../src/vault/app/vault-v3/vault.component.ts | 36 ++++ .../layouts/header/web-header.component.html | 4 + .../vault-next.component.html | 17 +- .../vault-next.component.spec.ts | 21 ++- .../individual-vault/vault-next.component.ts | 39 ++--- .../src/header/header.component.html | 15 +- libs/components/src/header/header.mdx | 28 ++- libs/components/src/header/header.stories.ts | 14 ++ .../vault-breadcrumbs.component.html | 21 +++ .../vault-breadcrumbs.component.spec.ts | 163 ++++++++++++++++++ .../vault-breadcrumbs.component.ts} | 86 +++++++-- ...ault-collection-breadcrumbs.component.html | 23 --- .../vault-nav-section.component.html | 7 +- .../vault-nav-section.component.ts | 4 +- libs/vault/src/index.ts | 2 +- libs/vault/src/models/vault-icon-tile.spec.ts | 62 ++++++- libs/vault/src/models/vault-icon-tile.ts | 39 ++++- libs/vault/src/models/vault-scope.ts | 32 ++++ 20 files changed, 544 insertions(+), 88 deletions(-) create mode 100644 libs/vault/src/components/vault-breadcrumbs/vault-breadcrumbs.component.html create mode 100644 libs/vault/src/components/vault-breadcrumbs/vault-breadcrumbs.component.spec.ts rename libs/vault/src/components/{vault-collection-breadcrumbs/vault-collection-breadcrumbs.component.ts => vault-breadcrumbs/vault-breadcrumbs.component.ts} (60%) delete mode 100644 libs/vault/src/components/vault-collection-breadcrumbs/vault-collection-breadcrumbs.component.html diff --git a/apps/desktop/src/app/layout/header/desktop-header.component.html b/apps/desktop/src/app/layout/header/desktop-header.component.html index 882bae9cdba3..0eb19e1fb8ec 100644 --- a/apps/desktop/src/app/layout/header/desktop-header.component.html +++ b/apps/desktop/src/app/layout/header/desktop-header.component.html @@ -1,4 +1,8 @@ + + + + diff --git a/apps/desktop/src/vault/app/vault-v3/vault.component.html b/apps/desktop/src/vault/app/vault-v3/vault.component.html index a2d5c6cc3950..84349f655270 100644 --- a/apps/desktop/src/vault/app/vault-v3/vault.component.html +++ b/apps/desktop/src/vault/app/vault-v3/vault.component.html @@ -4,7 +4,20 @@ >
- + + @if (organizationScoped()) { + + } @else if (headerTile(); as tile) { +