-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/cc 434 #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/cc 434 #75
Conversation
CC-449 Apply styling from figma to the tomogram select dropdown
seankmartin
left a comment
There was a problem hiding this 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
frontend/packages/data-portal/app/components/Viewer/ViewerPage.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/data-portal/app/components/Viewer/ViewerPage.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/data-portal/app/components/Viewer/ViewerPage.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
aranega
left a comment
There was a problem hiding this 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 ! 🙏
|
Closing as opened on CZI org repo |
Tomogram selection