From cdd2147dd8dffa0ecb962f3fd1b3ad7f9a51c0b6 Mon Sep 17 00:00:00 2001 From: roble Date: Sat, 28 Nov 2026 18:09:59 +0000 Subject: [PATCH 1/8] fix: no fade on same-page URL changes, no empty sidebar groups - PageTransition (Vue) and the React CardLayout fade key on the page component, not the URL. A preserveState visit or a new chat moving onto its own URL faded and remounted the whole page body. - NavGroup renders nothing with no items: an empty group kept its padding and an empty list, pushing the next block down. - The bottom links and dashboard::sidebar.end share one mt-auto wrapper, so the end slot stays at the bottom when an app has no bottom links. Co-Authored-By: Claude Opus 5.5 --- .../js/components/ui/saucebase/navigation/NavGroup.tsx | 5 +++++ stubs/stack/react/js/layouts/AppSidebar.tsx | 7 +++++-- stubs/stack/react/js/layouts/CardLayout.tsx | 3 ++- stubs/stack/vue/js/components/AppSidebar.vue | 7 +++++-- stubs/stack/vue/js/components/PageTransition.vue | 7 ++++++- .../vue/js/components/ui/saucebase/navigation/NavGroup.vue | 3 ++- 6 files changed, 25 insertions(+), 7 deletions(-) diff --git a/stubs/stack/react/js/components/ui/saucebase/navigation/NavGroup.tsx b/stubs/stack/react/js/components/ui/saucebase/navigation/NavGroup.tsx index 378d710..31009f3 100644 --- a/stubs/stack/react/js/components/ui/saucebase/navigation/NavGroup.tsx +++ b/stubs/stack/react/js/components/ui/saucebase/navigation/NavGroup.tsx @@ -8,6 +8,11 @@ interface NavGroupProps { } export default function NavGroup({ items, className }: NavGroupProps) { + // No links, no group: an empty one keeps its padding and pushes the next block down. + if (items.length === 0) { + return null; + } + return ( diff --git a/stubs/stack/react/js/layouts/AppSidebar.tsx b/stubs/stack/react/js/layouts/AppSidebar.tsx index 70669dc..38888a4 100644 --- a/stubs/stack/react/js/layouts/AppSidebar.tsx +++ b/stubs/stack/react/js/layouts/AppSidebar.tsx @@ -52,8 +52,11 @@ export default function AppSidebar({ {/* Between the nav and the bottom links: a module's own list (chat history). */} - - + {/* Held at the bottom together, so the end slot stays there with no bottom links. */} +
+ + +
{user && } diff --git a/stubs/stack/react/js/layouts/CardLayout.tsx b/stubs/stack/react/js/layouts/CardLayout.tsx index c280b48..67ea850 100644 --- a/stubs/stack/react/js/layouts/CardLayout.tsx +++ b/stubs/stack/react/js/layouts/CardLayout.tsx @@ -97,8 +97,9 @@ export default function CardLayout({ + {/* Keyed on the page, not the URL: a query string change on the same page is not a page change. */}
{status || error ? ( diff --git a/stubs/stack/vue/js/components/AppSidebar.vue b/stubs/stack/vue/js/components/AppSidebar.vue index 46c0382..7e48e7c 100644 --- a/stubs/stack/vue/js/components/AppSidebar.vue +++ b/stubs/stack/vue/js/components/AppSidebar.vue @@ -60,8 +60,11 @@ const brandIsClaimed = hasGlobalComponent('dashboard::sidebar.brand'); - - + +
+ + +
diff --git a/stubs/stack/vue/js/components/PageTransition.vue b/stubs/stack/vue/js/components/PageTransition.vue index 14b0755..96d5d82 100644 --- a/stubs/stack/vue/js/components/PageTransition.vue +++ b/stubs/stack/vue/js/components/PageTransition.vue @@ -1,6 +1,11 @@