Skip to content

Conversation

@ivan-aksamentov
Copy link
Member

No description provided.

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 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.

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

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.

2 participants