Skip to content

Use miew-react in miew-app viewer#656

Merged
paulsmirnov merged 1 commit intomainfrom
583-update-miew-app-to-use-miew-react
May 5, 2026
Merged

Use miew-react in miew-app viewer#656
paulsmirnov merged 1 commit intomainfrom
583-update-miew-app-to-use-miew-react

Conversation

@paulsmirnov
Copy link
Copy Markdown
Member

Description

Closes #583.

The miew-app viewer previously implemented its own Miew lifecycle management directly in MiewViewer.jsx, bypassing the miew-react wrapper entirely. This change replaces that custom component with a new MiewViewport component that delegates rendering to miew-react.

  • Deleted MiewViewer.jsx and replaced it with MiewViewport.jsx which uses the Viewer component from miew-react
  • Renamed MiewViewerContainerMiewViewportContainer to match
  • Added miew-react as an explicit dependency of miew-app
  • Removed the MiewModule / MiewStyles webpack aliases that were only needed by the old component
  • Added unit tests for MiewViewport

Type of changes

  • New feature (non-breaking change that adds functionality)

Checklist

  • I have read CONTRIBUTING and CODE_OF_CONDUCT guides.
  • I have followed the code style of this project.
  • I have run yarn run ci: lint and tests pass locally with my changes.
  • I have added tests that prove my fix/feature works OR The changes do not require updated tests.
  • I have added the necessary documentation OR The changes do not require updated docs.

@paulsmirnov paulsmirnov linked an issue Apr 27, 2026 that may be closed by this pull request
Comment thread packages/miew-app/src/components/viewport/MiewViewport.jsx
Copy link
Copy Markdown
Collaborator

@NadezhdaKatcman NadezhdaKatcman left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@paulsmirnov paulsmirnov merged commit 9b5b373 into main May 5, 2026
6 checks passed
@paulsmirnov paulsmirnov deleted the 583-update-miew-app-to-use-miew-react branch May 5, 2026 14:13
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.

Update miew-app to use miew-react component

2 participants