From 2cc8e34b9d34363834f392aba2009140634d7768 Mon Sep 17 00:00:00 2001 From: Padreug Date: Sat, 20 Jun 2026 00:26:52 +0200 Subject: [PATCH] feat(layout): re-enable "Back to hub" with a sticky sheet footer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverses the events-only hide (c037d45) now that the link has a real home. Three parts: - Add a @brand-hub-logo alias (brandHubLogoAliasEntry) resolving to the brand's primary/global logo — the HUB's logo, never the per-standalone @brand-app-logo. Wired into all 9 app vite configs since the shared ProfileSheetContent renders it. - Restructure the profile sheet into a fixed-height flex column: a flex-1 min-h-0 overflow-y-auto scroll region over a shrink-0 footer, so "Back to hub" + the log-in/out bar stay pinned to the bottom while the identity/preferences area scrolls. - Move the edit-profile Dialog out of the flex root (it portals to body, so it's not part of the sheet flow). Logo bumped to w-8 h-8, centered, with tightened footer padding. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/components/layout/ProfileSheetContent.vue | 304 +++++++++--------- vite-branding.ts | 16 + vite.chat.config.ts | 3 +- vite.config.ts | 3 +- vite.events.config.ts | 2 + vite.forum.config.ts | 3 +- vite.libra.config.ts | 3 +- vite.market.config.ts | 3 +- vite.restaurant.config.ts | 3 +- vite.tasks.config.ts | 3 +- vite.wallet.config.ts | 3 +- 11 files changed, 190 insertions(+), 156 deletions(-) diff --git a/src/components/layout/ProfileSheetContent.vue b/src/components/layout/ProfileSheetContent.vue index 9d3f5fe..dc01371 100644 --- a/src/components/layout/ProfileSheetContent.vue +++ b/src/components/layout/ProfileSheetContent.vue @@ -66,9 +66,7 @@ const npubPreview = computed(() => { return value.length > 24 ? `${value.slice(0, 12)}…${value.slice(-8)}` : value }) -// "Back to hub" is hidden for the events-only launch (see template). -// Re-enable this alongside the commented-out link below when the hub ships. -// const hubRootUrl = computed(() => import.meta.env.VITE_HUB_ROOT_URL || '/') +const hubRootUrl = computed(() => import.meta.env.VITE_HUB_ROOT_URL || '/') const copiedField = ref(null) async function copyToClipboard(text: string, field: string) { @@ -105,156 +103,166 @@ async function onLogout() {