Skip to content

feat(views): open the Sources tab from the viewer toolbar - #479

Open
allison-truhlar wants to merge 2 commits into
views-ng-button-prefsfrom
views-info-button
Open

allison-truhlar wants to merge 2 commits into
views-ng-button-prefsfrom
views-info-button

Conversation

@allison-truhlar

@allison-truhlar allison-truhlar commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #477.

What changed

The viewer toolbar now has an info button ("View and edit data sources") that opens the sidebar on the Sources tab. The existing "Add data" button still opens it on the Add tab.

Pressing either button while its tab is showing closes the sidebar. Pressing the other button switches tabs and keeps the sidebar open.

NeuroglancerView now decides which tab the sidebar shows. ViewerSidebar receives tab and onTabChange instead of keeping its own tab state.

Testing

A new test in NeuroglancerView.test.tsx checks that the info button opens the Sources tab, that its pressed state is shown, and that a second press closes the sidebar.

Clickup id: 17tkuw5z7wa
@krokicki

The new info button opens the sidebar straight to the Sources tab, so
the toolbar now picks which tab the sidebar opens on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant