feat(web): add protein structure viewer#1715
Draft
ivan-aksamentov wants to merge 11 commits intomasterfrom
Draft
feat(web): add protein structure viewer#1715ivan-aksamentov wants to merge 11 commits intomasterfrom
ivan-aksamentov wants to merge 11 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds a protein structure viewer feature to Nextclade Web, enabling visualization of protein structures with highlighted mutations. The implementation uses the NGL viewer library with a placeholder for Mol* integration.
Key Changes:
- Adds NGL viewer library (v2.4.0) for 3D protein structure visualization
- Implements structure viewer state management and API integration with RCSB PDB
- Creates new Structure page with controls for sequence selection, representation types, and viewer options
- Updates navigation to include Structure tab
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/nextclade-web/yarn.lock | Adds extensive dependencies for NGL viewer, molstar, react-markdown v10, and related libraries |
| packages/nextclade-web/package.json | Adds ngl@2.4.0 dependency |
| packages/nextclade-web/src/state/structure.state.ts | Defines state atoms for sequence selection, viewer library, and representation type |
| packages/nextclade-web/src/pages/structure.tsx | Creates structure page route |
| packages/nextclade-web/src/components/Structure/viewers/types.ts | Defines TypeScript interfaces for structure viewer |
| packages/nextclade-web/src/components/Structure/viewers/NglViewer.tsx | Implements NGL viewer component with structure loading and highlighting |
| packages/nextclade-web/src/components/Structure/viewers/MolstarViewer.tsx | Placeholder component for future Mol* integration |
| packages/nextclade-web/src/components/Structure/structureConfig.ts | Manages structure configuration mappings for datasets |
| packages/nextclade-web/src/components/Structure/rcsbApi.ts | API client for fetching structures and citations from RCSB |
| packages/nextclade-web/src/components/Structure/StructurePage.tsx | Main structure page with controls, viewer, and citations |
| packages/nextclade-web/src/components/Layout/NavigationBar.tsx | Adds Structure tab to navigation |
| packages/nextclade-web/src/components/Common/Markdown.tsx | Updates react-markdown integration with type workaround |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.