Skip to content

feat(website): predefined COVID variant signatures from collections (W-ASAP)#1229

Draft
fhennig wants to merge 5 commits into
mainfrom
feat/predefined-wasap-covid-variants
Draft

feat(website): predefined COVID variant signatures from collections (W-ASAP)#1229
fhennig wants to merge 5 commits into
mainfrom
feat/predefined-wasap-covid-variants

Conversation

@fhennig
Copy link
Copy Markdown
Contributor

@fhennig fhennig commented May 27, 2026

Adds support for predefined variant signatures in the W-ASAP Variant Explorer mode, as an alternative to computing signatures from clinical sequences. For COVID, these come from a configured collections source (filtered by user ID, organism, and a tag in the description).

Summary

  • Adds a predefinedVariantsSource config to WasapPageConfig specifying where to fetch predefined variant collections from (userId, organism, tag, label)
  • Pre-fetches matching collections via getCollectionSummaries and exposes them in a downshift autocomplete combobox in the filter panel
  • Extends WasapVariantFilter with a signatureType field ('computed' | 'predefined') and predefined-specific fields (collectionId, newMutationsOnly); serialised to/from URL
  • signatureType defaults to 'computed' and is omitted from the URL for backwards compatibility with existing bookmarks
  • Refactors the variant filter type from a discriminated union to a flat type (consistent with WasapUntrackedFilter), removing the need to pass computedDefaults through the component tree
  • Extracts SignatureType to wasapPageConfig.ts alongside all other WASAP types
  • Fetching for signatureType: 'predefined' is stubbed with a TODO (not yet implemented)

Screenshot

image

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment May 29, 2026 9:28am

Request Review

@fhennig fhennig self-assigned this May 27, 2026
@fhennig fhennig changed the title Mock the UI Mock the UI (WIP) May 27, 2026
@fhennig

This comment was marked as outdated.

fhennig and others added 2 commits May 29, 2026 09:18
@fhennig fhennig force-pushed the feat/predefined-wasap-covid-variants branch from ef0f352 to 8246e5f Compare May 29, 2026 07:42
…edefined variants

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…bobox

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fhennig fhennig changed the title Mock the UI (WIP) feat(website): predefined COVID variant signatures from collections (W-ASAP) May 29, 2026
…Type explicit

Replace the WasapVariantComputedFilter | WasapVariantPredefinedFilter discriminated union
with a single flat WasapVariantFilter type (consistent with WasapUntrackedFilter), removing
the need to pass computedDefaults to VariantExplorerFilter. Also moves SignatureType to
wasapPageConfig and makes newMutationsOnly optional (undefined = false).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant