-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(website): migrate "compare side-by-side" to React #975
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
base: main
Are you sure you want to change the base?
refactor(website): migrate "compare side-by-side" to React #975
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 migrates the "compare side-by-side" view from Astro to React, improving code organization and testability while maintaining the same functionality.
Key changes:
- Extracted data display logic into a new React component (
GenericCompareSideBySideDataDisplay) - Added comprehensive end-to-end tests for the compare side-by-side page
- Refactored common test helper methods into the base
ViewPageclass to reduce duplication
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| website/tests/helpers.ts | Added test configuration for influenzaA and influenzaB organisms |
| website/tests/e2e.fixture.ts | Added CompareSideBySidePage fixture for e2e tests |
| website/tests/compareSideBySide.spec.ts | New test file with comprehensive coverage for compare side-by-side functionality |
| website/tests/ViewPage.ts | Extracted shared helper methods for lineage and mutation field interactions |
| website/tests/CompareVariantsPage.ts | Refactored to use shared helper methods from ViewPage |
| website/tests/CompareToBaselinePage.ts | Refactored to use shared helper methods from ViewPage |
| website/tests/CompareSideBySidePage.ts | New page object implementing interactions with the compare side-by-side view |
| website/src/components/views/compareSideBySide/GenericCompareSideBySidePage.astro | Simplified by delegating data display to React component |
| website/src/components/views/compareSideBySide/GenericCompareSideBySideDataDisplay.tsx | New React component containing migrated data display logic |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
website/src/components/views/compareSideBySide/GenericCompareSideBySideDataDisplay.tsx
Outdated
Show resolved
Hide resolved
8a25624 to
370843f
Compare
370843f to
a23a26a
Compare
resolves #973
Summary
Screenshot
PR Checklist
- [ ] All necessary documentation has been adapted.