Skip to content

Conversation

@seankmartin
Copy link

Tomogram selection

image

@seankmartin seankmartin marked this pull request as ready for review October 27, 2025 09:46
@seankmartin seankmartin requested a review from aranega October 27, 2025 09:47
Copy link
Author

@seankmartin seankmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some potential places we could improve

@seankmartin seankmartin requested a review from Copilot October 27, 2025 12:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a tomogram selection feature for the neuroglancer viewer, allowing users to switch between different tomograms within a run while preserving viewer state.

Key changes:

  • Added tomogram dropdown menu to the viewer interface for selecting different tomograms
  • Implemented state management functions to handle tomogram switching with voxel spacing adjustments
  • Refactored dropdown components to use a title/subtitle pattern instead of children-only rendering

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
frontend/packages/neuroglancer/src/utils.ts Added dimension type definitions, layer source URL getter, and updated LayerWithSource interface
frontend/packages/data-portal/tailwind.config.ts Added new screen breakpoint for 1800px displays
frontend/packages/data-portal/app/routes/view.runs.$id.tsx Passed tomograms data to ViewerPage component
frontend/packages/data-portal/app/components/Viewer/state.ts Added tomogram switching logic with voxel spacing calculations and layer state management
frontend/packages/data-portal/app/components/Viewer/ViewerPage.tsx Integrated tomogram selection dropdown and refactored all dropdown options to use title prop
frontend/packages/data-portal/app/components/Viewer/NeuroglancerDropdown.tsx Refactored component to accept title/subtitle props instead of rendering children as main content
frontend/packages/data-portal/app/components/Viewer/NeuroglancerDropdown.test.tsx Updated tests to reflect new title/subtitle API
frontend/packages/data-portal/app/components/Breadcrumbs.tsx Adjusted breadcrumb max-width breakpoints for better responsive layout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@aranega aranega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good :) Thanks @seankmartin ! 🙏

@seankmartin
Copy link
Author

Closing as opened on CZI org repo

@seankmartin seankmartin closed this Nov 4, 2025
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.

4 participants