feat(website): Add segment presence filter for multi-segmented organisms#5841
Draft
feat(website): Add segment presence filter for multi-segmented organisms#5841
Conversation
Co-authored-by: anna-parker <50943381+anna-parker@users.noreply.github.com>
- Extract hardcoded '1' to MINIMUM_SEGMENT_LENGTH constant - Fix DisabledUntilHydrated usage by wrapping each checkbox individually - Remove unused import from test file Co-authored-by: anna-parker <50943381+anna-parker@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add segment presence filter checkbox for multi-segmented viruses
feat(website): Add segment presence filter for multi-segmented organisms
Jan 15, 2026
Contributor
|
This looks nice but doesnt actually work |
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.
Implementation Plan: Segment Presence Filter
Understanding the Current System
rangeSearch: truereferenceGenome.nucleotideSequencesSearchForm.tsxis where filters are renderedgetSuborganismSegmentAndGeneInfo()provides segment informationImplementation Tasks
SegmentPresenceFieldcomponentSearchForm.tsxbefore mutation field (for multi-segmented organisms){segmentName}LengthFrom=1) when segments are selectedChanges Made
Created
SegmentPresenceField.tsxcomponent that:{segmentName}LengthFrom=1when a segment is checkedDisabledUntilHydratedon individual checkboxes to prevent race conditions in Playwright testsUpdated
SearchForm.tsxto:SegmentPresenceFieldcomponentAdded comprehensive tests in
SegmentPresenceField.spec.tsxcovering:UI Preview
The new "Required segments" filter provides an intuitive way to search for sequences with specific segments present.
Original prompt
Segment presence filtercheckbox for multi-segmented viruses and remove or decrease the size length check boxes #5840💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🚀 Preview: Add
previewlabel to enable