From 26c0e0343d118579b3a15c894606cb185a046574 Mon Sep 17 00:00:00 2001 From: Allison Truhlar Date: Wed, 21 Oct 2026 14:17:34 -0400 Subject: [PATCH 1/2] feat(views): open the Sources tab from the viewer toolbar The new info button opens the sidebar straight to the Sources tab, so the toolbar now picks which tab the sidebar opens on. --- .../componentTests/NeuroglancerView.test.tsx | 25 +++++++++++++++++-- .../componentTests/ViewerSidebar.test.tsx | 2 ++ frontend/src/components/NeuroglancerView.tsx | 25 +++++++++++++++---- .../src/components/ui/Views/ViewerSidebar.tsx | 15 ++++++++--- 4 files changed, 57 insertions(+), 10 deletions(-) diff --git a/frontend/src/__tests__/componentTests/NeuroglancerView.test.tsx b/frontend/src/__tests__/componentTests/NeuroglancerView.test.tsx index 23990f838..c24423ab1 100644 --- a/frontend/src/__tests__/componentTests/NeuroglancerView.test.tsx +++ b/frontend/src/__tests__/componentTests/NeuroglancerView.test.tsx @@ -90,8 +90,10 @@ vi.mock('@/components/ui/Views/ViewBrokenBanner', () => ({ vi.mock('@/components/ui/Views/ViewerSidebar', () => ({ default: ({ bridge, - editState + editState, + tab }: { + tab: string; bridge: { setState: (s: Record) => void }; editState: { markEdited: () => void; @@ -99,7 +101,7 @@ vi.mock('@/components/ui/Views/ViewerSidebar', () => ({ removeSource: (key: string) => void; }; }) => ( -