From 22170c725628c6fde8c4c08b4ee77d37f1b7a4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 13 May 2026 17:01:49 +0200 Subject: [PATCH] Expand All Repos section when navigating to a repo When we land on a repo via notification inbox the repository wouldn't be visible if the section was collapsed. Now we expand it and scroll into view so we see which repository we're browsing. --- src/components/NotificationTeaser.svelte | 2 + src/components/SidebarRepoList.svelte | 57 ++++++++++++++++-------- 2 files changed, 41 insertions(+), 18 deletions(-) diff --git a/src/components/NotificationTeaser.svelte b/src/components/NotificationTeaser.svelte index c35eaa858..5fcef3c0c 100644 --- a/src/components/NotificationTeaser.svelte +++ b/src/components/NotificationTeaser.svelte @@ -24,6 +24,7 @@ import InlineTitle from "@app/components/InlineTitle.svelte"; import NodeId from "@app/components/NodeId.svelte"; import { closeFocused } from "@app/components/Popover.svelte"; + import { revealRepoInSidebar } from "@app/components/SidebarRepoList.svelte"; interface Props { rid: string; @@ -181,6 +182,7 @@ class="notification-teaser" onclick={() => { if (route) { + revealRepoInSidebar(rid); void push(route); closeFocused(); } diff --git a/src/components/SidebarRepoList.svelte b/src/components/SidebarRepoList.svelte index e7ba3229c..4256f2879 100644 --- a/src/components/SidebarRepoList.svelte +++ b/src/components/SidebarRepoList.svelte @@ -1,3 +1,41 @@ + +